Full-Duplex Real-Time Voice Interaction: Architecture and Engineering Explained
This article breaks down full-duplex real-time voice interaction, a technology that lets AI systems listen and speak simultaneously instead of taking turns. It traces the evolution from cascaded ASR-LLM-TTS pipelines to end-to-end audio models, then examines the core engineering modules of a full-duplex architecture: streaming codecs and chunking, interruption and endpoint detection, a decision scheduler, delegation between foreground dialogue and background inference, and tiered safety responses. It also outlines a layered deployment architecture, key evaluation metrics, and common misconceptions, helping technical teams understand how to deliver natural, low-latency voice experiences.
1. Why Real-Time Voice Is Becoming Interaction Infrastructure
Voice is shifting from an add-on feature to a primary entry point for human-computer interaction. The reason is straightforward: text input forces users to switch their attention, while voice allows parallel activity during mobile use, driving, or household tasks. As voice takes on user growth, device deployment, and monetization goals, the system requirement changes from “can understand speech” to “sounds like a real person in conversation.”
Real-time voice expectations across the industry have been pushed higher repeatedly over the past two years. Voice assistants from a major cloud vendor and a content platform have made “low latency and interruptible” a default mental baseline for users. The pressure on engineering teams is direct: any 300-millisecond-level jitter in the voice pipeline is perceived by users as a “robotic feel.”
2. The Evolution of Three Generations of Technical Approaches
Generation 1: Cascaded Pipeline (ASR → LLM → TTS)
Early solutions split the voice pipeline into three stages: speech recognition converts audio into text, a language model reasons over the text, and speech synthesis reads the text back out. Architecturally, the modules are clear and independently replaceable, but there are two structural flaws.
The first is cumulative latency. Three serial stages mean each stage must wait for the previous one to finish its full output. End-to-end first-token latency is the sum of all three stages, plus network round trips and buffering. The second is information loss. Converting speech to text is lossy compression: intonation, emphasis, emotion, laughter, background noise, and overlapping speakers are all discarded during transcription. If the model cannot see that “the user is anxious while saying this,” it naturally cannot respond with a reassuring tone.
Audio stream → [ASR full decoding] → Text → [LLM full generation] → Text → [TTS synthesis] → Audio stream↑ wait for end of sentence ↑ wait for complete answer ↑ wait for complete text
Generation 2: End-to-End Unified Modeling
The second generation uses a single unified model that takes audio directly and produces audio directly, removing the intermediate text representation. First-token latency is significantly compressed, and laughter, tone, and emotional expression become possible. However, it retains the turn-taking constraint: the model must wait for the user to finish before responding, and only one party holds the “speaking floor” at a time. This creates two experience problems: a pause while the user thinks can be misjudged as the end of their turn, and a user who wants to interject can only wait. The interaction rhythm is forcibly cut into discrete segments.
Generation 3: Full-Duplex Real-Time Interaction
The core change in full-duplex is removing turn-taking rotation. The model continuously processes input and output in sync, with the ability to listen and speak at the same time. It can make multiple interaction decisions per second: keep listening, start speaking, pause, yield, interrupt itself, or call an external tool. Interaction changes from a “sequence of turns” to a “continuous control flow.”
3. Key Engineering Modules of a Full-Duplex Architecture
1. Streaming Codec and Chunking Strategy
Audio must be fed into the model continuously in small chunks (typically tens of milliseconds) rather than waiting for a full sentence. Chunks that are too large make responses sluggish; chunks that are too small increase compute and transmission overhead. A tradeoff among latency, throughput, and stability is needed, combined with adaptive buffering to absorb network jitter.
2. Interruption and Endpoint Detection
Three types of silence must be distinguished: a thinking pause where the semantics are incomplete, a true end of speech, and environmental noise. In practice, this usually combines energy thresholds, semantic completeness判断, and the user’s historical habits to form a configurable “interruption sensitivity,” and it must support yielding the channel immediately when the model itself is speaking.
3. Decision Scheduler
Model “whether to speak” as a high-frequency policy decision. Inputs include current audio features, dialogue state, and whether the task is ready. Example logic:
def tick(state, audio_chunk, task_status):if state.is_speaking and user_voice_detected(audio_chunk):return Action.YIELD # User interrupted; stop output immediatelyif not state.is_speaking and semantic_complete(audio_chunk):if task_status.ready:return Action.SPEAKreturn Action.LISTEN # Wait for the background task; stay silent but keep the session openreturn Action.CONTINUE_LISTEN
4. Delegation Between Foreground Dialogue and Background Inference
Real-time responsiveness and inference depth are naturally in conflict. A practical approach is layering: the foreground model only maintains conversational fluency, tone, and short responses. When a task requires web retrieval, long-chain reasoning, or tool calls, the task is delegated to a stronger background model for asynchronous execution, and once the result is ready, the foreground expresses it in natural language. The user perceives “the other party is thinking,” not “it’s stuck.”
5. Tiered Safety Responses
Voice scenarios lack the traceability of text, so gradient measures are needed by risk level: for low risk, correct with phrasing or change the topic; for medium risk, refuse and offer an alternative; for high risk, terminate the session directly. Tiered decisions should use both audio features and semantic content, and should retain an auditable logging pipeline (desensitized storage, metrics reporting, and alerting).
4. Deployment Architecture Recommendations
To build similar capabilities in your own product, you can reference the following layering and use common cloud components:
- Access layer: endpoint devices capture audio, a persistent connection maintains a bidirectional channel, and bitrate and chunk size switch under weak network conditions.
- Real-time layer: the full-duplex interaction model plus the decision scheduler handle low-latency dialogue and interruption.
- Async layer: a task queue handles retrieval and complex reasoning, a message queue smooths peaks and retries, and results are fed back to the foreground.
- Support layer: object storage holds desensitized audio samples, and logging, monitoring, and alerting track first-token latency, interruption success rate, and session termination rate.
Recommended evaluation metrics should cover at least: first-response latency, interruption response latency, false interruption rate, task delegation success rate, and end-to-end session completion rate. These metrics reflect the real experience better than “average latency.”
5. Common Misconceptions
The first is equating low latency with full-duplex. Streaming and model compression alone still leave the turn-taking constraint in place, so users cannot interject naturally. The second is ignoring the cost of lossy transcription and forcibly adding a text intermediate layer back into scenarios that need emotion and tone. The third is a one-size-fits-all safety policy that frequently interrupts normal conversation and reduces usability instead. The value of full-duplex real-time voice lies in returning control of the “communication rhythm” to the user, and the engineering focus is precisely on keeping that freedom controllable across latency, cost, and risk.
