Bat Spoken Language Identification Engine.
Project description
Bat Binding for Python
Bat Spoken Language Identification Engine
Made in Vancouver, Canada by Picovoice
Bat is an on-device spoken language identification engine. Bat is:
- Private; All voice processing runs locally.
- Cross-Platform:
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64, arm64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (3, 4, 5)
Compatibility
- Python 3.9+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5).
Installation
pip3 install pvbat
AccessKey
Bat requires a valid Picovoice AccessKey at initialization. AccessKey acts as your credentials when using Bat 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 detect the spoken language from an audio stream.
import pvbat
handle = pvbat.create(access_key='${ACCESS_KEY}')
def get_next_audio_frame():
pass
while True:
language_scores = handle.process(get_next_audio_frame())
if language_scores:
print(language_scores)
Replace ${ACCESS_KEY} with yours obtained from Picovoice Console. When done be sure
to explicitly release the resources using handle.delete().
Demos
pvbatdemo provides command-line utilities for processing audio using Bat.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pvbat-1.0.1.tar.gz.
File metadata
- Download URL: pvbat-1.0.1.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b4b751d61fd6fc669ca13e0ac9d9e710d80d18da8e3b3dc400b5726c892c1b
|
|
| MD5 |
ce69e1368a4651f2f47778e1e7aa6e27
|
|
| BLAKE2b-256 |
e9ef28229910e488663677348ab667e8fcf1ed1bd3f5489289fced8289b37cd1
|
File details
Details for the file pvbat-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pvbat-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
419a4816a5583f0a144da433c8ac44f876bef4815213137e59618dfe79d88338
|
|
| MD5 |
b9aa304b06baa5735f81f6b122672c48
|
|
| BLAKE2b-256 |
bb6e1f4b03343d7df73c2899a05489d86e6dbc660c88f6d71c8c05dbe4030c8a
|