modal-labs/quillman
Real-time speech-to-speech chat with Moshi and bidirectional WebSockets
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
QuiLLMan separates static frontend delivery from stateful speech inference. src/app.py uses FastAPI to serve the React frontend in src/frontend/. The browser connects to the FastAPI WebSocket exposed by src/moshi.py, where a Modal class loads the models and maintains streaming state. The frontend entrypoint imports the inference module, so starting the full app brings up both services.
Mimi handles streaming audio encoding and decoding on the model side, while Moshi's speech-text model determines when and how to respond. Opus serves a different purpose: compressing audio for network transport over the bidirectional WebSocket. That WebSocket is the practical integration boundary. There is no documented plugin system for swapping model providers.
Key Capabilities & Differentiators
The app supports continuous speech-to-speech interaction: it can receive new microphone audio while sending generated audio back over the same connection. It does not require a completed transcript as the handoff between a separate recognizer and synthesizer. The concrete stack is Kyutai’s Mimi codec and Moshi, with moshiko-pytorch-bf16 as the linked speech-text checkpoint. Opus is the network audio format.
The browser demo offers end-to-end evaluation, while tests/moshi_client.py lets developers exercise the inference endpoint directly with a microphone and speakers. These are useful paths for testing conversation flow and audio handling, but there are no verified latency benchmarks, concurrency limits, or compatibility matrices for additional checkpoints or providers. Measure response timing and audio continuity over the networks and devices you intend to support.
Trade-offs & Limitations
Compared with a modular ASR → LLM → TTS stack, QuiLLMan avoids explicit handoffs between separately operated services and makes continuous audio the primary interface. That is a useful starting point for natural voice interaction, but the application offers no documented swap points for speech recognition, reasoning, or synthesis. A modular pipeline is a better fit when you need editable transcripts in the critical path or want to replace and evaluate each stage separately.
Modal's scale-to-zero behavior reduces the need to keep idle inference workers running, but the first connection after idle may encounter model startup. Opus lowers the amount of audio sent over the network without eliminating the effects of network conditions or inference load. Before production use, validate session isolation, overload handling, and reconnect behavior rather than assuming those guarantees. The application is MIT-licensed; check model-weight terms separately before commercial use.
Hardware & Deployment Guide
The supported path is a managed Modal deployment. Install modal in a Python virtual environment with pip install modal, configure an account with modal setup, and create a token with modal token new. Run modal deploy src.app from the repository root to deploy both the frontend server and inference WebSocket. For development, modal serve src.app starts both services; modal serve -m src.moshi starts inference alone. Both development modes apply file changes while running.
For direct audio testing, install requirements/requirements-dev.txt and run python tests/moshi_client.py with a microphone and speakers available. Clear the browser cache if frontend edits do not appear. No verified GPU or VRAM target, ready-to-run offline deployment, or published release is identified. Pin a tested commit for repeatable rollout and validate peak memory, cold-start time, and steady-state streaming under the intended session load.
src/app.py serves the React frontend, while src/moshi.py exposes the inference WebSocket.moshiko-pytorch-bf16 checkpoint drives responses.tests/moshi_client.py exercises the inference WebSocket without the browser UI.modal serve -m src.moshi starts the inference service alone; modal serve src.app starts both services.Prototyping continuous speech-to-speech interaction on Modal with a browser UI and a directly testable inference WebSocket.
You need an offline deployment path out of the box, independently replaceable ASR and TTS engines, or established latency and concurrency guarantees.
Quick Start & Installation
python -m venv venv source venv/bin/activate pip install -r requirements/requirements-dev.txt
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| quillman ★ | 1.2k | — | Python | MIT | Real-time speech-to-speech chat with Moshi and bidirectional WebSockets |
| speech-to-speech | 13.9k | +137 | Python | Apache-2.0 | A modular speech cascade for self-hosted voice agents over OpenAI Realtime |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
| WhisperLiveKit | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/modal-labs/quillman.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about quillman
Can I integrate the inference backend without the browser UI?
tests/moshi_client.py. It connects directly to the inference WebSocket without the React frontend. Use it to check the message framing and Opus handling before writing a client; bidirectional WebSocket support alone does not make a client compatible.What GPU and VRAM should I budget for?
Can I use it commercially or run it on infrastructure I control?
When should I use this instead of an ASR → LLM → TTS pipeline?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy