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.
A voice agent has to hear, think and speak. The pipeline does this in three separate steps. Speech recognition turns the caller's audio into text. A language model reads the text, calls tools such as a claims lookup, and writes a reply. A text-to-speech model reads that reply aloud. Each step is a part you can see, test and replace.
A speech-to-speech model does the whole job in one model. It takes audio in, keeps the conversation going, calls tools and speaks back, with no text step of your own in between. That usually means a quicker first word and support for the caller cutting in. Because it works on the audio itself, it can pick up how something is said, which a text step drops. The cost is that the middle is harder to see. You cannot put a plain text check between what the caller said and what the agent does.
So I pick by what matters most. For a claims line where every payout figure must be checked and logged, I would use the pipeline and check the text before any speech. For a booking or help line where the chat must feel natural, I would use speech-to-speech and keep money decisions in code. Either way I measure how long callers wait for a useful answer, and I test both the conversation and the completed task.
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
- 1The caller's question goes in as sound.
- 2The words go to the agent.
- 3The draft reply goes to your code for checking.
- 4Your code checks the reply before anything is spoken.
- 5The approved reply is read aloud to the caller.
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
- 1The caller's voice goes straight into the model as audio.
- 2The model asks your code for the claim file when it needs it.
- 3The model's spoken reply goes back to the caller.
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.
# 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
What will they ask next?
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.