Skip to main content

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, arm64)
    • Android and iOS
    • Chrome, Safari, Firefox, and Edge
    • Raspberry Pi (3, 4, 5)

Compatibility

  • Python 3.9 or higher
  • Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), 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

pvkoala-3.0.1.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pvkoala-3.0.1-py3-none-any.whl (5.8 MB view details)

Uploaded Python 3

File details

Details for the file pvkoala-3.0.1.tar.gz.

File metadata

  • Download URL: pvkoala-3.0.1.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pvkoala-3.0.1.tar.gz
Algorithm Hash digest
SHA256 cf29a7712c2fb0a5354e2d93cf21a961c439191ae1cdc4b82b9328f6db9b349b
MD5 48dce3c82fe2b34377aa18ec476ab326
BLAKE2b-256 c20bfa3feb89554d95bb48cc183e434a72396e0286269ac0ec3ff53cede3fa1e

See more details on using hashes here.

File details

Details for the file pvkoala-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: pvkoala-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pvkoala-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca03d90fe02d7ecf58d5ac2b17ac0d6c893bafce2bee7b76d453f7bf54b12db1
MD5 e32e0e60b0839ff86c20a1f07073cfc1
BLAKE2b-256 b132c91821087e3a33c09d4f122b0a60e8c65804116afe037ef783bd6043bdeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page