Topic 1 of 5 · 4 min read
Speech-to-speech models versus chained pipelines
Goal: Choose between a speech-to-speech model and a chained pipeline for a given voice product and name the trade-off that decided it.
A speech-to-speech model hears and speaks audio directly, a chained pipeline passes the call through speech-to-text, a text LLM and text-to-speech, and you choose by what you must control, not by which demo sounds better.
Check yourself · 1 of 3
A support bot must redact card numbers from what it says before any audio is produced. Which design fits best?
Why it matters
The choice sets your latency floor, your cost per minute, what you can log and how much of the conversation you can steer. Changing it later means rewriting the audio path, the prompts and the evals.
The two shapes
- Speech-to-speech (OpenAI Realtime, Gemini Live): one model takes audio in and produces audio out. There is no text hand-off between steps, so replies can start quickly, and the model can react to tone, pauses and interruptions. You get a transcript as a side product, but the model did not reason from it.
- Chained pipeline (frameworks such as LiveKit Agents or Pipecat wiring together a transcription service, an LLM and a speech synthesiser): three stages, each one replaceable. Every hop adds delay, but you can pick the best model per stage, inspect the text between stages and edit it.
How to decide
- Latency target. Natural turn-taking in conversation is a budget of a few hundred milliseconds. Add up each hop in a chain before you commit.
- Control. Do you need to filter or rewrite what the model says before it is spoken, force a fixed script, or pin a specific voice? A chain gives you a text checkpoint. A native model does not.
- Transcripts and compliance. If you must store, search or redact what was said, ask how the transcript is produced. A chain gives you the exact text the LLM saw. A native model's transcript is a separate transcription of the audio.
- Model choice. Native audio models are fewer and tied to one vendor. A chain lets you use any strong text model and any tool-heavy agent you already have.
- Cost per minute. Price a real call from the vendor's current price page: audio tokens in and out for native models, three separate bills for a chain. Compare on a measured five-minute call, not on a list price.
Before and after
Weak: "We will use the Realtime API because it is the newest." Better: "Our dental clinic bot books appointments, must keep a redacted text log, and calls an existing scheduling agent that expects text. We choose a chain: a streaming transcriber, our current LLM, a synthesiser. We accept a slower first word in return for the text checkpoint."
What goes wrong
- Judging by a quiet demo. A native model feels fast on a clean line. Test with background noise, accents and long pauses.
- Treating the transcript as ground truth. In a native model it is a best-effort transcription of audio, so it can differ from what the model understood.
- Forgetting the text agent you already have. Moving a mature tool-using agent onto a native audio model can lose prompts, evals and guardrails you spent months on.
- Choosing once, forever. Keep the audio transport and the agent logic separate so you can swap one without the other.
Examples
Clinic booking bot
A clinic needs a log of every call with names and birth dates redacted, and it already has a text agent that books appointments. The team picks a chain: streaming transcription, the existing agent, then speech synthesis. The first word of each reply arrives later than it would from a native audio model. They accept that because the redacted text log is a legal requirement and the existing agent keeps its tests and guardrails.
Language practice companion
A language app wants the tutor to hear pronunciation and hesitation and to reply with natural intonation. The team picks a speech-to-speech model, because a chain would flatten the audio into text and lose the cues the product depends on. They store the model's transcript for review, knowing it may differ from what the model understood.
Key points
- A speech-to-speech model takes audio in and gives audio out, so replies can start sooner but there is no text checkpoint between hearing and speaking.
- A chained pipeline adds a delay at each hop, and in return you can swap each stage and inspect or edit the text between stages.
- Need to filter, redact or script what is spoken, or reuse an existing text agent? That favours a chain.
- Compare cost by measuring a real call on each vendor's current price page, not by comparing list prices.
- Keep audio transport and agent logic separate so the decision is reversible.
Common mistakes
- Choosing a native audio model because it is newer, without checking whether you need a text checkpoint.
- Testing only on a quiet line with a clear speaker and then promising the same latency in production.
- Assuming the transcript from a native model is exactly what the model reasoned from.
- Rewriting a mature text agent onto an audio model and losing its prompts, tests and guardrails.
Check yourself · 2 of 3
What is the main cost of a chained voice pipeline compared with a native speech-to-speech model?
Check yourself · 3 of 3
A team compares two voice vendors using price pages alone and picks the cheaper one. What should they have done?
Practice items, not counted towards your mastery.
Start here
- Realtime API guide (OpenAI API) (opens in a new tab)DocsFree
Session types, WebRTC, WebSocket and SIP transports, events and ephemeral client tokens.
- Voice activity detection in the Realtime API (OpenAI) (opens in a new tab)DocsFree
Server VAD and semantic VAD settings: threshold, silence duration, eagerness and interruption behaviour.
- Live API (Gemini API docs) (opens in a new tab)DocsFree
Gemini's streaming audio API: sessions, voice activity settings, interruptions and tool use.
More for this topic
- LiveKit Agents documentation (opens in a new tab)DocsFree
Building voice agents on a WebRTC media server, in chained or speech-to-speech mode.