Skip to main content

Bat spoken language understanding engine demos

Project description

Bat Spoken Language Understanding Demos

Made in Vancouver, Canada by Picovoice

Bat

Bat is an on-device spoken language understanding 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.0.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.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvbatdemo-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6aed21b3a44a361b9009135fd66ce6b4e63810b6a10d0d5a6dcb64a554e77b67
MD5 06edad55ecf08007822040459411b39b
BLAKE2b-256 1ed9b5f0d4a1544b8bb6c6ae9c40afa5af10569e939b17880d26c58c9c7a6826

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvbatdemo-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea127f09baee6ece9876f725388c1379bf98624a39d5bbb46053f2df9ea86ac9
MD5 81938141bfcc701858700baf122b4cbd
BLAKE2b-256 5ece193b7b5b783bce8ebf179adee4fa3240b95932fa44e80806b657790d7b03

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