WebRTCVadOptions
Options & Configuration · AiDotNet.Audio.VoiceActivity
Configuration options for the WebRTC VAD neural model.
Inheritance: ModelOptions → WebRTCVadOptions
For Beginners
WebRTC VAD is a very fast “is someone talking?” detector used in video calls and voice chat. It processes tiny chunks of audio (10-30 milliseconds) and instantly decides if speech is present. Speed matters most here - it needs to work in real-time without adding noticeable delay to your call.
How It Works
WebRTC VAD is a lightweight voice activity detection model inspired by the GMM-based detector in the WebRTC framework but reimplemented as a neural network for improved accuracy. It operates at very low latency (10-30ms frames) and is designed for real-time communication.
Constructors
| Constructor | Summary |
|---|---|
WebRTCVadOptions() |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX runtime options. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double Threshold { get; set; } |
Gets or sets the detection threshold. |
int AggressivenessMode { get; set; } |
Gets or sets the aggressiveness mode (0-3, higher = more aggressive filtering). |
int FrameDurationMs { get; set; } |
Gets or sets the frame duration in milliseconds (10, 20, or 30). |
int HiddenDim { get; set; } |
Gets or sets the hidden dimension. |
int MinSilenceDurationMs { get; set; } |
Gets or sets the minimum silence duration in milliseconds. |
int MinSpeechDurationMs { get; set; } |
Gets or sets the minimum speech duration in milliseconds. |
int NumLayers { get; set; } |
Gets or sets the number of encoder layers. |
int SampleRate { get; set; } |
Gets or sets the expected audio sample rate in Hz. |
string ModelPath { get; set; } |
Gets or sets the path to the ONNX model file. |