TOOL WIKI · VOICE & REALTIME
Silero VAD
Detects speech activity in audio for streaming and recording workflows.
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
Decode the source audio and use a supported sample rate and channel layout.
inputTo 02 · Silero VADSeparating speech and silence before downstream audio processing. Tune endpointing for noise, pauses, and overlapping speakers.
processTo 03 · Speech segmentsDetected speech boundaries select audio; they do not provide a transcript.
Pass the selected segments to a separate recognition service or model.
Apply the ordinary tool permission and evidence boundaries.
Generate the response and manage playback independently of the VAD detector.
Result or stopping point
Separating speech and silence before downstream audio processing. Tune endpointing for noise, pauses, and overlapping speakers.
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.
python3 -m venv .venv
source .venv/bin/activate
pip install "silero-vad[audio]"Try a small integration
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
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
Explore the same layer
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.