﻿# Moshi full-duplex dialogue: model streams do not remove microphone echo handling

Distinguish Moshi parallel user-and-model audio streams from client echo cancellation, buffering, and playback behavior when evaluating real-time spoken dialogue.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-moshi-duplex-audio-client-echo-boundary/
Language: en

## Explain the model-level distinction

The [Moshi paper](https://arxiv.org/abs/2410.00037) models the user's speech and generated speech in parallel streams rather than relying solely on a sequential transcript-and-answer pipeline. This supports a different representation of overlapping conversation. It does not make the physical audio path disappear. Sound played through a loudspeaker can still enter the microphone, and the application must distinguish that acoustic feedback from genuine user speech before making claims about dialogue behavior.

## Read the client qualifications

The [official repository](https://github.com/kyutai-labs/moshi) distinguishes its browser client from bare command-line clients, noting differences in echo cancellation and compensation for growing lag. These are material interface choices, not incidental presentation details. A comparison that switches clients while holding model weights constant can still change the audio received by the model and the perceived responsiveness. Record the capture and playback setup alongside the selected model artifact.

## Inspect the server's audio boundary

The [reference server](https://raw.githubusercontent.com/kyutai-labs/moshi/main/moshi/moshi/server.py) receives encoded audio, accumulates decoded samples into model-sized frames, invokes codec and language-model steps, and sends generated audio back. Transport messages and model frames are therefore different units. A network packet is not automatically a complete model update, and fast computation on one frame does not by itself measure microphone-to-speaker latency across buffering, transport, and playback.

## Diagnose a self-conversation loop

Consider testing through open laptop speakers in a reflective room. If the system responds to its own output, compare a headset setup and the intended echo-cancellation client before changing language-model sampling. Retain the same dialogue scenario and record whether generated audio leaks into captured input. This test isolates an acoustic path problem from ordinary conversational interruption behavior; it does not imply that suppressing all overlap is desirable in a full-duplex dialogue design.

## Measure the complete interactive route

Keep model revision, codec, client, audio device, frame preparation, network path, and playback buffering in the evaluation record. Guides on [latency and throughput](/journal/throughput-latency-tradeoff/) and [inference evaluation](/journal/inference-benchmark-method/) supply context. Separate compute timing from end-to-end heard response timing. A useful acceptance case exercises both genuine overlap and playback feedback, showing that the infrastructure preserves the model's conversational input rather than merely demonstrating a low frame-processing duration on the GPU.
