Bat Spoken Language Identification Demos
Made in Vancouver, Canada by Picovoice
Bat
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 pvbatdemo
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
Microphone Demo
The mic demo takes audio input from a microphone and outputs the language detection scores to the terminal.
You need a working microphone connected to your machine for this demo. Run the following in the terminal:
bat_demo_mic --access_key ${ACCESS_KEY}
Replace ${ACCESS_KEY} with yours obtained from Picovoice Console.
File Demo
The file demo takes audio input from a series of .wav files and prints the language detection scores to the terminal.
Each set of scores is tagged with the timestamp in seconds for the corresponding audio file.
Run the following in the terminal:
bat_demo_file --access_key ${ACCESS_KEY} --wav_paths ${WAV_PATH}
Replace ${ACCESS_KEY} with yours obtained from Picovoice Console and ${WAV_PATH} with a path to a compatible
(single-channel, 16 kHz, 16-bit PCM) wav file you wish to process.
Metadata
Release files for pvbatdemo 1.0.1
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 | |
|---|---|---|---|---|
| pvbatdemo-1.0.1.tar.gz | 10.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pvbatdemo-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / pvbatdemo-1.0.1.tar.gz
| Download URL | pvbatdemo-1.0.1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f10c2a514a9a9d55f3d8ec4899d2b3fc18215cd8e7838cf69e8a8d9337c0e6e
|
|
BLAKE2b-256 checksum How to use checksums |
0c3bab7dc1234251f25a2221772f005e15739b38b77dfbe7579ae4c846112c4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pvbatdemo-1.0.1-py3-none-any.whl
| Download URL | pvbatdemo-1.0.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71f9cf0260e550ca5a5026309121aa6090c52fe62732be8702f00788a99f3d54
|
|
BLAKE2b-256 checksum How to use checksums |
17bb9ffd361e1ee4ab3141ac5df6859e96e2cd6f7d217dae77acb277753df337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for pvbatdemo 1.0.1
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.