Koala Noise Suppression Engine.
Project description
Koala Binding for Python
Koala Noise Suppression Engine
Made in Vancouver, Canada by Picovoice
Koala is an on-device noise suppression engine. Koala is:
- Private; All voice processing runs locally.
- Cross-Platform:
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (3, 4, 5)
Compatibility
- Python 3.8 or higher
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5).
Installation
pip3 install pvkoala
AccessKey
Koala requires a valid Picovoice AccessKey
at initialization. AccessKey
acts as your credentials when using Koala
SDKs. You can get your AccessKey
for free. Make sure to keep your AccessKey
secret.
Signup or Login to Picovoice Console to get your AccessKey
.
Usage
Create an instance of the engine and enhance audio:
import pvkoala
koala = pvkoala.create(access_key='${ACCESS_KEY}')
def get_next_audio_frame():
pass
while True:
enhanced_audio = koala.process(get_next_audio_frame())
Replace ${ACCESS_KEY}
with yours obtained from Picovoice Console.
The input audio must come from a single-channel stream with integer 16-bit encoding. The sample rate must be identical
to koala.sample_rate
. The stream must be split into frames with a fixed length in samples that can be obtained
from koala.frame_length
.
The output of koala.process()
is a frame of enhanced audio with the same 16-bit integer encoding. The delay in
samples between the start time of the input frame and the start time of the output frame can be attained from
koala.delay_sample
.
In case the next audio frame does not directly follow the previous one, call koala.reset()
.
When done be sure to explicitly release the resources using koala.delete()
.
Demos
pvkoalademo provides command-line utilities for processing audio using Koala.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pvkoala-2.0.2.tar.gz
.
File metadata
- Download URL: pvkoala-2.0.2.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179f78edf1bf07a10f73a7c6a5c1159eff8a45f33f5c5027f99086fe3d4aef4e |
|
MD5 | 52cc86f7029eb275b1f429d37c789067 |
|
BLAKE2b-256 | 9f4f20bd0de6322a49b977d2e658d48a42e616d099a7db7f1481da1322bfe83c |
File details
Details for the file pvkoala-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: pvkoala-2.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668fa678e62f7572a7f4c57583fdffb664fd311e42f23ef7a3f1a29395e826fb |
|
MD5 | 7c2bebe62c3a1a097aedbe91f0455f56 |
|
BLAKE2b-256 | f920dbb3e977944d2494103c2dca0629d0d95ad0d3ab69f589073c9afa80385e |