recorder.ondataavailable = (e) => {
socket.send(e.data);
};recorder.ondataavailable = (e) => {
if (vad.isSpeech(e.data)) socket.send(e.data);
};Skipping chunks that VAD marks as silence saves bandwidth and model cost and avoids noise being transcribed.
VAD only says whether someone is speaking right now. Turn detection uses VAD and often the words themselves to decide if the user has finished their turn.
Yes, small VAD models run in the browser with WebAssembly or an audio worklet, so silence is filtered before audio is sent to the server.
The threshold is too sensitive or the model was not tested with real noise. Raise the threshold, add noise suppression and test with recordings from real users.