AGENSPHERE/ JOURNAL
← JOURNAL
J-052GUIDE3 MIN READ

In a voice agent, latency is the product

How AI voice agents work: speech recognition, a language model with tools, and speech synthesis, streamed so the caller never waits. Why latency, turn-taking and handover decide whether a voice agent feels useful or robotic, and how to engineer each.

IN SHORT
  • An AI voice agent is a loop of three parts: speech recognition turns the caller's words into text, a language model decides what to say and which tools to call, and speech synthesis speaks the reply.
  • Every part must stream. A voice agent that waits for each stage to finish leaves long silences, and callers hang up or talk over it.
  • Turn-taking (knowing when the caller has finished, and stopping when they interrupt) matters as much as the words.
  • Production voice agents also need scoped tools, disclosure that the caller is talking to AI, and a clean handover to a person.

A text chatbot can take two seconds to answer and nobody minds. On a phone call, two seconds of silence feels broken. That single difference shapes how AI voice agents work: the same model and tools as any AI agent, wrapped in a pipeline engineered so the conversation never stalls.

01How do AI voice agents work, step by step?

Each turn of the conversation runs through a pipeline:

  1. Audio in. The call arrives over the phone network or a browser, as a stream of audio.
  2. Speech recognition (ASR). Audio is transcribed to text continuously, with partial results while the caller is still speaking.
  3. End-of-turn detection. The system decides the caller has finished, from silence, intonation and what they said.
  4. Reasoning. A language model reads the conversation so far and decides what to say, calling tools when it needs facts or must act (see how tool calling works).
  5. Speech synthesis (TTS). The reply is turned into speech, starting with the first words while the rest is still being generated.
  6. Audio out, back to the caller, while the system keeps listening in case they interrupt.

Some newer models take audio in and produce audio out directly, which removes steps 2 and 5. The engineering questions below stay the same.

On the phone, silence is an answer. Usually the wrong one.

02Why is latency the hardest part?

Because delays add up across every stage. Transcription, end-of-turn detection, the model's first token, the first audio from synthesis and the network all contribute. If each waits for the previous one to finish, the gap between the caller stopping and the agent speaking stretches past what feels natural.

The fixes are architectural:

  • Stream everything. Start synthesis on the first sentence of the reply, not after the last.
  • Keep replies short. A voice reply should be one or two sentences. Long answers are slow to generate and hard to follow by ear.
  • Use a fast model for the conversation and hand slower, heavier work to tools that run while the agent says something useful, such as "Let me check that for you" (see LLM routing).
  • Place components close together, in regions near your callers.

03What makes turn-taking hard?

People pause mid-sentence, say "um", and interrupt. An agent that jumps in during every pause is rude; one that waits for long silences feels slow. Good systems combine silence timing with what has been said (a complete question is probably finished) and support barge-in: when the caller starts talking, the agent stops speaking immediately and listens.

04How does a voice agent take actions safely?

The same way any agent should: through scoped tools with limits. Booking, looking up an account or sending a confirmation text are tools with defined inputs, permissions and effect classes, not things the model improvises (see every agent tool needs an effect class). What a caller says is untrusted input: no phrasing should unlock a tool the agent is not allowed to use (see prompt injection is an input trust problem).

voice-agent/tools.yaml
tools:
  check_availability: { effect: read }
  book_appointment:   { effect: reversible, requires: [service_type, slot_id, callback_number], confirm_aloud: true }
  send_confirmation:  { effect: reversible, channel: sms }
  transfer_to_human:  { effect: read, passes: call_summary }
policy:
  disclose_ai: "first sentence of every call"
  recording_notice: per_jurisdiction
  max_silence_ms_before_filler: 700   # a tuning value, set from real calls

05When should a voice agent hand over to a person?

When the caller asks for one, when the request is outside its tools, when it has misunderstood twice, or when the stakes are high (an emergency, a complaint, a legal matter). The handover should pass a summary, so the person picks up without asking the caller to start again (see human approval is a durable wait).

06How do you test an AI voice agent?

With recorded test calls, not only text. Build a set of realistic calls (accents, background noise, interruptions, unclear requests), run the agent against them on every change, and score each call for resolution, correctness of any booking or data captured, and handover quality (see how to evaluate AI agents). Then review samples of real calls after launch.

07Where to go next

We are building these ideas into Olkara, AI voice agents that answer every call and call back every lead, currently taking a waitlist at olkara.com. If you want a voice agent built into your own systems, see AI voice agent development.

Have this problem, but no system for it yet?DESCRIBE YOUR SYSTEM →