What is turn detection in a voice agent?
Turn-taking in voice AI comes down to two decisions. The first is end of turn: has the caller finished, so the agent may answer? The second is barge-in: is this sound a caller talking over the agent, so the agent should stop?
Providers handle the first decision with voice activity detection (VAD), a detector that tracks when speech starts and stops. The end-of-turn decision can fail in two directions: decide too early and the agent cuts callers off mid-sentence, decide too late and the call fills with dead air. Deepgram's guide makes a related point: any end-of-speech approach is a heuristic, and a voice journal may need long pauses where a food-ordering line wants quick turns.
The pause a caller hears after they stop talking is the detector's wait plus model, speech and network time, and turn settings change only the wait. No setting removes the trade-off, so this guide ends with a phone test plan rather than a recommended value.
Long silence is a separate problem: the "are you still there?" check is an idle timer that sits outside turn detection.
| Decision | Question it answers | Where it is set on APIFleet |
|---|---|---|
| End of turn | Has the caller finished, so the agent can reply? | turn_detection and turn_eagerness on realtime assistants; endpointing_ms and utterance_end_ms on cascading assistants |
| Barge-in | Is the caller talking over the agent, so the agent should stop? | No per-assistant switch on phone calls: the provider's detector decides on OpenAI Realtime and Gemini Live, and recognised caller words decide on cascading pipelines |
| Idle silence | Is anyone still on the line? | A separate idle timer, not a turn-detection setting |
How does each APIFleet runtime handle end of turn detection?
With semantic_vad or server_vad, the provider's detector decides on OpenAI Realtime and Gemini Live, and APIFleet passes it your settings. On a cascading pipeline the speech-to-text stream decides, and GPT-Live has no turn settings at all.
The table lists each runtime's detector, the fields that change it and the defaults, read from APIFleet's runtime on 22 November 2026 and checked against the provider guides under Sources. They are configuration facts, not latency or accuracy measurements, so test them on your own calls.
Read the assistant before you tune anything. GET /assistants/{id} returns pipeline_mode, realtime_provider, model and stt_provider, which pick the row, plus an effective_runtime_config object with the inherited server defaults resolved. An assistant created before semantic VAD became the default can still hold server_vad.
| Runtime | What decides the turn is over | Fields you can change | Defaults | Fixed or not exposed |
|---|---|---|---|---|
| OpenAI Realtime, semantic VAD | OpenAI's classifier, which reads the caller's words and waits longer when a sentence sounds unfinished | turn_detection set to semantic_vad; turn_eagerness set to auto, low, medium or high | New assistants: semantic_vad with eagerness auto, which OpenAI treats as medium | No millisecond value to set |
| OpenAI Realtime, server VAD | OpenAI's detector, which ends the turn after a fixed stretch of silence | turn_detection set to server_vad | Phone calls: threshold 0.55, prefix padding 300 ms, silence 500 ms. Browser tests: threshold 0.7, padding 300 ms, silence 500 ms | All three numbers are constants; turn_eagerness has no effect |
| Gemini Live | Google's automatic activity detection | turn_eagerness set to auto, low, medium or high | Silence window 500 ms for auto and medium, 800 ms for low, 300 ms for high | Start-of-speech sensitivity high and prefix padding 80 ms are fixed; turn_detection none is rejected |
| GPT-Live (gpt-live-1) | OpenAI's Live session, which manages conversational timing itself | None | Not applicable | No turn fields; the docs say VAD controls do not apply to Live |
| Cascading, Deepgram Nova-3 | Deepgram endpointing (trailing silence), plus an utterance-end backstop for noisy lines | endpointing_ms, utterance_end_ms, stt_no_delay and stt_numeric_coalesce_ms | endpointing_ms 200 ms; utterance_end_ms 1000 ms; stt_no_delay off; stt_numeric_coalesce_ms 0 (off) | turn_detection and turn_eagerness do not apply |
| Cascading, Gemini 3.5 Transcribe Live | The transcription stream's own silence window | endpointing_ms | 200 ms | Only Deepgram reads utterance_end_ms, stt_no_delay and stt_numeric_coalesce_ms |
Semantic VAD vs server VAD on OpenAI Realtime: which should you use?
Semantic VAD tends to suit callers who pause to think, because it judges from the words whether a sentence is finished; server VAD ends the turn after a fixed stretch of silence. OpenAI's own API default is server VAD, while new APIFleet assistants start on semantic VAD with eagerness auto.
OpenAI describes semantic VAD as a classifier that scores how likely the caller is to be done, and says audio that trails off waits longer than a definitive statement. Eagerness tunes the maximum wait: low lets callers take their time, high responds as soon as possible, and auto is the same as medium. It applies only to semantic VAD, so the dashboard disables it for server VAD.
Server VAD has three numbers: an activation threshold, prefix padding and a silence duration. APIFleet sends 0.55, 300 ms and 500 ms on phone calls and 0.7, 300 ms and 500 ms in browser tests, and none of them is an assistant field.
On phone calls APIFleet also asks OpenAI to create each reply automatically and to interrupt a reply when the caller speaks. Setting turn_detection to none sends OpenAI no detector, and because APIFleet does not commit the audio buffer itself, a caller's speech alone then does not start a reply.
| Question | Semantic VAD | Server VAD |
|---|---|---|
| What ends the turn? | A classifier that reads the caller's words and waits longer when a sentence sounds unfinished | A fixed stretch of silence |
| What can you change per assistant? | turn_eagerness: auto, low, medium or high | Nothing; switch to semantic VAD to get a setting |
| What APIFleet sends on phone calls | Eagerness, create_response and interrupt_response | Threshold 0.55, prefix padding 300 ms, silence 500 ms, create_response and interrupt_response |
| Default for new APIFleet assistants? | Yes, with eagerness auto | No; it is OpenAI's own API default |
| What to test first | Whether replies feel late after short or trailing-off answers | Whether callers who pause for longer than 500 ms get cut off |
How does Gemini Live eagerness change the silence window?
On Gemini Live with semantic_vad or server_vad, turn_eagerness sets how long Google's automatic activity detection waits through silence before it ends a turn. APIFleet sends 300 ms for high, 500 ms for medium or auto, and 800 ms for low.
Low also lowers end-of-speech sensitivity, while the other values keep it high. Start-of-speech sensitivity stays high, prefix padding is 80 ms, and interruptions stay on, so a caller who speaks over the agent cancels the reply.
The turn_detection value only has to be automatic on Gemini Live: semantic_vad and server_vad behave the same, and none is rejected.
Google's Live API guide treats 500 to 800 ms as a good balance, says 100 to 200 ms splits one utterance into fragments, and says 2000 ms or more adds noticeable waiting. High sits at 300 ms, below that range, so test it on callers who pause mid-sentence before you keep it.
Moving from medium to high shortens the window by 200 ms and moving to low lengthens it by 300 ms; model and speech time come on top of either. Because eagerness maps to a fixed window, you cannot set an exact value such as 650 ms per assistant.
How does voice agent endpointing work on a cascading pipeline?
On a cascading pipeline the speech-to-text stream decides when the caller's turn ends, and the language model starts only after that transcript is final. endpointing_ms is the trailing silence that closes a turn, and the server default is 200 ms.
On Deepgram Nova-3, utterance_end_ms is a second detector that looks at gaps between words instead of silence. It is the backstop for noisy lines where background sound keeps the silence detector from firing, and its default is 1000 ms.
Deepgram's guide says to set utterance_end_ms to 1000 ms or higher because interim results arrive about once a second, so a lower value adds nothing. APIFleet accepts 300 to 8000, which means a value under 1000 is allowed but, by that guide, gives no benefit.
On Gemini 3.5 Transcribe Live the only turn field is endpointing_ms, which sets the stream's silence window and also defaults to 200 ms. APIFleet validates endpointing_ms as a whole number from 50 to 3000, utterance_end_ms from 300 to 8000 and stt_numeric_coalesce_ms from 0 to 3000.
In the dashboard these fields sit under Turn-taking as End-of-turn silence, Utterance-end backstop and Numeric fragment guard. The dashboard hint is a fair summary of the trade-off: lower values interrupt more eagerly, and higher values let people pause mid-sentence.
effective_runtime_config shows what is in force: for a cascading assistant it lists endpointing_ms, utterance_end_ms, stt_no_delay and stt_numeric_coalesce_ms with the server defaults filled in where one applies, and sending null for one of them returns it to the server default.
How do you keep a phone number from splitting into several turns?
A number dictated in chunks can become several turns, and no turn setting rules that out. On a Deepgram cascading pipeline the numeric fragment guard is built for this: with stt_no_delay set to true and stt_numeric_coalesce_ms above 0, an unfinished digit fragment is held until ten spoken digits are heard or the timer ends.
Without the guard there are two failure modes. With Smart Format on, which APIFleet always requests from Deepgram, Deepgram may wait on a number that sounds unfinished before it finalises it, and the caller hears dead air. stt_no_delay set to true trades some formatting confidence for less waiting, so a pause inside the number can then end the turn at once.
The dashboard adds that no_delay may skip entity formatting, so retest exact phone-number accuracy before you keep it.
The guard is built around ten-digit numbers. It releases the digits as soon as ten have arrived, so a longer number, such as one with a country code, can be released before its last digits and the rest becomes a new turn; a shorter number waits for the full timer. If the caller resumes before the timer ends, the timer is cancelled and the held digits are joined with the next digit fragment.
Outside GPT-Live, the built-in wait_for_user tool is a second guard. By default its description tells the model to stay silent on a clearly incomplete fragment of an exact value, such as a phone number, and to treat consecutive fragments as one value; whether the model follows that is something to test.
On cascading calls there is one more hazard. A fragment that ends while a reply is being generated waits in a one-slot queue shared with key presses, and a newer fragment replaces it. The table traces an illustrative sequence, not a recording.
Whatever you set, have the agent read the number back and confirm it before it is used.
| Step | Caller says | What the runtime does | What the model has |
|---|---|---|---|
| 1 | "My number is zero eight seven", then a pause longer than endpointing_ms | The fragment ends the turn and a model turn starts | Fragment 1 |
| 2 | "two three four" while that turn is still running | The fragment waits in the one-slot queue | Fragment 1 |
| 3 | "five six seven eight" before the first turn ends | The newer fragment replaces the queued one | Fragment 1 |
| 4 | Nothing more | The first turn ends and the queued fragment starts the next turn | Fragments 1 and 3; the transcript lists all three |
Why does a voice agent stop talking in the middle of its greeting?
A voice agent stops mid-greeting when its detector hears something that sounds like the caller: a real interruption, line noise or the agent's own voice returning down the line. Read the transcript and play the recording at that moment: a caller speaking over the agent is a genuine interruption, while no caller words, or the agent's own words repeated back, point to noise or echo.
On cascading pipelines the runtime ignores bare voice activity while the agent's audio is playing, because the agent's own voice can come back down a phone line and trip a voice-activity detector. It cuts the agent off only when the transcription stream returns caller words and the agent's audio is actually audible.
On a cascading pipeline a barge-in does three things: it clears the carrier's queued audio, aborts the language-model request and stops the text-to-speech stream. On OpenAI Realtime and Gemini Live the provider's detector reports the interruption and cancels the reply, and APIFleet clears the carrier's queued audio.
A browser test will not show the echo problem, because the browser cancels echo before audio reaches the server. On OpenAI Realtime, browser sessions also use far-field noise reduction, and with server VAD a stricter threshold of 0.7 against 0.55 on phone calls, so a clean browser test does not prove phone behaviour.
For who speaks first on inbound and outbound calls, the barge-in note reports how often callers spoke before the first assistant audio on APIFleet phone calls.
Which setting should you try for each turn-detection symptom?
Change one setting at a time. Treat each cell as the first thing to try, not a fix: shorter waits tend to cut more callers off, and longer waits tend to add dead air.
| Symptom on a call | OpenAI Realtime | Gemini Live | Cascading pipeline |
|---|---|---|---|
| Cuts callers off mid-sentence | Use semantic VAD, then try turn_eagerness low | Try turn_eagerness low (800 ms window) | Raise endpointing_ms from the 200 ms default in small steps |
| Long pause before each reply | Try turn_eagerness high on semantic VAD | Try turn_eagerness high (300 ms window) | Lower endpointing_ms in small steps |
| Phone number split across turns | Try turn_eagerness low | Try turn_eagerness low | Raise endpointing_ms; on Deepgram try stt_no_delay with stt_numeric_coalesce_ms |
| Noisy line: empty turns or turns that never end | No threshold field; the built-in wait_for_user tool absorbs turns that contain only noise | No sensitivity field beyond eagerness; the built-in wait_for_user tool absorbs turns that contain only noise | On Deepgram keep utterance_end_ms at 1000 ms or higher as the backstop |
| Agent stops talking mid-greeting | No interruption switch on phone calls; compare the transcript and recording | No interruption switch on phone calls; compare the transcript and recording | Needs recognised caller words while the agent is audible; look for them in the transcript |
How do you test turn detection on a real phone call?
Test on a real phone number with scripted calls you can repeat, and change one setting on a copy of the assistant. A browser test is still useful for a first listen, but it uses echo cancellation and, on OpenAI Realtime, noise reduction that a phone line does not get.
- Read the current values with curl "https://apifleet.dev/assistants/ASSISTANT_ID" -H "Authorization: Bearer $APIFLEET_API_KEY", then note the turn fields in effective_runtime_config.
- Create a copy of the assistant with the same instructions, tools and voice, and bind a spare phone number to the copy so production keeps its settings.
- Change one field on the copy, such as turn_eagerness on a realtime assistant or endpointing_ms on a cascading one: curl -X PATCH "https://apifleet.dev/assistants/COPY_ID" -H "Authorization: Bearer $APIFLEET_API_KEY" -H "Content-Type: application/json" -d '{"turn_eagerness":"low"}'
- Write five scripts you can read the same way each time: a long sentence with a pause in the middle, a phone number in three groups, a one-word answer, an interruption in the middle of the agent's reply, and the same sentence on a noisy line or speakerphone.
- Run each script several times on the unchanged assistant first, as an A/A test, to see how much calls vary on their own, then the same number of times on the copy.
- After each call, read the transcript beside the recording and count cut-offs, pauses you can feel, split numbers and interruptions that were not real.
- Keep the change only if the counts improve on the same scripts; otherwise put the field back, using null for the cascading fields to return to the server default.
- Write the settings down with the results, because the assistant configuration checker covers seven basic fields and none of the turn settings.
- Budget for the calls: each test call is billed like any call, with the $0.03 per connected AI minute platform fee billed per second plus provider and carrier charges.
Continue with a practical next step
- APIFleet documentation: assistant fields and built-in tools
- APIFleet API reference: get assistant, update assistant and list calls
- Speech-to-text APIs for voice agents: endpointing and phone audio
- Test the conversation, not just the happy path
- Speech-to-speech models in production: a guide
- gpt-live-1 on real phone calls: a field guide
- Barge-in during call opening: how often callers speak before the agent
- Assistant configuration checker: seven checks before a first test
- Voice agent evaluation noise: run an A/A test first
- APIFleet pricing: platform fee per connected minute
Frequently asked questions
What is turn detection in a voice agent?
Turn detection is how a voice agent decides that a caller has finished speaking so it can reply, and that a caller is talking over it so it can stop. On APIFleet the provider's detector makes that call on OpenAI Realtime and Gemini Live, the speech-to-text stream makes it on cascading pipelines, and gpt-live-1 manages it itself.
What is the difference between semantic VAD and server VAD?
Server VAD ends a turn after a fixed stretch of silence. Semantic VAD uses a classifier that reads the caller's words and waits longer when a sentence sounds unfinished, with turn_eagerness setting the maximum wait. OpenAI's own API default is server VAD, while new APIFleet assistants default to semantic VAD with eagerness auto.
How do I stop my voice agent from cutting callers off?
Lengthen the window that ends a turn, one setting at a time: turn_eagerness low on OpenAI semantic VAD or on Gemini Live (an 800 ms window), or a higher endpointing_ms on a cascading pipeline. Then replay the same scripted calls on a real phone line, because a longer window tends to add a longer pause before every reply.
How do I shorten the pause before my voice agent replies?
Shorten the same window: turn_eagerness high on OpenAI semantic VAD or on Gemini Live (a 300 ms window), or a lower endpointing_ms on a cascading pipeline. The pause also includes model, speech and network time that turn settings do not change, and a shorter window tends to cut callers off more often, so replay the same calls after each change.
Why does my voice agent stop talking in the middle of its greeting on phone calls?
Something that sounded like the caller reached the detector: a real interruption, line noise or the agent's own voice returning down the line. The cascading runtime cuts the agent off only on recognised caller words while its audio is audible, and OpenAI Realtime and Gemini Live use the provider's detector. Read the transcript and recording at that moment, and test on a real phone line, because browser tests cancel echo.
Can I change turn detection for gpt-live-1?
No. APIFleet exposes no turn settings for gpt-live-1, because OpenAI's Live session manages conversational timing itself, and the docs say VAD controls do not apply to Live. If you need to tune turn timing, choose an OpenAI Realtime, Gemini Live or cascading assistant.
Sources and evidence
- OpenAI Realtime API: Voice activity detection (VAD) · observed 2026-11-22
- Deepgram: End of speech detection while live streaming · observed 2026-11-22
- Google Gemini API: Live API capabilities guide, Voice Activity Detection · observed 2026-11-22