Cobra VAD — Rust Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- BeagleBone
- NVIDIA Jetson Nano
- Raspberry Pi (Zero, 2, 3, 4)
Requirements
- Picovoice Account & AccessKey
- Rust 1.54+
- Cargo
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Download and install Rust .
Add
pv_cobra
to theCargo.toml
manifest:
Usage
Create an instance of the Cobra VAD engine:
Pass in frames of audio to the .process
function:
Demo
For the Cobra Rust SDK, we offer demo applications that demonstrate how to use the VAD engine on real-time audio streams (i.e. microphone input) and audio files.
Setup
Clone the Cobra repository from GitHub using HTTPS:
Usage
Use the --help
flag to see the usage options for the demo:
Run the following command to detect voice activity:
For more information on our Cobra demos for Rust, head over to our GitHub repository .