Turn detection
In live voice mode, an AI agent talks with a caller in real time. The agent has to know when the caller has finished a sentence, so it can answer without cutting them off, and when the caller starts talking over it, so it can stop. Landline.sh does both with voice activity detection (VAD). Back to API and MCP.
How it works
Landline runs Silero VAD, an open-source speech detector under the MIT license, on the same private host as Voicebox. It scores the caller's phone audio every 32 ms, on CPU, at the call's native 8 kHz. Nothing is sent to a third party, and the detector neither stores nor logs audio.
- End of turn. After the caller has spoken for 0.2 seconds, their turn has started. Once they have been silent for 0.7 seconds, it has ended and the agent replies. Phone callers often pause 300 to 500 ms mid-sentence, so a shorter wait interrupts people.
- Barge-in. If the caller speaks for 0.25 seconds while the agent is talking, the agent stops and listens. A cough, a click, or a short “mm-hm” doesn't count.
- Line noise. Landline tracks each call's background hiss and requires speech to be louder than it, so a noisy line doesn't keep the turn open after the caller stops.
Defaults
confidence 0.7 speech probability a 32 ms window must reach start_secs 0.2 speech needed before the caller's turn starts stop_secs 0.7 silence needed before the caller's turn ends min_volume 0.6 loudness gate (about -50 dBFS); only near-silence is dropped barge-in 0.25 seconds of caller speech that stop the agent mid-sentence
The parameter names match Pipecat's VADParams.
Measured
Measured on synthetic speech (no recordings of real people) sent as simulated Twilio 20 ms frames. Line noise ranged from -60 to -40 dBFS and speech level from normal to 12 dB quieter. Every barge-in onset was also tried at 32 offsets covering the full cycle of the 32 ms analysis grid against the 20 ms phone frames:
- The end of a turn is detected 0.55 to 0.73 seconds after the caller stops. That's the 0.7-second wait, plus up to one 32 ms window, minus any quiet trailing sound that falls below the line noise. This includes calls that start mid-sentence with no silence first, and hiss that begins just as the caller stops.
- Barge-in stops the agent within 0.29 seconds of the caller becoming audible (5 dB above the line noise), as long as their speech is at least about 18 dB louder than the noise. At 13 to 14 dB it can take up to 0.36 seconds.
- A held “hmmm” keeps the caller's turn open. Steady tones and hums don't interrupt the agent.
- Segment start and end times are within 0.15 seconds of the real speech boundaries, and segments cover over 99% of the clearly audible speech, when speech is at least about 15 dB above the line noise.
- White noise at -35 to -20 dBFS triggered no false turns and no false barge-ins.
- Processing a 20 ms audio frame takes about 0.1 ms of CPU. Thirty minutes of audio is segmented in 5 to 10 seconds.
Limits
- VAD detects speech. It doesn't detect meaning. A caller who pauses longer than 0.7 seconds in the middle of a thought gets a reply.
- Background talk, like a TV or another person near the phone, is speech too. It can open a turn or interrupt the agent.
- When the speech is only about 10 dB louder than the line noise, segment boundaries can be off by up to 0.7 seconds, and barge-in can take up to about 1 second.
- Landline.sh is not for one-time passcodes or verification bypass.