Skip to main content
Silero VAD is a pre-trained ONNX model (~2 MB) for real-time voice activity detection. It is the default VAD provider in Rapida. Provider identifier: silero_vad

Source Location


How It Works

  1. Incoming LINEAR16 bytes are converted to float32 samples in the range [-1.0, 1.0]
  2. Samples are fed to the Silero ONNX detector which produces speech segments with start/end timestamps
  3. On speech onset, an InterruptionPacket is emitted (triggers barge-in)
  4. While speech is active, VadSpeechActivityPacket heartbeats keep the EOS timer from firing

Parameters

Internally, frame counts are converted to milliseconds: min_silence_frame × 10 = MinSilenceDurationMs, min_speech_frame × 10 = SpeechPadMs.

Model Path


Local Source Setup

Silero VAD requires ONNX Runtime. The Docker base image includes it. For local builds:
The model file is checked into the repository — no download needed.