Part V · Specialist playbooks/Chapter 20 of 20/6 min read

Voice Agents in Production

How to architect production voice AI across latency budgets, pipeline trade-offs, endpointing, barge-in, telephony handoffs, call evaluation and unit economics.

A voice operations console combines turn-taking, state, handoff and cost controls.
A voice operations console combines turn-taking, state, handoff and cost controls.Plate 20
On this page5 sections
  1. 01Choose between a cascaded pipeline and native speech-to-speech
  2. 02Budget turn latency end to end (and track p95, not averages)
  3. 03Design for endpointing, barge-in and messy real-world audio
  4. 04Engineer reliable telephony handoffs and compliance boundaries
  5. 05Evaluate real audio slices and model full call economics

Phone calls break almost every design instinct built for text chat.

In chat, a three-second pause feels normal, users can re-read a paragraph, typos are obvious and there is no background traffic or speakerphone echo. On a live phone call, a two-second silence makes callers say "hello?", overlapping speech causes collisions, a single misheard digit wrecks a booking and a realistic-sounding voice buys zero forgiveness if the appointment never hits the calendar.

Shipping a voice agent that holds up on real PSTN phone lines requires obsessing over four things that never show up in a clean demo: turn-latency budgets, turn-taking mechanics, telephony reliability and full call economics.

Choose between a cascaded pipeline and native speech-to-speech

Production voice agents generally run on one of two architectures, and the choice shapes quality, latency, debugging and safety:

DimensionCascaded pipeline (STT -> LLM -> TTS)Native speech-to-speech (realtime audio model)
Typical turn latency~700–1,400 ms (highly sensitive to streaming and region tuning)~300–600 ms (fewer network hops, direct audio generation)
Prosody & emotionDepends on TTS quality; misses subtle caller tone/hesitationCaptures tone, pacing, laughter and natural interruptions directly
Tool calling & guardrailsMature; easy to inspect text transcripts, run deterministic checks and swap components independentlyHarder to audit intermediate reasoning; tool-call reliability and strict policy adherence can be less predictable
Cost & debuggingTransparent per-component spend; clean text traces for evalsHigher per-minute token cost; audio traces are heavier to store and inspect

For transactional business calls (appointment booking, dispatch, order lookup, claims intake) where deterministic tool calls, strict compliance disclosures and auditable text transcripts matter most, a well-tuned streaming cascaded pipeline is often easier to control and debug. Reach for native speech-to-speech when ultra-low latency and natural conversational nuance are the primary product value and tool logic stays narrow.

Budget turn latency end to end (and track p95, not averages)

In human conversation, gaps around 500–800 ms feel natural. Past 1,200 ms, callers sense lag; past 1,800–2,000 ms, callers assume the line dropped and start speaking again right as the agent begins talking.

Interactive waterfall

Voice turn-latency budget

Simulate end-to-end delay from end-of-speech to first audio byte across both architectures.

1,400 msNoticeable pause (acceptable with tool calls)
800ms
1,800ms
VAD / endpointing: 250msStreaming STT: 180msLLM TTFT: 350msTool API: 400msTTS + transport: 220ms

Break your end-to-end turn latency budget across every single hop from the caller stopping speech to the first byte of audio hitting their ear:

  1. Endpointing / Voice Activity Detection (VAD): 150–400 ms to decide the caller actually finished speaking.
  2. Streaming Speech-to-Text (STT): 100–250 ms for final transcription commit.
  3. LLM time-to-first-token (TTFT): 200–500 ms (keep prompts lean, use prompt caching, avoid heavy reasoning models on simple conversational turns).
  4. Tool execution (when needed): 200–1,500+ ms depending on downstream CRM, calendar or ERP APIs.
  5. Streaming Text-to-Speech (TTS) + telephony transport: 150–300 ms to stream first audio chunks over WebRTC/SIP.

