Full-Duplex Voice Interaction Architecture: From Half-Duplex Turn-Taking to Real-Time Conversation

    This article breaks down the architecture behind full-duplex voice interaction, where input and output stay active at the same time. It explains the decoupling of the voice interaction layer from the inference layer, how frame-level decisions handle listening, speaking, silence, and barge-in, and the engineering details that shape perceived quality: echo cancellation, interruption confidence, and streaming synthesis. It also covers evaluation methods, cloud deployment considerations, cost optimization, and common pitfalls to avoid.

    1. From Half-Duplex to Full-Duplex: A Shift in Real-Time Voice Interaction

    Most traditional voice assistants use a half-duplex interaction model: the system first receives the user’s complete audio, detects silence to trigger recognition and generation, and then plays the synthesized speech all at once. This “press and release” style of taking turns creates two inherent problems. First, there is a perceptible gap when turns switch. Second, users cannot interject while the system is speaking and have to wait.

    The core change in a full-duplex architecture is that the input and output paths remain active simultaneously. The system continuously captures user audio while pushing synthesized speech to the speaker, and at every decision point it determines the next action: keep listening, start speaking, stay silent, or stop the current playback. The industry usually summarizes this capability as “interruptible real-time conversation.”

    It is worth emphasizing that full-duplex does not mean “eliminating turns.” It simply changes turn boundaries from fixed silence detection into high-frequency, continuous probabilistic decisions, making the interaction rhythm closer to a real human conversation.

    2. Architectural Layers: Decoupling the Voice Interaction Layer from the Inference Layer

    The key design that supports this experience is splitting the system into two layers with different responsibilities.

    • Voice interaction layer (front end): responsible for audio capture, echo cancellation, voice activity detection, prosody modeling that is independent of semantics, speech synthesis, and playback. It is extremely sensitive to latency and typically requires end-to-end response times in the hundreds of milliseconds, so model size is constrained and the inference path is very short.
    • Inference layer (back end): responsible for complex semantic understanding, multi-step reasoning, tool invocation, and information retrieval. It tolerates higher latency but demands a higher capability ceiling.

    The two layers are connected through asynchronous messaging. The front end maintains the “breathing” quality of the conversation. Once it recognizes a request that needs external information or deeper reasoning, it hands the task to the back end while using a short filler phrase or a thinking pause to keep the conversation from breaking. After the back end returns a result, the front end picks up the expression in a natural tone.

    The layered scheduling logic can be abstracted schematically as:

    1. # Pseudocode: illustrates layered scheduling and the decision loop only; not any specific product API
    2. while session.active:
    3. frame = audio_in.read(20ms) # Keep capturing; do not stop during playback
    4. state = vad_and_kes(frame) # Voice activity + residual detection after echo cancellation
    5. if state.speaking and state.barge_in_confident:
    6. player.stop() # User interjects; yield the channel immediately
    7. decision = "listen"
    8. else:
    9. decision = policy.step(context) # High-frequency decision: listen / speak / pause / yield
    10. if decision == "dispatch":
    11. task_id = async_queue.submit(context, need_tools=detect_tools(context))
    12. player.say(filler_phrase()) # Cover back-end latency with a filler phrase
    13. if (result := async_queue.poll(task_id)) is not None:
    14. stream_to_tts(result) # Streaming synthesis: generate and play at the same time

    What truly determines the upper limit of the experience is not the number of model parameters but three engineering details: whether echo cancellation is clean enough, whether barge-in detection is decisive, and whether the handoff between streaming synthesis and generation is smooth.

    3. High-Frequency Conversational Decisions: What Multiple Judgments per Second Mean

    “Multiple judgments per second” is essentially a policy loop running at the audio-frame level. At 20 milliseconds per frame, that means 50 decision points per second. Each decision point has to combine multiple signals:

    1. Acoustic signals: energy, fundamental frequency, and signal-to-noise ratio, used to distinguish human voice from noise;
    2. Echo residue: the degree to which speaker output leaks into the microphone, preventing the system from “interrupting itself”;
    3. Semantic signals: whether the user has expressed a complete intent, avoiding misclassifying a mid-sentence pause as the end of a turn;
    4. Conversational state: whether playback is currently in progress, whether a task has already been handed to the back end, and whether fillers are exhausted.

    In engineering practice, a “dual threshold plus hysteresis” strategy is usually adopted to suppress jitter: barge-in is triggered only when interruption confidence stays above the high threshold for several consecutive frames, while resuming playback requires confidence to stay below the low threshold for several consecutive frames. This hysteresis band significantly reduces the repeated oscillation of “grabbing the floor and backing off.”

    A fallback timeout must also be set: if the back-end task does not return within the expected time, the front end should proactively degrade to “I’ll answer with the information I already have” rather than staying silent indefinitely. Silence beyond one or two seconds makes users subjectively judge the system as “stuck.”

    4. Evaluating Effectiveness: How to Measure Conversation Quality Scientifically

    Average response latency alone is not enough to explain whether the experience is good. The industry tends to combine pairwise subjective evaluation with objective metrics:

    • Overall preference: under the same prompt, choose between two conversations, one from the new version and one from the old version;
    • Turn handoff: whether switches overlap and whether long gaps appear;
    • Fluency: whether filler usage sounds natural and whether there are repeated verbal tics;
    • Barge-in success rate and false interruption rate: a pair of mutually constraining metrics that need to be optimized jointly;
    • Task completion rate: whether requests involving retrieval or reasoning are actually resolved.

    The evaluation set should cover long conversations of 5 to 10 minutes, because short conversations cannot expose rhythm drift or filler exhaustion. It is also advisable to add stress scenarios such as noisy environments, multiple people talking in the background, and Bluetooth headset echo.

    5. Deploying in the Cloud: Combining General Capabilities and Cost Considerations

    To implement similar capabilities in your own business, you can assemble general-purpose capabilities from Baidu AI Cloud:

    • A container platform hosts the stateless front-end session service, with elastic scaling to handle traffic peaks;
    • A message queue carries asynchronous tasks from the front end to the back end, providing peak shaving and decoupling;
    • Object storage keeps audio clips and evaluation samples;
    • Log services and a monitoring and alerting system track interruption rate, first-packet latency, and the ratio of timeout degradations;
    • Load testing and canary release mechanisms support gradual rollout.

    There are three key points for cost optimization. First, streaming processing, which avoids transferring large blocks of full audio and full text. Second, front-loaded VAD filtering, so silent segments do not enter recognition. Third, tiered model routing, where simple intents take a lightweight path and only complex requests are escalated to a stronger reasoning model.

    6. Common Pitfalls and How to Avoid Them

    • Pitfall 1: treating full-duplex as “no VAD needed.” In fact, VAD remains core; only the decision frequency is higher.
    • Pitfall 2: pursuing extremely low latency at the expense of accuracy. It is better to tune latency and false interruption rate jointly and set an acceptable range.
    • Pitfall 3: neglecting echo cancellation. In open speakerphone scenarios, substandard echo handling will completely break the interruption logic.
    • Pitfall 4: back-end tasks without timeouts or degradation. Deterministic fallback phrasing and retry strategies must be designed.
    • Pitfall 5: looking only at average metrics. Tail experience is often determined by P95 and P99 latency and extreme noise scenarios.

    In summary, the competitiveness of full-duplex real-time voice comes from the coordination of “layered decoupling + high-frequency decisions + streaming handoff,” not from stacking single-point model capabilities. Only by making these three solid and continuously calibrating with pairwise evaluation and online canary releases can you build a voice interaction system that truly approaches the rhythm of human conversation.