Cobra VAD — C Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi (Zero, 3, 4, 5)
Requirements
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
- Clone the repository:
Usage
- Include the public header files (
picovoice.h
andpv_cobra.h
). - Link the project to an appropriate precompiled library for the target platform and load it.
- Construct the Cobra Voice Activity Detection object:
- Pass in audio to the
pv_cobra_process
function:
- Release resources explicitly when done with Cobra Voice Activity Detection:
Demo
For the Cobra Voice Activity Detection 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:
- Build the microphone demo:
Usage
To see the usage options for the demo:
Ensure you have a working microphone connected to your system and run the command corresponding to your platform to detect voice activity:
For more information on our Cobra Voice Activity Detection demos for C, head over to our GitHub repository.