Overview
Moshi is an open-source speech-text foundation model from Kyutai for real-time spoken dialogue. It is full-duplex, meaning it can listen and speak at the same time instead of waiting for you to finish a sentence. Moshi models two audio streams at once (its own voice and the user's) and also predicts the text of its own speech, an "inner monologue" that improves the quality of what it says.
It is aimed at researchers and developers who want to build or study low-latency voice assistants and conversational agents. Under the hood it pairs a 7B-parameter temporal transformer with a smaller depth transformer, and uses Mimi, a streaming neural audio codec that runs at a 12.5 Hz frame rate. The reported theoretical latency is around 160ms, with practical latency as low as 200ms on an L4 GPU.
In the speech and audio space, Moshi sits alongside text-to-speech and speech-to-text tools but goes further by handling a live two-way conversation in a single model. The repo ships three inference stacks: PyTorch for research, MLX for on-device use on Mac and iPhone, and Rust for production deployments.
What it does
- Full-duplex dialogue: listens and speaks at the same time for natural turn-taking
- Mimi streaming codec compresses 24 kHz audio to a 12.5 Hz, 1.1 kbps representation with 80ms latency
- Inner-monologue text prediction alongside audio for higher-quality generation
- Three inference backends in one repo: PyTorch, MLX (Mac/iPhone), and Rust (production)
- Pretrained voices released on Hugging Face: Moshiko (male) and Moshika (female)
- Low practical latency, as low as 200ms on an L4 GPU
Getting started
The PyTorch backend is the simplest way to try Moshi locally. You need at least Python 3.10 (3.12 recommended) and a suitable GPU; model weights download automatically from Hugging Face on first run.
Install the PyTorch package
Install Moshi from PyPI. For on-device Mac/iPhone inference, install moshi_mlx instead.
pip install -U moshiStart the local server
Launch the web server, then open it at localhost:8998 in your browser. Pass --hf-repo to pick a specific model.
python -m moshi.server --hf-repo kyutai/moshika-pytorch-bf16Connect with the command-line client
If you prefer the terminal client over the web UI, point it at the server URL. Note the CLI client does no echo cancellation, so the web UI usually sounds better.
python -m moshi.clientRun on Mac with MLX
On Apple Silicon, use the MLX backend for the local web interface; -q 4 enables 4-bit quantization for lighter on-device runs.
pip install -U moshi_mlx
python -m moshi_mlx.local_webCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Building a real-time, full-duplex voice assistant that responds without waiting for a full pause
- Researching streaming speech-text models, audio codecs, and conversational latency
- Running an on-device voice agent on a Mac or iPhone via the MLX backend
- Deploying a production voice service using the Rust backend
How Moshi compares
Moshi alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Whisper | ★ 105k | OpenAI's speech recognition model that transcribes and translates audio across many languages. |
| GPT-SoVITS | ★ 59.8k | An open-source WebUI that clones a voice from a short audio sample and turns text into speech, with zero-shot and few-shot fine-tuning. |
| VibeVoice | ★ 50.1k | Microsoft's text-to-speech model for generating long, expressive multi-speaker audio like podcasts. |
| Coqui TTS | ★ 45.8k | A library of text-to-speech models including the multilingual XTTS voice-cloning model. |
| ChatTTS | ★ 39.6k | ChatTTS is an open-source text-to-speech model tuned for dialogue, with multi-speaker support and fine-grained control over laughter, pauses, and prosody. |
| OpenVoice | ★ 36.9k | OpenVoice clones a voice from a short reference clip and speaks in multiple languages, with control over emotion, accent, rhythm, and intonation. |
| MockingBird | ★ 36.9k | An open-source PyTorch toolbox that clones a voice from a short sample and generates Mandarin Chinese speech, with a web app, desktop toolbox, and command line. |
| Moshi | ★ 10.6k | Full-duplex speech-text model for real-time spoken dialogue |