esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

ASR + LLM + TTS Pipeline vs Speech-to-Speech Models

How a speech pipeline and a speech-to-speech model differ, what each costs you, and how to choose between them, explained for your AI interview.

In short

A pipeline turns speech into text, runs a text model, then turns the reply back into speech, so you can check and swap each step. A speech-to-speech model takes audio in and gives audio out in one model. It usually gives a quicker first word, but the middle is harder to inspect.

11 min readIntermediateCommon · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

There are two ways to build a voice agent. The first is a pipeline: speech to text, then a text model with tools, then text to speech. I can check the text in the middle, log it and swap any stage. The second is a speech-to-speech model that takes audio and gives audio back. It usually answers faster and handles interruptions well. I would pick the pipeline when every answer must be checked, and speech-to-speech when the conversation has to feel natural.

What is the difference, in plain words?

A voice agent has three jobs: hear the caller, think, and speak back. There are two ways to build one. In the pipeline, three separate parts do the jobs one after another. In a speech-to-speech model, one model takes sound in and gives sound out.

Think of a hospital's interpreter service. In the old way, one interpreter writes the words down, a second reads the notes and works out the answer, and a third reads it aloud. In the newer way, one fluent person listens and talks back at once. The newer way is quicker, but the notes are gone, so nobody can check the middle as easily.

Take an insurer's claims phone line. A caller asks "Has my water damage claim been approved?" A pipeline writes the question down, the agent checks the claim file, and the answer is read aloud. A speech-to-speech model hears the question and answers in one go.

Key words

ASR (speech to text)
The step that turns the caller's audio into written words.
LLM
The language model that reads the words, uses tools and writes a reply.
TTS (text to speech)
The step that reads the reply out loud.
Barge-in
The caller talks over the agent, and the agent stops to listen.

How does the pipeline work?

The pipeline is three stages in a row, with your code sitting on the text between them. OpenAI's voice agent guide describes this chained path as the one to use when you want to inspect or change the text between speech recognition, your agent and speech generation.

A chained voice pipeline

Caller's audio

a question about a claim

Speech to text

turns sound into words

Agent and tools

looks up the claim, drafts a reply

Your code

Check the reply

policy and approved wording

Text to speech

a voice model, not a person

Caller hears

the reply, after the stages

  1. 1The caller's question goes in as sound.
  2. 2The words go to the agent.
  3. 3The draft reply goes to your code for checking.
  4. 4Your code checks the reply before anything is spoken.
  5. 5The approved reply is read aloud to the caller.
Three stages run in a row, and your code sits on the text between them. The reply is checked as words before text to speech turns it into the sound the caller hears.

The strength is control. Your code can store the transcript, run policy checks before the agent replies, and speak only an answer that has been approved. The cost is delay that adds up across the stages, and the text step keeps the words but not the way they were said.

  • “it can't directly observe tone, multiple speakers, or background noises, and it can't output laughter, singing, or express emotion.”

    OpenAI, Hello GPT-4o (May 2024)

How does a speech-to-speech model work?

One model takes the caller's audio in and gives audio out. OpenAI's Realtime API is its route for this, and its guide calls the result a speech-to-speech voice agent. The model keeps the conversation state, calls tools, and handles the caller interrupting.

  • “The model works directly with audio, maintains conversation state, and can call tools.”

    OpenAI, Realtime API guide

  • “This is the best starting point for voice agents that need barge-in, low first-audio latency, natural turn taking, and realtime tool use.”

    OpenAI, Realtime API guide

  • “we trained a single new model end-to-end across text, vision, and audio”

    OpenAI, Hello GPT-4o (May 2024)

One speech-to-speech model

Caller's audio

a question about a claim

Speech-to-speech model

hears, decides and speaks

Your code

Claims lookup

reads the claim file

  1. 1The caller's voice goes straight into the model as audio.
  2. 2The model asks your code for the claim file when it needs it.
  3. 3The model's spoken reply goes back to the caller.
One model hears the audio, asks your code for data through tools, and speaks back. The model does not pass through a text step of your own, although the API can send transcripts for logging. The checks have to live at the tool calls and in what the model is allowed to do.

