Web Quick Start
- Chrome & Chromium-based browsers
- Picovoice Account and AccessKey
- Node.js 14+
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your
Make sure to keep your
Install Node.js .
Install the Octopus Web Worker package:
Download the model from GitHub .
Put the model file in the project's public directory or generate a base64 model using the build in script:
Octopus instance using a base64 model or a model hosted in a public directory:
Index raw audio data (sample rate of 16 kHz, 16-bit linearly encoded and 1 channel):
Search for instances of a phrase:
Release resources explicitly when done with Octopus:
For the Octopus Web SDK, there is a Web demo project available on the Octopus GitHub repository .
Clone the Octopus repository from GitHub:
- Install dependencies and run:
- Open http://localhost:5000 to view it in the browser.