Cobra Voice Activity Detection
Node.js Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi (3, 4, 5)
Requirements
- Picovoice Account & 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 cobra-node npm package:
Usage
Create an instance of the engine:
Pass in frames of audio to the .process
function:
Release resources explicitly when done with Cobra Voice Activity Detection:
Demo
For the Cobra Voice Activity Detection Node.js SDK, we offer demo applications that demonstrate how to use the Voice Activity Detection engine on real-time audio streams (i.e. microphone input) and audio files.
Setup
Install the Cobra Voice Activity Detection demo package:
This package installs command-line utilities for the Cobra Voice Activity Detection Node.js demos.
Usage
Use the --help
flag to see the usage options for the demo:
Ensure you have a working microphone connected to your system and run the following command to detect voice activity in audio live:
For more information on our Cobra Voice Activity Detection demos for Node.js, head over to our GitHub repository.
Resources
Packages
API
GitHub
- Cobra Voice Activity Detection Node.js SDK on GitHub
- Cobra Voice Activity Detection Node.js Demos on GitHub