Cobra VAD — Web Quick Start
Platforms
- Chrome & Chromium-based browsers
- Edge
- Firefox
- Safari
Requirements
- Picovoice Account and AccessKey
- Node.js 16+
- 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 Web Voice Processor and Cobra Voice Activity Detection Web packages: 
Usage
Create an instance of CobraWorker:
Subscribe CobraWorker to WebVoiceProcessor to start processing audio frames:
Release resources explicitly when done with Cobra Voice Activity Detection:
Demo
For the Cobra Voice Activity Detection Web SDK, there is a Web demo project available on the Cobra Voice Activity Detection GitHub repository.
Setup
Clone the Cobra Voice Activity Detection repository from GitHub:
Usage
- Install dependencies and run:
- Open http://localhost:5000 to view it in the browser.