Show HN: RealtimeVAD – trading false positives for 110ms earlier end-of-speech g...
HN Best 200 @best
Show HN: RealtimeVAD – trading false positives for 110ms earlier end-of-speech github.com · 13 points · 1 comments · HN thread
TL;DR RealtimeVAD is a Python library that wraps Silero VAD with a second, faster 10 ms energy-based check, so a voice assistant learns the speaker has stopped about 100 ms sooner (median, on 3,279 real turns). It trades this for more false pause events, which it exposes as a separate, cancellable 'pause' event. The Show HN post is alpha version 0.0.5 and the only comment is a suggestion to use a small LLM turn-end classifier instead.
- Adds a 10 ms energy detector that compares audio level to room noise and the speaker's level, on top of Silero VAD's speech probability.
- Speech-off is a median 100 ms before Silero's probability drops below 0.5, and the VADIterator end comes a median 206 ms later than RealtimeVAD's speech-off.
- A new 'pause' event fires about 1.5 times per second of speech (versus 0.14 for Silero), so it is meant for speculative work that can be cancelled, not as the end of a turn.
- The 'end' event comes a median 70 ms earlier than Silero alone, after a fixed 0.24 s silence count.
- Quiet speakers were initially cut off; version 0.0.5 adapts the quiet floor to the speaker's level, and results on noisy quiet phone-line input show no lead.
- Runs on one CPU thread with only numpy and onnxruntime; the Silero model is bundled, and the package is MIT licensed.
Discussion The thread is a single comment, so there is no real discussion. The one commenter says they have posted the same idea several times and argues that a small, fast LLM or a dedicated turn-completion model, fed the conversation and streaming transcript, can estimate whether the user is done and shorten the VAD wait, while also allowing longer waits when the user is mid-thought. The mood is neutral and practical.
- Use a small LLM or turn-decision model instead of audio-only VAD (a few): The commenter suggests feeding the previous turn and the current ASR output to a fast small model to estimate the probability that the user has finished. They say this could cut a few hundred milliseconds over pure VAD and also allow waiting longer when the user is not done. This is an alternative approach rather than a critique of the energy detector.
#voiceActivityDetection #speechRecognition #realtimeAudio #voiceAssistants #showHN