Skip to main content

Bat spoken language identification engine demos

Project description

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.

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

pvbatdemo-1.0.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

pvbatdemo-1.0.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file pvbatdemo-1.0.1.tar.gz.

File metadata

  • Download URL: pvbatdemo-1.0.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pvbatdemo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4f10c2a514a9a9d55f3d8ec4899d2b3fc18215cd8e7838cf69e8a8d9337c0e6e
MD5 699cb0f71c1b93153c671c2965f52e01
BLAKE2b-256 0c3bab7dc1234251f25a2221772f005e15739b38b77dfbe7579ae4c846112c4b

See more details on using hashes here.

File details

Details for the file pvbatdemo-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pvbatdemo-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pvbatdemo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71f9cf0260e550ca5a5026309121aa6090c52fe62732be8702f00788a99f3d54
MD5 201bf41d6bd1fb5cbaf1ef979965cfbd
BLAKE2b-256 17bb9ffd361e1ee4ab3141ac5df6859e96e2cd6f7d217dae77acb277753df337

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