Leopard Speech-to-Text
Web Quick Start
Platforms
- Chrome & Chromium-based browsers
- Edge
- Firefox
- Safari
Requirements
- Picovoice Account and AccessKey
- Node.js 14+
- 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 Leopard Web package:
Usage
Generate a custom Leopard
model from Picovoice Console or download a default model .
Put the model file in the project's public directory or generate a base64 model using the build in script:
Create a LeopardWorker
instance using a base64 model or a model hosted in a public directory:
Transcribe audio (sample rate of 16 kHz, 16-bit linearly encoded and 1 channel):
Release resources explicitly when done with Leopard:
Demo
For the Leopard Web SDK, there is a Web demo project available on the Leopard GitHub repository .
Setup
Clone the Leopard repository from GitHub:
Usage
- Install dependencies and run:
- Open http://localhost:5000 to view it in the browser.
Resources
Package
API
GitHub
Benchmark