silero_vad
Source Location
How It Works
- Incoming LINEAR16 bytes are converted to
float32samples in the range[-1.0, 1.0] - Samples are fed to the Silero ONNX detector which produces speech segments with start/end timestamps
- On speech onset, an
InterruptionPacketis emitted (triggers barge-in) - While speech is active,
VadSpeechActivityPacketheartbeats keep the EOS timer from firing
Parameters
Internally, frame counts are converted to milliseconds:
min_silence_frame × 10 = MinSilenceDurationMs, min_speech_frame × 10 = SpeechPadMs.