Cobra Voice Activity Detection
Node.js Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- NVIDIA Jetson Nano
- Raspberry Pi (2, 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:
Demo
For the Cobra 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 demo package:
This package installs command-line utilities for the Cobra 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 demos for Node.js, head over to our GitHub repository.