Local Full-Duplex Voice Interaction: Principles and Practice
This article explains why traditional voice assistants behave like walkie-talkies and how full-duplex voice interaction solves that limitation. It covers the shift from half-duplex to a parallel pipeline, including acoustic echo cancellation, endpointing with semantic interruption, and preemptive scheduling. It also discusses running the voice layer locally for privacy and lower latency, wake word detection, voice cloning, avatar feedback, agent integration, and a practical checklist of common pitfalls.
1. The Starting Point: Why Voice Assistants Feel Like Walkie-Talkies
Many people have had the same experience: talking to a voice assistant requires holding back. It speaks a sentence, and you have to wait for it to finish. If you try to jump in, it does not hear you, because at that moment it is only talking, not listening. This is not a design oversight. It is a structural limitation of the traditional voice pipeline: push to talk, release to listen, with only one direction allowed at a time. In engineering terms, this is half-duplex.
Real human conversation is nothing like that. We listen and speak at the same time, interrupt, add points, get cut off, and then pick the thread back up. These overlapping moments are precisely the most natural part of a real conversation. Industry observations show that overlapping speech accounts for roughly 10% to 20% of total speaking time in real exchanges. A system that can only take turns discards that information entirely, so users perceive it as slow and unable to keep up. The problem is often not the model’s intelligence, but the fact that half a sentence never reaches the system.
This is why full-duplex voice interaction has become a key direction for improving the experience: both directions stay online at once, so users can jump in mid-sentence and the system can be interrupted at any point while it is speaking.
2. From Half-Duplex to Full-Duplex: The Pipeline Must Be Rebuilt
Half-duplex is like a walkie-talkie; full-duplex is like a phone call. To achieve the latter, the “detect, recognize, decide, synthesize, play back” chain must be reworked from a serial state machine into a parallel pipeline, with three mechanisms added.
- Acoustic echo cancellation (AEC). The sound coming from the speaker is picked up again by the microphone. Without handling, the system mistakes its own playback for user speech. The common approach is to subtract the echo estimated from the playback reference signal from the microphone signal, then suppress the residual echo.
- Endpointing and semantic interruption. Relying on an energy threshold alone is not enough, or noise and breathing will trigger false interruptions. A typical setup combines short-time energy, zero-crossing rate, and a lightweight voice activity detection model, then adds a semantic check to distinguish “the user is agreeing” from “the user is issuing a new command.”
- Preemptive scheduling. Once the user is confirmed to have started speaking, the new input takes priority and the old playback gives way immediately: stop or duck the current synthesized audio and hand control back to the dialogue state machine.
Illustrative pseudocode:
loop:mic, ref = audio.in()echo = aec.estimate(ref)clean = suppress(mic - echo)if vad(clean) and semantic_gate(clean):tts.cancel() # preempt current playbacktext = asr.partial(clean)reply = llm(text, context)tts.speak(reply) # keep listening during playback
The key point is that playback and listening must happen at the same time, the interruption path must be short, and state transitions must be explicit.
3. Privacy and Latency: Keep the Voice Layer on the Device
The second design worth emphasizing is keeping the voice pipeline local. Recognition, synthesis, and wake word detection run on the device by default, so audio never leaves it. This brings two benefits: a clear privacy boundary, since raw voice data does not need to be uploaded, and no network round trip, which makes end-to-end latency more controllable.
The layers need to be separated: the voice pipeline is local, while the dialogue model layer can be configured separately. Developers can supply their own model key or switch to a compatible endpoint. In that case only text is sent, and the voice itself stays local. This layering lets compliance and experience be optimized independently.
Engineering-wise, resource usage and heat also matter. Local inference is best served by quantized models, streaming recognition, chunk-by-chunk synthesis, and keeping wake word detection resident on a low-power thread to avoid excessive load on the whole device.
4. Wake Words, Voice, and Human-Like Feedback
The wake word vocabulary and detection model are usually generated locally, and the default can be any custom word the user chooses. To reduce false wakes, a voiceprint or distance threshold can be added as a second confirmation.
Voice customization typically needs only about six seconds of reference audio, from which a local voice cloning model generates a personal voice, with lip sync aligned to the speech. A desktop avatar can have three states: idle, listening, and speaking, with blinking and breathing changing per state rather than being a static image. Feedback like this may seem minor, but it noticeably strengthens the psychological certainty that “it is listening to me.”
5. Beyond Chat: Voice as the Entry Point to Agents
If a voice assistant is treated only as a search box that talks, its ceiling is very low. A more sensible approach is to connect it to an agent platform that supports installable plugins: voice handles input and feedback, while the agent handles planning and execution, for example opening a browser, taking screenshots, retrieving information, filling out forms, calling internal APIs, and then reporting results by voice.
Orchestration recommendations:
- Intent tiers: split chitchat, queries, and tasks into three paths, with tasks entering multi-step planning.
- Least privilege: authorize local files, network, and device control item by item, with a second confirmation for sensitive actions.
- Observability: log wakes, recognition confidence, interruption counts, and task success rate to make tuning easier.
- Fallbacks: when recognition confidence is low, ask for clarification instead of guessing and executing.
6. Implementation Checklist and Common Pitfalls
- Start with offline replay tests for AEC and VAD, using real recordings that cover noise, music, and multiple speakers.
- Set interruption latency as a target metric and compress time to first audio as much as possible.
- Define data boundaries clearly: what stays local and what text leaves the device, and explain this visibly to users.
- Voice cloning requires the person’s authorization to avoid compliance risk.
- Keep the avatar and sound effects supportive; they should not steal attention.
Full-duplex is not a “longer voice pipeline” but a “two-way channel that is online at the same time.” When echo is cancelled, interruptions are respected, voice stays local, and the agent can get things done, a voice assistant stops being a walkie-talkie and becomes a real conversational partner.