The strength is speed and feel. The middle is harder to see, though. There is no text step of your own to check, so the safety work moves to what the tools can do and what the model is allowed to say.

How long does a pipeline make the caller wait?

Say the pipeline takes 0.4 seconds for speech to text, 1.2 seconds for the agent and 0.3 seconds to speak. These are made-up numbers, but they show the shape. In this simplified version the caller hears nothing until all three stages finish, a total of 1.9 seconds. Real systems can overlap some stages, which takes more engineering.

Python
# One turn of a chained voice pipeline on a claims phone line (simulated, made-up timings).
STAGES = [("Speech to text", 400), ("Agent works out the answer", 1200), ("Text to speech", 300)]

def transcribe(call_id):
    return "Has my water damage claim been approved?"  # stand-in for a speech-to-text call

def agent_reply(text):
    if "approved" in text:
        return "Your claim is still under review. We will call you within five working days."
    return "Could you say that again?"

def run_turn(call_id):
    heard = transcribe(call_id)
    print("Heard:", heard)  # the text is visible here, so it can be logged and checked
    reply = agent_reply(heard)
    total = 0
    for name, ms in STAGES:
        total += ms
        print(name + ": done at " + str(total) + " ms")
    print("Caller hears:", reply)
    print("Silence before the first word:", total, "ms")

run_turn("call-0042")

Output

Heard: Has my water damage claim been approved?
Speech to text: done at 400 ms
Agent works out the answer: done at 1600 ms
Text to speech: done at 1900 ms
Caller hears: Your claim is still under review. We will call you within five working days.
Silence before the first word: 1900 ms

The printed text is the point. The heard words sit in plain view, so a line of code can log them, check them, or stop a reply before text to speech runs. OpenAI's guide says to measure how long callers wait for a useful spoken answer, and to keep the caller, tools and transport the same when you compare two designs.

How would you choose one for a claims phone line?

Start from the risk. A claims line handles payout figures and personal details, so any answer about money should come from the claims system through a tool, and it should be logged.

  • Pipeline

    Checks sit in the middle

    Log the text, check it, then speak only an approved reply. It usually takes longer to answer, and the text step drops how things were said.

  • Speech-to-speech

    Feels natural

    Quicker first word and interruptions handled. It works on the audio, so tone is not lost in a text step. Payouts and records still need checks in code at the tool calls.

OpenAI's GPT-Live option can listen and speak at the same time, a capability called full duplex. It hands reasoning and tool use to a separate backend, which you choose, so the same rule applies: money decisions stay in code.

Tip

My pick for a claims line: the pipeline for anything that quotes money, with tool results checked in code. A speech-to-speech model fits a booking or help line where the chat has to feel natural.

What does the interviewer want to hear?

A strong answer covers

  • The three parts of a pipeline: speech to text, the model, text to speech.
  • What a speech-to-speech model does in one step, and what it gains.
  • What the pipeline gives you: a text stage you can log, check and swap.
  • The cost: delay adds up across stages, and the middle is harder to see.
  • A pick by risk and speed, with a test: task success and caller wait.
  • Money and records stay in code, whichever design you choose.

Common traps

  • Trap"A speech-to-speech model is always the better choice."

    BetterIt usually answers faster but is harder to check. Pick by what must be checked and how quick the reply must be.

  • Trap"The pipeline is old, so nobody builds it now."

    BetterTeams still build pipelines when each text step must be logged, checked or swapped. OpenAI's own guide keeps it as an option.

  • Trap"Speech-to-speech needs no checks."

    BetterThe checks move to the tool calls. Your code still decides the payout, the file and the action.

Can you spot the weak design?

Spot the weak design

Your claims voice bot is about to read out a payout figure. Which option is the design mistake?

Quick check

A claims line must log and check every reply before the caller hears it. Which design fits best?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q452Native multimodal vs pipeline approach?12 min
  2. Q361Design a voice agent.14 min
  3. Q369How do you design for low latency?13 min
  4. Q344What is a p95/p99 latency budget?11 min
  5. Q455How do you evaluate multimodal outputs?14 min

Last updated on 27 November 2026

Building a voice agent for calls or support?

I design and build AI voice agents and the systems behind them, including how speech connects to tools and checks. Book a short call and tell me what your callers need.