kyutai-labs/moshi
Moshi is a speech-text foundation model and full-duplex spoken dialogue framework. It uses Mimi, a state-of-the-art streaming neural audio codec.
What it solves
Moshi addresses the challenge of creating real-time, full-duplex spoken dialogue systems. It aims to provide a low-latency experience where the AI and user can speak and listen simultaneously, avoiding the awkward pauses typical of traditional turn-based speech systems.
How it works
Moshi is a speech-text foundation model that predicts two simultaneous audio streams: one for the AI's speech and one for the user's speech. To improve generation quality, it also predicts text tokens representing its own "inner monologue."
The system relies on two primary components:
- Mimi: A streaming neural audio codec that compresses 24 kHz audio into a low-bandwidth representation with very low latency (80ms).
- Transformers: A small Depth Transformer handles inter-codebook dependencies, while a large 7B-parameter Temporal Transformer manages temporal dependencies.
Who it’s for
- Researchers: Those interested in speech-text foundation models and real-time dialogue.
- Developers: People looking to integrate low-latency voice AI into applications, with support for PyTorch (research), MLX (macOS/iOS), and Rust (production).
- End Users: Users who want to experience real-time, natural voice interaction via the provided web UI or CLI.
Highlights
- Full-Duplex Dialogue: Supports simultaneous speaking and listening.
- Ultra-Low Latency: Achieves a theoretical latency of 160ms and practical latency as low as 200ms on L4 GPUs.
- Multi-Backend Support: Available in PyTorch, MLX (for Apple Silicon), and Rust (for production performance).
- Integrated Codec: Includes Mimi, a high-performance streaming neural audio codec.
Related
- Project
- Project
- Project
- Project