Bat Spoken Language Identification
Web Quick Start
Platforms
- Chrome & Chromium-based browsers
- Edge
- Firefox
- Safari
Requirements
- Picovoice Account and AccessKey
- Node.js 18+
- npm
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey.
Make sure to keep your AccessKey secret.
Quick Start
Setup
Install Node.js.
Install the Bat Spoken Language Identification Web package:
Usage
Put the model file in the project's public directory or generate a base64 model using the built-in script:
Create a BatWorker instance using a base64 model or a model hosted in a public directory:
Subscribe BatWorker to WebVoiceProcessor to start processing audio frames:
Once done, unsubscribe to stop processing audio frames:
Release resources explicitly when done with Bat Spoken Language Identification:
Demo
For the Bat Spoken Language Identification Web SDK, there is a Web demo project available on the Bat Spoken Language Identification GitHub repository.
Setup
Clone the Bat Spoken Language Identification repository from GitHub:
Usage
- Install dependencies and run:
- Run the demo with the
startscript.
- Open http://localhost:5000 to view it in the browser.