2noise/ChatTTS
Local autoregressive TTS for expressive Chinese and English dialogue
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
ChatTTS is a local inference library and pretrained checkpoint for autoregressive dialogue TTS, not a complete voice-agent stack. The Python entry point, ChatTTS.Chat, loads the model and accepts a string or a list of strings. infer() can refine the text before synthesis or skip refinement when the caller has inserted prosody markers directly. Speaker embeddings and sampling controls are passed separately from text-refinement settings.
The runtime is built on PyTorch 2.1+ and Transformers 4.41+, with vector_quantize_pytorch, Vocos, and torchaudio among the declared dependencies. The Python example receives waveforms and saves them as 24 kHz WAV. The Gradio UI and CLI are separate examples; the FastAPI example in examples/api provides an OpenAI-compatible TTS interface for clients that need HTTP rather than an in-process Python call.
Key Capabilities & Differentiators
ChatTTS synthesizes Chinese and English and includes a mixed-language example, although English is still marked experimental. A caller can sample and save a speaker embedding for timbre reuse and adjust temperature, top-p, and top-k during inference. Text-refinement prompts steer oral delivery, laughter, and pauses. Direct control at a specific point in the text is narrower: the released model exposes [laugh], [uv_break], and [lbreak], not a general emotion-control interface.
The public Hugging Face checkpoint was pretrained on 40,000 hours of audio and did not receive supervised fine-tuning; it is distinct from the main model trained on more than 100,000 hours of Chinese and English audio. The hardware reference is at least 4 GB of VRAM for a 30-second clip. On an RTX 4090, the reference is about 7 semantic tokens per second and a real-time factor around 0.3. Those figures characterize generation throughput, not time to first audio or concurrent API performance.
Trade-offs & Limitations
Compared with a managed TTS service such as ElevenLabs, ChatTTS keeps synthesis inputs on infrastructure you control and exposes prosody and sampling controls directly to Python. In return, your team owns model installation, GPU sizing, request handling, and output quality checks. Autoregressive generation can produce unwanted speaker changes or poor audio; sampling again may help, but it increases compute use and makes latency less predictable. Test English, mixed-language text, and speaker consistency on representative scripts rather than extrapolating from the throughput reference.
Licensing is a separate adoption gate. The code is AGPLv3+, while the released weights are licensed under CC BY-NC 4.0 for noncommercial use. Self-hosting does not remove the weight restriction, and API compatibility does not confer commercial rights. Teams planning a paid deployment should resolve model permission and code obligations before committing to the integration.
Hardware & Deployment Guide
For Python integration, install ChatTTS from PyPI; to run the repository examples, clone the project and install requirements.txt. The Conda recipe uses Python 3.11. With the model assets available locally, the Python path runs inference without calling a hosted TTS service. From the project root, python examples/web/webui.py starts the WebUI, and python examples/cmd/run.py accepts text arguments and saves MP3 output. Start with the standard PyTorch stack: TransformerEngine is not ready for routine use, and FlashAttention-2 can slow generation in this setup.
Version 0.2.4 added the FastAPI-based OpenAI-compatible TTS example and audio format conversion tools. Version 0.2.5 added partial DirectML support, fixed a negative-length narrow() error, added the missing requests dependency, and updated Transformers compatibility. Treat DirectML as a setup to validate on the target machine, not as equivalent GPU coverage. Before exposing the API example, check client compatibility and budget separately for access control and concurrency testing.
ChatTTS.Chat accepts single or batched text inputs; the Python example writes 24 kHz WAV.[laugh], [uv_break], and [lbreak].Noncommercial research and local LLM voice prototypes that need Chinese dialogue, experimental English, and direct control over laughter and pauses.
You need commercial rights to the released checkpoint, consistently stable voices across takes, or a managed production API without GPU operations.
Quick Start & Installation
pip install --upgrade -r requirements.txt
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ChatTTS ★ | 40.1k | +24 | Python | AGPL-3.0 | Local autoregressive TTS for expressive Chinese and English dialogue |
| voicebox | 61.8k | +437 | Python | MIT | Local-first voice studio with multi-engine speech synthesis, dictation and MCP. |
| fish-speech | 34k | +84 | Python | — | Self-hosted PyTorch speech inference for directed, multi-speaker audio |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/2noise/ChatTTS.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about ChatTTS
How do I connect ChatTTS to an LLM application?
ChatTTS.Chat(), load the model, and call infer() with a string or a list of strings. The Python example saves returned waveforms as 24 kHz WAV. For an HTTP boundary, use the FastAPI OpenAI-compatible TTS example in examples/api and verify that its request fields and audio formats match your client.Is a 4 GB GPU enough for interactive use?
Can I use the released checkpoint in a commercial service if I self-host it?
When would I choose ChatTTS over ElevenLabs?
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