Home / Insights / Generative AI and LLMs
Generative AI and LLMs
Realtime Speech-to-Speech or a Cascaded STT, LLM and TTS Pipeline? Choosing a Voice AI Architecture
Voice assistants are now built in two main ways: a realtime model that listens and speaks directly, or a pipeline that chains speech recognition, a language model and speech synthesis. This guide compares them on latency, control, cost, languages and integration, and shows how to decide.
TopicsGenerative AI and LLMsAI Agents and AutomationArchitecture and Modernization
Key takeaways
- A cascaded pipeline gives you inspectable text at every step, which makes testing, redaction and audit easier.
- Realtime speech-to-speech models usually feel more natural and handle interruptions more smoothly, at the cost of some control and observability.
- Perceived latency depends on the whole chain, including telephony, turn detection and tool calls, not just model speed.
- Language and accent coverage should be tested on your own callers’ audio before you commit to either approach.
- Many production systems are hybrids: realtime conversation with text transcripts, structured tool calls and a separate post-call summary step.
On this page
Until recently, almost every voice assistant was built as a chain: speech-to-text (STT) turned caller audio into text, a language model or dialogue engine decided what to say, and text-to-speech (TTS) turned the reply back into audio. Realtime models, such as OpenAI Realtime, now accept audio in and produce audio out within a single session, with the model handling turn-taking and interruption itself.
Both approaches appear in the toolset PoliteTech uses for voice assistants, alongside Whisper, Google Speech-to-Text, Azure Speech, Deepgram and ElevenLabs. The choice between them affects how natural calls feel, how easy the system is to test and audit, what it costs to run, and how well it handles your callers’ languages and accents. This article sets out the trade-offs for technical decision-makers. If you need background on how modern speech recognition works, start with our explainer on speech-to-text in products.
The two architectures in brief
Cascaded pipeline
Audio flows from the telephony provider or app into a streaming STT service. Partial and final transcripts go to the application, which manages dialogue state, calls a language model with the transcript, tool definitions and context, and receives a text reply. The reply is streamed into a TTS engine, and synthesised audio is played back to the caller. A voice activity and turn detection component decides when the caller has finished speaking and handles barge-in, where the caller interrupts the assistant.
Realtime speech-to-speech
Audio is streamed directly to a realtime model session. The model detects turns, reasons over the audio, calls tools you have defined, and streams audio back. It can usually also return text transcripts of both sides. The application still supplies instructions, tools and business logic, but much of the turn-taking and voice generation happens inside the model.
Where telephony fits
For phone assistants, both approaches need a way to get live call audio to your service and back. Telephony platforms such as Twilio offer this; Twilio’s Media Streams, for example, sends raw call audio to an application over WebSockets, and its bidirectional mode lets the application send audio back for playback, which is the pattern Twilio itself describes for AI voice agents. Only one bidirectional stream can be active per call, so the architecture should assume a single audio path through your voice service.
How they compare
| Factor | Cascaded STT, LLM, TTS | Realtime speech-to-speech |
|---|---|---|
| Conversational feel | Good when tuned well; turn detection and streaming need care | Often more natural; interruptions and pacing handled by the model |
| Observability | Text at every stage; easy to log, inspect and replay | Transcripts available, but reasoning happens over audio; harder to replay exactly |
| Control over wording | High; you can validate or rewrite text before it is spoken | Lower; output is generated as audio, so validation must happen through instructions and tools |
| Component choice | Mix and match best STT, model and voice per language | Tied to the realtime provider’s languages and voices |
| Redaction and compliance | Redact sensitive data from text before it reaches the model or logs | Audio reaches the model directly; redaction applies mainly to stored transcripts |
| Engineering effort | More moving parts to integrate and tune | Fewer components, but provider-specific session handling |
| Cost structure | Separate charges per component; each can be optimised | Usually priced on audio tokens or minutes; simpler but less tunable |
Neither column is universally better. A clinic booking line where every confirmed time must be exactly right may value the control of the cascaded approach. A retail store-information line where callers ask loosely phrased questions may benefit more from the natural flow of a realtime model.
Latency: where the time actually goes
Callers notice silence quickly. Most of the delay in voice assistants does not come from a single slow component but from several small steps adding up:
- Telephony transport between the carrier, the telephony platform and your service. Choosing regions close to your callers and your model provider helps.
- End-of-turn detection. Waiting too long after the caller stops speaking adds dead air; cutting in too early interrupts them. This is often the biggest tuning task.
- Model response start time, which depends on prompt length, context size and model choice.
- Tool calls to booking, order or CRM systems. A slow availability lookup can dominate everything else.
- Speech synthesis start time in a cascaded setup, which improves when TTS streams audio as text arrives.
Practical techniques apply to both architectures: keep prompts and context lean, pre-fetch data you know you will need (for example, the caller’s upcoming appointments once their number is matched), use short spoken acknowledgements while a slow lookup runs, and measure each segment separately in production rather than only the end-to-end figure.
Languages, accents and domain vocabulary
For international clients, this is frequently the deciding factor. Supported language lists are a starting point, not evidence. Accuracy on your callers, with their accents, background noise and domain words such as product names, suburbs or medication names, needs to be tested directly.
- Collect a set of real or representative call recordings with consent, covering the accents and conditions you expect.
- Test the STT options or realtime model on that set and review errors on the words that matter most: names, dates, numbers, addresses.
- Check whether the engine supports custom vocabulary or hints for domain terms.
- Listen to the synthesised voices in each language with native speakers, including how they pronounce numbers, times and your brand name.
A cascaded design lets you pick a different STT or voice per language if one provider is weaker in a market you care about. With a realtime model you accept its coverage, so test it early.
Control, safety and tool use
Voice assistants complete tasks, such as booking appointments, checking order status or rescheduling deliveries. The safety of those actions depends on keeping business rules in application code, whichever architecture you choose.
- Define tools with strict schemas and validate every argument in code before calling backend systems.
- Read critical details back to the caller for confirmation before committing, for example the date, time and location of a booking.
- Keep handover rules explicit: one clarifying question, then transfer to a person with a transcript and summary.
- Generate post-call summaries and CRM notes as a separate step from the live conversation, where they can be validated.
With a cascaded pipeline you can also check the reply text before it is spoken, for instance to block prices or medical advice that should never be stated. With a realtime model, rely more on instructions, tool design and monitoring of transcripts. The patterns in our guide to building APIs for AI features apply to the tool layer in both cases.
A decision checklist
Work through these questions with your team:
- How critical is exact wording? If misstatements carry regulatory or safety risk, favour a cascaded design or a hybrid with strong validation.
- Which languages and accents must work well at launch? Test both options on your own audio.
- Do you need to redact sensitive data before it reaches a model? A cascaded design makes this simpler.
- How conversational are the calls? Open-ended questions benefit more from realtime models than scripted flows.
- What are your audit and recording requirements? Make sure transcripts and decisions can be retained as required.
- How much engineering capacity will you have for tuning? Realtime models reduce component count; cascaded systems reward ongoing tuning.
A common hybrid is a realtime model for the live conversation, with tools that call your own validated APIs, text transcripts stored for audit, and a separate summarisation step that writes to the CRM. Whatever you choose, keep the layers (speech recognition, understanding, actions, speech output) separable so you can switch providers as the market moves. Our AI voice assistant solution starts by scoping a few high-volume call types, which also makes it easier to test both architectures against real calls before committing. For cost considerations across model choices, see reducing LLM token and cloud costs.
Frequently asked questions
Is a realtime speech-to-speech model always faster than a pipeline?
Not always. Realtime models remove some hand-offs, but telephony transport, turn detection and slow tool calls can still dominate. A well-tuned streaming pipeline can feel responsive, so measure both on your own call flows.
Can we switch from one architecture to the other later?
Yes, if business logic, tools and integrations live in your own application rather than inside prompts tied to one provider. Keeping the layers separate is the main way to preserve that option.
Which approach is better for languages other than English?
It depends on the providers and languages involved. A cascaded design lets you choose the strongest speech recognition and voice for each language, while a realtime model ties you to its coverage. Test with your callers’ audio.
Do we still need transcripts with a realtime model?
Yes. Transcripts support quality review, handover summaries, CRM notes and compliance. Most realtime services can return text alongside audio.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Twilio Docs: Media Streams overview — Supported the description of unidirectional and bidirectional call audio streaming over WebSockets, the AI voice agent pattern and the one-bidirectional-stream-per-call limit.
Related reading
Continue your research
Not sure which voice architecture suits your call types?
We can test realtime and cascaded options against a sample of your calls and languages before you commit to a build.
