# Repository Briefing: MisoLabsAI/MisoTTS
> Source: https://repoforai.com/repo/MisoLabsAI/MisoTTS (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/MisoLabsAI/MisoTTS
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: C (42/100 · Maintenance 12/35 · Adoption 18/25 · Releases 6/20 · License 6/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, Local AI, GPU
- **Momentum**: 3,250 ★ total (+1 24h / +3 7d) · 320 forks
- **When to Use**: Best for: Teams prototyping English conversational voices in Python on their own GPU, with authorized reference audio and at least a 24 GB VRAM budget for half-precision inference. Skip if: You need multilingual output, CPU-first deployment, a ready-made streaming API, or a verified local latency target and commercial license before integration.

## Overview
```text
### Architecture & Core Mechanics
MisoTTS is a local inference package for an approximately 8.2B-parameter residual vector quantization (RVQ) Transformer inspired by Sesame CSM. Its Llama 3.2-style backbone consumes interleaved text and audio-frame embeddings, so prior turns can condition the next utterance. A smaller, 300M-class Transformer autoregressively predicts higher-order codebook entries within each frame. The generated Mimi codes are decoded into a waveform, which is watermarked with SilentCipher by default.

The integration path is in-process Python: `generator.py` exposes `load_miso_8b`, `generate` on the loaded generator, and `Segment` for dialogue history. The package includes `models.py`, `moshi_compat.py`, and `watermarking.py`. It pins PyTorch and torchaudio to 2.4.0, Transformers to 4.49.0, Moshi to 0.2.2, and SilentCipher to a specific Git commit. There is no documented plugin protocol or request-serving layer.

### Key Capabilities & Differentiators
MisoTTS synthesizes English speech from text, either without a recording or with prior audio as a voice prompt. A prompt combines reference audio resampled to `generator.sample_rate`, its transcript, and a speaker ID in a `Segment`; the synthesis call takes another speaker ID and the context list. This lets an application carry a voice into the next dialogue turn without retraining. The example returns audio to Python for saving as a WAV file with torchaudio.

The model has a 128,256-token text vocabulary, a 2,051-entry audio vocabulary, 32 audio codebooks, and a maximum sequence length of 2,048. That is a model sequence limit, not a word count or an audio duration; text and audio history both matter when sizing context. The call also accepts `max_audio_length_ms` as a separate output cap. Neither that cap nor the WAV example establishes streaming support or a local real-time guarantee.

### Trade-offs & Limitations
The alternative to a managed voice API such as ElevenLabs is operational control: local inference lets you decide where dialogue text and reference audio are processed, but you take on GPU provisioning, startup time, and serving capacity. The 110 ms figure refers to hosted production time to first byte on H100-class hardware, not local inference. Measure cold start and synthesis latency separately on the intended hardware; the local example is a file-generation path, not evidence of interactive streaming performance.

English-only generation rules out a multilingual rollout. CPU execution is possible but slow, and the Linux-only `bitsandbytes` dependency does not establish a supported low-VRAM quantized workflow. For commercial adoption, inspect the actual license terms: the manifest references a `LICENSE` file, but the license is unspecified in the supplied metadata. Public weights are not proof of commercial or redistribution permission. Use authorized voice references and protect the deployment’s private watermark key.

### Hardware & Deployment Guide
Use Python 3.10–3.12; the quickstart uses `uv sync --python 3.10` followed by `uv run python run_misotts.py`. An editable pip install is also available. The example loads `MisoLabs/MisoTTS` from Hugging Face and writes `full_conversation.wav`. Budget 30–40 GB of disk for the initial checkpoint, Mimi codec, Llama 3.2 tokenizer, and `sony/silentcipher` artifacts. Later runs reuse cached files; stage all assets and test cold startup without network access before relying on an offline deployment.

GPU inference defaults to bf16. Plan for 24 GB of VRAM for bf16/fp16 or at least 40 GB for fp32, allowing for the codec, watermarker, cache, and activations rather than sizing from weights alone. The root tree provides no container manifest or documented production API entrypoint, so budget for service wrapping and concurrency testing. The Python manifest is versioned `0.1.0`, but there is no listed GitHub release to use as a deployment milestone.
```

## Key Capabilities
```text
- Model: Approximately 8.2B parameters across a Llama 3.2-style backbone, a 300M-class audio decoder, embeddings, and heads
- Codec: Mimi represents each audio frame with 32 codebooks; the smaller decoder predicts higher-order codes autoregressively
- Conditioning: Interleaved text and audio let prior speaker turns guide synthesis; no reference recording is required for basic English TTS
- Integration: `load_miso_8b` and `generate` provide in-process Python inference; `run_misotts.py` writes `full_conversation.wav`
- GPU sizing: CUDA inference defaults to bf16; about 16 GB of half-precision weights fit within a recommended 24 GB VRAM budget
- Artifact handling: The first run needs roughly 30–40 GB of cache space, and output is watermarked by default with SilentCipher
```

## Quick Start / Clone
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
