Skip to content
mentoor

Topic 3 of 5 · 5 min read

Voice activity and end-of-turn detection

Goal: Tune turn-detection settings so an agent stops cutting off slow speakers without adding noticeable delay to normal replies.

Turn detection decides when the caller has finished speaking, and the settings you choose trade cut-offs against dead air, so tune them against real calls, not a quiet test.

Check yourself · 1 of 3

Callers keep getting cut off while reading a phone number with pauses. What is the most targeted change?

Choose one answer

Why it matters

An agent that answers too early cuts people off while they read out a card number or stop to think. An agent that waits too long leaves silence the caller reads as a dropped call. Both feel broken, even when the model is excellent.

The two layers

  1. Voice activity detection (VAD) decides whether audio contains speech. Common settings are a threshold (how loud counts as speech), prefix padding (audio kept from before speech starts so the first syllable is not clipped) and silence duration (how long a pause ends the turn).
  2. Semantic turn detection looks at the words as well as the sound. A sentence that ends mid-thought ("my number is four one five...") is probably not finished. OpenAI's semantic VAD exposes an eagerness setting: how quickly the model may jump in once it thinks you are done.

How to tune

  1. Collect real audio: noisy rooms, slow speakers, phone lines, people reading digits.
  2. Raise the silence duration or use semantic detection if callers are cut off. Each extra 100 ms of silence adds 100 ms to every reply, so measure the cost.
  3. Raise the threshold if background noise or a TV starts turns, but not so far that quiet speakers are missed.
  4. Handle structured input differently. For card numbers, order IDs and phone numbers, ask the caller to read in groups and wait longer for that single answer, instead of lengthening every turn.
  5. Compare settings on the same recordings and count cut-offs and added delay. Check the vendor guide for each setting's exact meaning.

Before and after

{
  "turn_detection": { "type": "server_vad", "threshold": 0.5, "silence_duration_ms": 200 }
}

A 200 ms silence timeout feels snappy and cuts off anyone who pauses between digits. For a support line with older callers, switch to semantic detection:

{
  "turn_detection": { "type": "semantic_vad", "eagerness": "low" }
}

Field names differ by vendor and change, so confirm them in the current docs.

What goes wrong

  • Tuning on your own voice. Developers speak clearly and quickly in quiet rooms.
  • One setting for every question. Digits need patience, "yes or no" does not.
  • Raising the timeout until nobody is cut off. The agent then feels slow on every turn.
  • Ignoring noise. A fan or a second speaker can trigger a turn and make the agent answer nobody.

Examples

Card number cut-off

A payment agent hears "four one five five..." then a two-second pause as the caller finds the next group. A 500 ms silence timeout ends the turn and the agent asks "Sorry, could you repeat that?" The fix: tell the caller to read in groups of four, and extend the wait only while the agent is asking for digits.

Comparing settings on recordings

Keep twenty recorded calls with slow speakers and background noise. Replay them against each setting and count two numbers: the turns where the agent started too early, and the average added delay before replies. Pick the setting that cuts the first number without a noticeable rise in the second.

Key points

  • Voice activity detection finds speech in audio, and a silence timeout ends the turn after a pause; both need tuning on real calls.
  • A short silence timeout feels quick and cuts off people who pause to think or read out digits.
  • Semantic turn detection uses the words to judge whether a sentence is finished, which helps with trailing thoughts.
  • Every extra 100 ms of silence you wait adds 100 ms to every reply, so measure the cost of each change.
  • Handle structured input such as card numbers with a longer wait for that answer only.

Common mistakes

  • Tuning only on your own clear voice in a quiet office.
  • Using one silence timeout for every question, including slow digit entry.
  • Raising the timeout until nobody is cut off, which makes every reply feel late.
  • Ignoring background noise that triggers turns when nobody is speaking to the agent.

Check yourself · 2 of 3

What is the downside of raising the silence duration for all turns?

Choose one answer

Check yourself · 3 of 3

What does semantic turn detection use that plain VAD does not?

Choose one answer

Practice items, not counted towards your mastery.

Start here