TOOL WIKI · VOICE & REALTIME

Silero VAD

Detects speech activity in audio for streaming and recording workflows.

Download example files Code + setup + checks in a ZIP
Jump to a section 10 sections

EXAMPLE USE CASE

Find speech regions before sending audio downstream

A spoken support interface needs capture, turn handling, transcription or playback with explicit media formats and a verifiable outcome.

Input
A 16 kHz audio sample containing speech and silence.
Expected output
Start/end timestamps for detected speech regions.
  • Success check: Speech regions appear as start/end times in seconds. Silence should yield no speech regions.
  • Try a failure: Run a silence fixture; it should not generate fabricated speech regions.

Example scope: Actual local VAD inference; it detects speech activity, not transcript text or speaker identity.

Official reference · Silero VAD

WHAT IT ISVoice-activity detection model
WHERE IT FITSVoice & realtime
SEE HOW THE SYSTEM FITS TOGETHERSELECT A COMPONENT
inputprocessresultcheckoutputPCM audioKnown sample rateSilero VADVoice-activity detection modelSpeech segmentsStart and end timesSpeech recognitionTranscribe selected speechAgent reasoningScoped tools + contextResponse pipelineText or audio
  1. Decode the source audio and use a supported sample rate and channel layout.

  2. Separating speech and silence before downstream audio processing. Tune endpointing for noise, pauses, and overlapping speakers.

  3. Detected speech boundaries select audio; they do not provide a transcript.

  4. Pass the selected segments to a separate recognition service or model.

  5. Apply the ordinary tool permission and evidence boundaries.

  6. Generate the response and manage playback independently of the VAD detector.

    Result or stopping point
Silero VAD

Separating speech and silence before downstream audio processing. Tune endpointing for noise, pauses, and overlapping speakers.

Follow the arrows, then select a component to inspect its responsibility. On mobile, downward arrows connect the next step; bent arrows identify branches and return paths. Select a destination to jump to that component.

When to consider it

  • Separating speech and silence before downstream audio processing.

A design decision to make

  • Tune endpointing for noise, pauses, and overlapping speakers.

Prerequisites and setup

  • Python 3.11+, the audio dependencies required by your platform, and a local sample.wav. The model runs locally after package/model setup.
Shell
python3 -m venv .venv
source .venv/bin/activate
pip install "silero-vad[audio]"

Try a small integration

detect.py

Python · detect.py
from silero_vad import load_silero_vad, read_audio, get_speech_timestamps

model = load_silero_vad()
audio = read_audio("sample.wav",sampling_rate=16000)
segments = get_speech_timestamps(audio,model,sampling_rate=16000,return_seconds=True)
for segment in segments:
    print("speech start:",segment["start"],"end:",segment["end"])
print("Detected segments:",len(segments))

Run and check the result

Shell
python detect.py
  • Speech regions appear as start/end times in seconds. Silence should yield no speech regions.
  • VAD detects activity; it does not transcribe words, identify speakers or establish user intent.

Common failures

  • No audio: verify input/output codecs, sample rate, channel count, permission and selected device separately.
  • Handle provider errors and interrupted streams explicitly; do not interpret a disconnected call as a completed business action.

Production decisions

  • Keep permanent credentials on a trusted server; use short-lived session credentials for clients. Define audio/transcript retention and consent.
  • Measure end-of-turn latency, interruption handling, silence, reconnects, tool deadlines and session cost with real microphones and networks.
  • Tune thresholds and hangover against noisy microphones; preserve a pre-roll buffer so the first syllable is not clipped.

Keep exploring

A realtime voice agent with OpenAIA voice agent with Google Gemini Live

Explore the same layer

OpenAI RealtimeGoogle Gemini LiveLiveKit AgentsPipecat

Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.