Voice AI & Real-Time Multimodal
Voice AI is multimodal AI under a hard real-time deadline: the model must listen, think, and speak in a continuous stream fast enough that a human on the other end experiences a conversation, not a series of requests.
Learning Objectives
- Distinguish real-time voice interaction from the broader multimodal AI covered in AI-052.
- Explain speech-to-speech models versus the older cascade of speech-to-text, LLM, and text-to-speech.
- Describe latency, turn-taking, and interruption handling as first-class design problems in voice AI.
- Compare real tools: OpenAI Realtime API, ElevenLabs, Deepgram, and Google's speech APIs.
- Recognize the common mistakes teams make when building real-time voice products.
Why This Matters
AI-052 covers multimodal AI broadly: a model that can accept and produce images, audio, or text. Voice AI is a specific, much harder application of that capability, because a phone call or voice assistant has no tolerance for the multi-second round trips that are perfectly acceptable when someone is reading a chatbot's text response. Humans notice a pause longer than about 300 milliseconds in conversation; anything past roughly a second feels broken. Building a voice product means solving audio understanding and generation and a real-time systems problem at once, which is why it has become its own specialization rather than a footnote under multimodal AI.
Everyday Analogy
Reading a text message and having a phone conversation use the same language skills but feel completely different. You can pause for ten seconds before replying to a text with zero social cost; pause for ten seconds mid-phone-call and the other person asks "are you still there?" Voice AI has to hit the phone-call bar, not the text-message bar, even though under the hood it's still "understand input, generate output" like any multimodal system.
Speech-to-Speech vs. the Cascade Architecture
There are two architectural approaches to voice AI, and the difference explains most of the latency and naturalness gap between products:
- The cascade (older, still common). Audio in, run speech-to-text (transcription), pass the resulting text to an LLM, get a text response, run text-to-speech to synthesize audio out. Each stage is a separate model, each adds latency, and information is lost at each handoff: an LLM working from a transcript never hears tone, hesitation, or emotion in the original audio, and the text-to-speech stage never knows what the LLM was "thinking," only what it decided to say.
- Speech-to-speech (native, newer). A single model processes audio input and produces audio output directly, without transcribing to text as an intermediate step. This preserves paralinguistic information (tone, emphasis, pauses) that the cascade throws away, and it collapses three model calls into one, cutting the latency the cascade architecture accumulates at each handoff. OpenAI's Realtime API and comparable offerings from other labs use this architecture.
The cascade is simpler to build (you can mix and match best-in-class transcription, LLM, and voice-synthesis providers) and remains common in production. Native speech-to-speech is newer, harder to build, but structurally faster and more expressive.
The Real-Time Systems Problems
Beyond raw model quality, voice AI has to solve problems that text-based multimodal AI does not:
- Latency budget. The total round trip, audio capture, network, inference, audio synthesis, playback, needs to land under roughly 500 milliseconds to feel conversational. Every architectural choice (cascade vs. speech-to-speech, streaming vs. batch generation, model size) gets weighed against this budget.
- Turn-taking. In text chat, "your turn" is unambiguous: you send a message, wait for a reply. In voice, the system has to detect when a person has actually finished speaking, not just paused for breath, using voice activity detection and often a semantic signal (does this sound like a complete thought), or it either interrupts too early or leaves an awkward silence.
- Interruption (barge-in) handling. A natural conversation includes people talking over each other. A voice AI that can't be interrupted mid-response, and instead finishes a long answer while the user is trying to redirect it, feels robotic. Handling barge-in means the system must detect new speech input while it is still generating and playing its own output, then gracefully stop and reprocess.
- Streaming generation and playback. Waiting for a full response to generate before starting audio playback adds unacceptable latency; production systems stream generated audio in chunks as it's produced, so playback starts within a few hundred milliseconds even if the full response takes longer.
Real Tools
| Tool | What it's known for |
|---|---|
| OpenAI Realtime API | Native speech-to-speech model accessible over a WebSocket, handling streaming audio in and out, function calling, and interruption within a single session |
| ElevenLabs | Best known for high-quality, low-latency text-to-speech and voice cloning, widely used as the synthesis stage in cascade architectures |
| Deepgram | Speech-to-text specialist focused on low-latency streaming transcription, commonly used as the recognition stage in cascade voice pipelines |
| Google's speech APIs (Speech-to-Text, Text-to-Speech, and Gemini Live) | Cloud speech recognition and synthesis at scale, with Gemini Live offering a native multimodal real-time conversational mode comparable to OpenAI's Realtime API |
Most production voice products today are still cascades built from best-in-class pieces (Deepgram for transcription, an LLM for reasoning, ElevenLabs for synthesis) because it offers more control over each stage; native speech-to-speech APIs are gaining share as they mature.
Real-World Showcase
- OpenAI's Realtime API powers voice features in ChatGPT's Advanced Voice Mode, demonstrating sub-second, interruptible, natural-sounding conversation at consumer scale.
- Call-center automation vendors commonly build on Deepgram (transcription) plus ElevenLabs (synthesis) cascades specifically because it lets them swap the underlying LLM independently of the audio pipeline.
- Google's Gemini Live API brings native audio-in, audio-out conversational AI to Android and web products, competing directly with OpenAI's Realtime API on the speech-to-speech architecture.
Try It Yourself
- Sketch a latency budget for a voice assistant: allocate your target 500ms round trip across audio capture, network transit, model inference, and audio synthesis, and identify which stage is hardest to hit.
- Compare cascade and speech-to-speech architectures for a customer-service phone bot: which would you pick if you needed to swap in a specialized fraud-detection model mid-call, and why does that favor one architecture over the other?
- Design a barge-in policy in plain English: what triggers the system to stop talking and start listening, and how much of its own in-progress response should it discard versus try to resume?
Common Mistakes
- Building a voice product on a text-chat latency budget, discovering only in user testing that multi-second pauses feel broken in a way they never did in a chat UI.
- Ignoring turn-taking and shipping a system that either cuts users off mid-sentence or leaves long silences waiting for a "complete" utterance that voice activity detection never confidently signals.
- Choosing a cascade architecture purely for ease of integration without budgeting for the latency it accumulates across three separate model calls.
- Treating interruption handling as a nice-to-have instead of a core requirement, leading to a voice agent that talks over users or ignores attempts to redirect it.
- Testing voice quality only with clean, single-speaker audio and never validating performance with background noise, accents, or overlapping speech, all common in real deployments.
Key Takeaways
- Voice AI is multimodal AI (AI-052) constrained by a hard real-time deadline, which introduces problems text-based multimodal systems never face.
- Speech-to-speech models process audio directly and are faster and more expressive than the older cascade of speech-to-text, LLM, and text-to-speech, but the cascade remains common for its flexibility.
- Latency budget, turn-taking, and interruption handling are first-class architectural concerns, not afterthoughts layered onto a text-based design.
- OpenAI's Realtime API and Google's Gemini Live represent native speech-to-speech; Deepgram and ElevenLabs are best-in-class cascade components.
- Most production systems today are still cascades, chosen for per-stage control, even as native speech-to-speech options mature.
Glossary
- Voice AI
- Real-time, streaming AI interaction over spoken audio, requiring latency and turn-taking guarantees text-based multimodal AI does not. (see AI-052)
- Speech-to-Speech
- A native model architecture that processes audio input and produces audio output directly, without a text transcription step.
- Cascade Architecture
- A voice pipeline made of separate speech-to-text, LLM, and text-to-speech stages chained together.
- Turn-Taking
- Detecting when a speaker has finished so a voice AI system can respond without interrupting or leaving an awkward silence.
- Barge-In
- A user interrupting a voice AI's in-progress spoken response, requiring the system to stop and reprocess gracefully.
- Voice Activity Detection
- A technique for detecting when a person is actively speaking versus silent, used to drive turn-taking decisions.
- Latency Budget
- The maximum acceptable round-trip time, roughly 500 milliseconds for conversational voice AI, allocated across capture, network, inference, and synthesis.
- Streaming Generation
- Producing and playing audio output in chunks as it's generated, rather than waiting for a full response before playback starts.
- Paralinguistic Information
- Tone, emphasis, and emotional cues carried in speech that a text transcript discards.
- Realtime API
- OpenAI's WebSocket-based API for native speech-to-speech interaction, supporting streaming audio and interruption within a session.
References
Diagram
Knowledge Check
8 questions