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.
Metadata
Release files for pvbat 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pvbat-1.0.2.tar.gz | 7.3 MB | Without provenance | Details for pvbat-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pvbat-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pvbat-1.0.2-py3-none-any.whl |
Total release size: 14.6 MB
Release files / pvbat-1.0.2.tar.gz
| Download URL | pvbat-1.0.2.tar.gz |
|---|---|
| Size | 7.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f645ee38221b72da8e7c44c2816ad27f27a45ddb39a04c9fa4178437e1337bae
|
|
BLAKE2b-256 checksum How to use checksums |
dadcae7b33243f75c50c225e6ab592846daff16ce0a131b6aa34a14348318954
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pvbat-1.0.2-py3-none-any.whl
| Download URL | pvbat-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e16470d5b544f4cbfad76aad6ec6a0dcc3664c78d71e659350ee4155bccc170
|
|
BLAKE2b-256 checksum How to use checksums |
401af0a31c510c343c0210e2a9915bc311c303e1441a4454332697a2ebc6c583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for pvbat 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.