# Moshi

> Full-duplex speech-text model for real-time spoken dialogue

- Category: Multimodal Generation / Audio, Music & Voice
- Language: Python
- Licence: MIT
- Repository: https://github.com/kyutai-labs/moshi
- Website: https://kyutai.org
- Canonical page: https://ai-tldr.dev/tools/moshi/

## In short

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. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in Python and licensed MIT.

## 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.

1. Install the PyTorch package

   Install Moshi from PyPI. For on-device Mac/iPhone inference, install moshi_mlx instead.

```bash
pip install -U moshi
```

2. Start the local server

   Launch the web server, then open it at localhost:8998 in your browser. Pass --hf-repo to pick a specific model.

```bash
python -m moshi.server --hf-repo kyutai/moshika-pytorch-bf16
```

3. Connect 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.

```bash
python -m moshi.client
```

4. Run 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.

```bash
pip install -U moshi_mlx
python -m moshi_mlx.local_web
```

## 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
