Moshi
Moshi, an open-source interactive voice dialogue foundation model, was released on September 17, 2024, by Kyutai, a French AI research institute. It is designed to precisely simulate real-time human voice interaction. Just as humans detect sounds in the auditory cortex and formulate responses in the frontal lobe almost simultaneously during a conversation, Moshi adopts a Multi-Stream approach that combines listening and speaking independently yet closely, without mediating the input voice with text. Its internal backbone consists of a 7 billion parameter (7B) Helium model.
Moshi, released on September 17, 2024, by Kyutai, a French AI research institute, is an open-source, bidirectional voice dialogue foundation model designed to precisely simulate real-time human voice interaction. Similar to how humans detect sounds in the auditory cortex and formulate responses in the frontal lobe almost simultaneously during a conversation, Moshi adopts a multi-stream approach that combines listening and speaking independently yet closely, without mediating the input voice with text. Its internal backbone features a 7-billion parameter (7B) Helium large language model, which serves as the core inference engine, and is equipped with Mimi, a custom-developed neural audio codec that encodes 24kHz audio into a 12.5Hz ultra-low frequency band for efficient compression and restoration of audio information. Through the organic combination of these two core modules, the input and output are connected as parallel token streams, allowing for the smooth expression of the intricate flow of sounds that occur during a conversation without interruption.
Conventional AI-based voice assistants have primarily adopted a cascade pipeline structure, which sequentially processes voice recognition (ASR), large language models (LLM), and speech synthesis (TTS). This conventional approach has limitations in real-time interaction due to the cumulative data processing delays at each stage, and it has been extremely difficult to smoothly detect and respond to interruptions, such as when a user interrupts or interjects during a conversation. Moshi completely overcomes this serial structure and proposes a complete end-to-end, multi-modal architecture that directly learns and infers audio tokens instead of text, significantly reducing the real-time response latency to approximately 160ms to 200ms. Thanks to this ultra-low latency design, it provides flexibility by allowing appropriate acknowledgments while the user is speaking, or by immediately canceling the previous utterance and switching to a new response if the user modifies the question in the middle.
These innovative features can be effectively utilized to assist with sophisticated work workflows in the fields of biotechnology and healthcare. In sterile laboratory environments where biological hazardous materials are handled, researchers perform complex DNA extraction protocols while holding micropipettes in both hands or wearing goggles. In such situations, they can ask questions to a voice assistant equipped with Moshi and receive immediate real-time voice feedback on reagent concentration calculations or the next experimental procedure. In medical education, Moshi can be applied to virtual patient personas with various symptoms, allowing medical students to repeatedly practice medical interviews and initial screenings in an environment similar to a real clinical setting. By leveraging the strengths of the architecture, which can process variations in voice tremor, speed, and tone, it simulates changes in tone based on the patient's psychological state or pain level, greatly contributing to the improvement of healthcare service quality and communication training.
💻 System Requirements
NVIDIA GPU recommended (24GB +; for real-time inference of PyTorch non-quantized models, 7B). Latency increases significantly when running on CPU alone.
"Total 15GB or more, including model and Mimi codec weight downloads"
⚡ Installation
4-1. Quick Start
Basic package installation via PIPpip install moshi
Run the basic local web server (access http://localhost:8998 via web browser)python -m moshi.server
4-2. Detailed installation
1. Create and activate virtual environmentpython3 -m venv venv source venv/bin/activate
2. Pre-installed PyTorch for the system environment (e.g., for CUDA 12.1)pip install torch --extra-index-url https://download.pytorch.org/whl/cu121
3. Moshi official package installationpip install -U moshi
(Optional) Install the MLX version for macOS Apple Silicon userspip install -U moshi_mlx
4. Specify the development server port and enable the Gradio tunnel (for external access).python -m moshi.server --port 8998 --gradio-tunnel
FAQ
What is Moshi?
Moshi, released on September 17, 2024, by Kyutai, a French AI research institute, is an open-source, bidirectional voice dialogue foundation model designed to precisely simulate real-time human voice interaction. Similar to how humans detect sounds in the auditory cortex and formulate responses in the frontal lobe almost simultaneously during a conversation, Moshi adopts a multi-stream approach that combines listening and speaking independently yet closely, without mediating the input voice with text. Its internal backbone features a 7-billion parameter (7B) Helium large language model, which serves as the core inference engine, and is equipped with Mimi, a custom-developed neural audio codec that encodes 24kHz audio into a 12.5Hz ultra-low frequency band for efficient compression and restoration of audio information. Through the organic combination of these two core modules, the input and output are connected as parallel token streams, allowing for the smooth expression of the intricate flow of sounds that occur during a conversation without interruption. Conventional AI-based voice assistants have primarily adopted a cascade pipeline structure, which sequentially processes voice recognition (ASR), large language models (LLM), and speech synthesis (TTS). This conventional approach has limitations in real-time interaction due to the cumulative data processing delays at each stage, and it has been extremely difficult to smoothly detect and respond to interruptions, such as when a user interrupts or interjects during a conversation. Moshi completely overcomes this serial structure and proposes a complete end-to-end, multi-modal architecture that directly learns and infers audio tokens instead of text, significantly reducing the real-time response latency to approximately 160ms to 200ms. Thanks to this ultra-low latency design, it provides flexibility by allowing appropriate acknowledgments while the user is speaking, or by immediately canceling the previous utterance and switching to a new response if the user modifies the question in the middle. These innovative features can be effectively utilized to assist with sophisticated work workflows in the fields of biotechnology and healthcare. In sterile laboratory environments where biological hazardous materials are handled, researchers perform complex DNA extraction protocols while holding micropipettes in both hands or wearing goggles. In such situations, they can ask questions to a voice assistant equipped with Moshi and receive immediate real-time voice feedback on reagent concentration calculations or the next experimental procedure. In medical education, Moshi can be applied to virtual patient personas with various symptoms, allowing medical students to repeatedly practice medical interviews and initial screenings in an environment similar to a real clinical setting. By leveraging the strengths of the architecture, which can process variations in voice tremor, speed, and tone, it simulates changes in tone based on the patient's psychological state or pain level, greatly contributing to the improvement of healthcare service quality and communication training.
When should I use Moshi?
Moshi, an open-source interactive voice dialogue foundation model, was released on September 17, 2024, by Kyutai, a French AI research institute. It is designed to precisely simulate real-time human voice interaction. Just as humans detect sounds in the auditory cortex and formulate responses in the frontal lobe almost simultaneously during a conversation, Moshi adopts a Multi-Stream approach that combines listening and speaking independently yet closely, without mediating the input voice with text. Its internal backbone consists of a 7 billion parameter (7B) Helium model.
📝 Update Notes
- vrustymimi-0.2.29/14/2026
Moshi의 컨텍스트 크기가 8192로 확장되어, 이제 moshi-mlx에서 약 5분간의 긴 대화를 끊김 없이 이어갈 수 있게 되었어요. 이는 긴 실험 로그나 복잡한 생물학적 메커니즘에 대한 심도 있는 논의를 진행할 때 훨씬 유리합니다. 더 넓은 맥락을 기억할 수 있게 된 만큼, 방대한 연구 데이터를 다루는 과정에서 더욱 정교하고 연속성 있는 분석이 가능해질 거예요.
🧪 Related Code of Life
No related Code of Life posts yet.