Services

Accelerators

Resources

Company

Services

Accelerators

Resources

Company

/

Voice activity detection

VAD (voice activity detection)

Voice activity detection (VAD) answers one question many times a second: is someone speaking right now? A voice AI agent uses it to know when the caller starts and stops talking, so it only sends speech to speech to text and can react when the caller interrupts.

How it works

The audio is cut into short frames, about 30 ms each. A small model scores each frame with a speech probability from 0 to 1. Above a threshold, often 0.5, the frame counts as speech. Silero VAD, a common open choice, is about 2 MB and takes under a millisecond per chunk on one CPU thread.

For example, frames scored 0.02, 0.1, 0.8, 0.95, 0.9, 0.3 and 0.05 contain one stretch of speech in the middle. A fan humming at 0.3 stays below the threshold and is ignored. The agent waits for a set amount of silence, such as 0.8 to 1 second, before closing the stretch.

Why it matters in production

VAD settings trade speed for accuracy. A short silence window cuts callers off mid-thought; a long one makes every reply slower. VAD also only hears sound, not meaning: it cannot tell a pause for breath from the end of a question, which is why agents add turn detection on top.

See also

On the One2N blog

References

  1. Silero VAD (GitHub)

  2. Voice activity detection (Wikipedia)

Comic about voice activity detection (VAD): a caller talks next to a noisy fan, and audio is split into 512 sample frames of 32 ms at 16,000 a second; each frame is scored 0 to 1, and frames 3 to 5 score 0.8 to 0.95 as speech; only those 3 of 7 frames, 64 to 160 ms, go to speech to text; VAD hears only silence, and whether the thought is finished is turn detection.

Putting this into practice?

Talk to One2N about our AI engineering services

Talk to One2N about our AI engineering services