Cobra VAD — .NET Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64, arm64)
- Raspberry Pi (Zero, 3, 4, 5)
Requirements
.NET Framework 4.6.1+ / .NET Standard 2.0+ / .NET Core 3.0+:
- Windows (x86_64)
.NET Standard 2.0+ / .NET Core 3.0+:
- macOS (x86_64)
.NET 6.0+:
- macOS (arm64)
- Windows (arm64)
- Linux (x86_64)
- Raspberry Pi (3, 4, 5)
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey.
Make sure to keep your AccessKey secret.
Quick Start
Setup
Install .NET.
Install the Cobra VAD NuGet package in Visual Studio or using the .NET CLI:
Usage
Create an instance of the Cobra Voice Activity Detection engine:
Pass in frames of audio to the .Process function:
Cobra will have its resources freed by the garbage collector, but to have resources freed immediately after use, wrap it in a using statement:
Demo
For the Cobra Voice Activity Detection .NET 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 VAD repository from GitHub:
- Build the demo:
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:
For more information on our Cobra Voice Activity Detection demos for .NET, head over to our GitHub repository.
Resources
Package
API
GitHub
- Cobra Voice Activity Detection .NET SDK on GitHub
- Cobra Voice Activity Detection .NET Demos on GitHub