Never manage by average latency. A p50 of 850 ms still produces awful calls if p95 hits 3.2 seconds whenever an external calendar lookup stalls. Stream aggressively across every stage (start synthesising TTS on the first complete clause rather than waiting for the full LLM response), co-locate voice infrastructure geographically close to callers, and handle genuine tool delays with one concise, honest acknowledgement ("Let me check Thursday afternoon for you") rather than looping awkward filler sounds.

Design for endpointing, barge-in and messy real-world audio

A conversation track moves through listening, deciding, speaking, recovery and human handoff states.

Real callers interrupt mid-sentence, call from loud workshops or Bluetooth car kits, pause while hunting for a booking number and change their minds twice in thirty seconds. Four interaction rules keep calls from derailing:

  • Tune endpointing carefully: Too aggressive and the agent cuts callers off mid-thought when they pause to breathe; too conservative and every turn drags. Semantic turn-detection models (which judge whether a sentence sounds complete, not just milliseconds of silence) beat pure silence timers dramatically.
  • Make barge-in immediate and stateful: The instant a caller speaks over the agent, stop audio playback immediately, record only what the caller actually heard before interrupting (not the unsaid remainder of the LLM response) and keep read-only context intact while cancelling unconfirmed actions.
  • Structure the task without robotic scripts: Define a clear state machine for required slots and transitions (identify intent -> verify identity -> check live availability -> confirm details -> execute or hand off) while allowing natural language within each stage. If a caller gives three details in one breath ("Move my Tuesday 2 pm haircut with Sam to Thursday morning"), capture all three instead of stubbornly re-asking question one.
  • Confirm high-error inputs explicitly (and offer DTMF/SMS fallback): Phone audio compresses speech to narrowband 8 kHz, turning names, postcodes, email addresses and alphanumeric booking codes into frequent transcription errors. Always read back consequential details (date, time, price, spelling) before firing a write tool, keep tool calls idempotent (The Model Harness and Routing) and fall back to keypad (DTMF) input or an SMS verification link when noisy audio fails twice.

Engineer reliable telephony handoffs and compliance boundaries

A voice agent that cannot hand off cleanly traps callers in a modernised IVR maze.

  • Warm transfers beat blind dumps: When transferring via SIP/PSTN to a human receptionist or specialist, pass a concise structured summary (caller name, verified intent, account ID, actions already checked and reason for transfer) straight into the agent screen or whisper channel so the caller never starts over.
  • Handle unavailable humans honestly: If no staff member picks up or it is after hours, never drop the call or loop back into the greeting. Offer a concrete alternative (logged callback request with a stated window, or SMS follow-up) and confirm the right return number.
  • Verify legal and accessibility obligations upfront: Automated call disclosure, recording consent rules, telecom spam/outbound restrictions, PII redaction in call recordings/transcripts and accessibility alternatives vary sharply by jurisdiction. Confirm exact wording and retention rules with legal specialists before taking live traffic.

Evaluate real audio slices and model full call economics

Evaluating a voice agent solely via text-to-text transcripts misses half the failure modes (bad transcription on regional accents, background chatter triggering false barge-in, mispronounced brand names, awkward pacing and silent call drops).

Build your evaluation suite with both simulated multi-turn scenarios and real, appropriately consented call audio sliced across: clean speech, noisy environments, strong accents, frequent interruptions, slow tool responses and mandatory escalations. Track four core metrics per slice: task completion without rework, incorrect write/booking rate, p95 turn latency and caller abandonment / hang-up point.

Finally, model cost per resolved call honestly (Make the Economics Work). Do not multiply raw LLM tokens by call length and declare victory. Include telephony/SIP per-minute charges, STT and TTS per-minute fees, LLM context growth across long multi-turn calls, failed or abandoned calls, escalated calls still handled by staff, and ongoing QA listening time. Compare that full resolved-call cost against the existing human receptionist or call-centre cost at the same quality bar, including the value of calls previously missed after hours or during peak rush.

Handbook v4.0 · Ch. 20Updated Nov 2026