Cobra VAD — Rust Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi (Zero, 3, 4, 5)
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 Voice Activity Detection engine:
Pass in frames of audio to the .process
function:
Demo
For the Cobra Voice Activity Detection 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 Voice Activity Detection 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 Voice Activity Detection demos for Rust, head over to our GitHub repository.
Resources
Package
API
GitHub
- Cobra Voice Activity Detection Rust SDK on GitHub
- Cobra Voice Activity Detection Rust Demos on GitHub