ChatTTS Conversational Speech
Generate expressive, multispeaker Chinese and English speech for everyday dialogue.
- Source repo
- 2noise/ChatTTS
- Stars
- ★ 40k
- Last updated
- 7mo ago v0.2.5
- FARS reviewed
- Nov 08, 2026
- License
- AGPL-3.0
- Primary language
- Python
- FA score
- 47/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Speech researchers evaluating Chinese and English conversational TTS or investigating autoregressive generation, audio tokenization, and prosody.
- Not a fit if
- Teams needing commercial or closed-source use; the model is research-only
- Users without a GPU: a 30-second clip needs at least 4 GB of VRAM
- Production work needing high fidelity or stable output; English is experimental
- Website
- 2noise.com ↗ set on GitHub
- Maintenance
- No commits for 6+ monthslast commit 2026-04-10latest release v0.2.5 (2026-04-10)+3.1 ★/day over 7 days
- Source review
- 47/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
ChatTTS is a generative text-to-speech model built for dialogue, including spoken output for LLM assistants, rather than a complete autonomous agent. The repository supplies algorithm infrastructure, pretrained-model access, a Python package, a command-line example, and a local WebUI that turn text into WAV or MP3 audio. It supports Chinese and English, sampled speaker identities, and limited control over conversational features such as laughter, pauses, and oral delivery. The public release is a 40,000-hour pretrained model without SFT, while the main model is described as having been trained on more than 100,000 hours of Chinese and English audio. The code uses AGPLv3+, but the model uses CC BY-NC 4.0 and is restricted to educational and research use, making it unsuitable for direct commercial adoption.
A program creates ChatTTS.Chat(), loads the model with chat.load(compile=False), and passes one or more strings to chat.infer(texts), which returns audio arrays. Those arrays can be written as 24 kHz WAV files with torchaudio.save; the command-line example instead saves results as ./output_audio_n.mp3. chat.sample_random_speaker() produces a speaker embedding, while ChatTTS.Chat.InferCodeParams accepts spk_emb, temperature, top_P, and top_K. ChatTTS.Chat.RefineTextParams applies sentence-level prompts such as [oral_2][laugh_0][break_6]; with text refinement skipped, [laugh], [uv_break], and [lbreak] provide word-level controls. The repository also launches a local interface through python examples/web/webui.py and lists streaming audio generation and zero-shot inference code as completed features.
- Speech researchers evaluating Chinese and English conversational TTS or investigating autoregressive generation, audio tokenization, and prosody.
- LLM-assistant prototype teams that need to render responses with conversational pauses, laughter, and an oral delivery style.
- Interactive-demo developers using sampled speaker embeddings to prototype dialogue involving multiple character voices.
- Python developers processing batches of text and saving the returned arrays as 24 kHz WAV files.
- Research teams comparing repeated samples through a local WebUI, command line, or Python API to select an acceptable result.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -r requirements.txtpip install ChatTTSpip install git+https://github.com/2noise/ChatTTSpip install -e
- Install notes cover
- Linux
How do you install or deploy this agent?
Clone the repository and install its requirements:
git clone https://github.com/2noise/ChatTTS
cd ChatTTS
conda create -n chattts python=3.11
conda activate chattts
pip install -r requirements.txtAlternatively, install the stable package:
pip install ChatTTSInstall the latest GitHub version with:
pip install git+https://github.com/2noise/ChatTTSFor editable local development:
pip install -e .The first run must load the model; no API credential is documented. The FAQ states that generating a 30-second clip requires at least 4 GB of GPU memory. Linux users may optionally install safetensors vllm==0.2.7 torchaudio. The documented TransformerEngine integration cannot currently run properly, and FlashAttention-2 is also discouraged because it slows generation.
How do you use this agent?
From the project root, launch the WebUI:
python examples/web/webui.pyGenerate MP3 files from the command line:
python examples/cmd/run.py "Your text 1." "Your text 2."Minimal Python invocation:
import ChatTTS
import torch
import torchaudio
chat = ChatTTS.Chat()
chat.load(compile=False)
wavs = chat.infer(["Hello from ChatTTS.", "你好,这是 ChatTTS。"] )
torchaudio.save("output.wav", torch.from_numpy(wavs[0]).unsqueeze(0), 24000)Some torchaudio versions require torch.from_numpy(wavs[0]) without adding a dimension. For prosody control, create ChatTTS.Chat.RefineTextParams(prompt='[oral_2][laugh_0][break_6]') and pass it to chat.infer.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- It is optimized for dialogue and supports Chinese, English, and multiple speakers instead of targeting only single-voice narration.
- Sentence- and word-level controls can explicitly introduce laughter, pauses, and oral-style prompting.
- Python, command-line, and local WebUI interfaces cover programmatic batches, terminal workflows, and interactive experiments.
- Random speaker embeddings, streaming audio generation, and zero-shot inference code provide useful foundations for research and prototyping.
- The released model is under CC BY-NC 4.0 and explicitly limited to educational and research use, blocking straightforward commercial deployment.
- Autoregressive generation can produce unintended multiple speakers or poor audio quality; the documented workaround is to sample repeatedly.
- Current word-level controls are limited to
[laugh],[uv_break], and[lbreak]; multi-emotion control remains unfinished. - English is described as experimental, and the source provides no production-stability guarantee.
- A 30-second clip requires at least 4 GB of GPU memory; even the documented RTX 4090 result has an RTF of about 0.3.
- The 40,000-hour model was trained with some high-frequency noise and its audio quality was deliberately compressed with MP3 to deter misuse, limiting high-fidelity applications.
How does this agent compare with similar options?
The repository cites Bark, XTTSv2, and VALL-E as autoregressive TTS references and notes that systems in this class commonly face hard-to-avoid speaker-mixing and quality instability. Fish Speech is credited as a reference for GVQ audio tokenization in LLM modeling, while ChatTTS uses Vocos as a pretrained vocoder. No consistent named benchmark is provided, so the source does not support a broad claim that ChatTTS is faster, more stable, or higher quality than each of those systems.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| ChatTTS Conversational Speech This agent | 47 · Major gaps | Web appFree | ★ 40k | 7mo ago | Python | — |
| AgileRL | 62 · Some gaps | Library / SDKFreemium | ★ 974 | 2d ago | Python | — |
| AutoResearch | 48 · Major gaps | CLIFree + model costs | ★ 101k | 8mo ago | Python | Codex · Claude Code |
| Deep Researcher Agent | 47 · Major gaps | Agent plugin / skillFree + model costs | ★ 1.1k | 6mo ago | Python | Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README states academic and research use, AGPLv3+ for code, CC BY-NC 4.0 for the model, and describes training noise and compression as misuse limits, supporting attribution and some use transparency; source attribution scores 2. Install and usage examples do not explain the full flow or retention of text, audio, or downloaded model data, nor sensitive-data handling. The materials show no per-action confirmation, access controls, or rollback. The dependency list and workflow show external downloads and automated commits without security-validation details, so the other trust criteria score only 0–1.
The README provides installation paths, usage examples, hardware guidance, and candidly notes instability and audio-quality issues; its claims are broadly consistent, so self-consistency scores 2. Most dependencies are not pinned, and the packet shows no cache, mirror, or fallback strategy, giving dependency availability 1. The audio-save example uses a broad bare except and offers little diagnostic or recovery guidance, so failure messages score 1.
The README positions the product as text-to-speech for dialogue, identifies English and Chinese support, and describes multi-speaker and prosody controls. It also names current control tokens and says emotion control is future work, providing useful boundaries for a score of 2. Trigger conditions and supported input scope are not precise, scoring 1. Linux-specific optional dependencies, conda and direct installation paths, and GPU memory guidance support environment fit at 2.
The README is organized into introduction, installation, usage, FAQ, and licensing. Setup steps and examples are fairly concrete, and the FAQ names memory, speed, and quality constraints, but operational troubleshooting remains limited; these criteria score 2. The license file and README clearly distinguish the code and model licenses, scoring 3. The supplied materials show no change history, make no interface-stability commitment, and list contact and community channels without clearly assigning maintenance responsibility or an update path; those criteria score 1 each.
The project can produce savable speech and provides CLI, WebUI, and Python examples, making its output usable for its stated purpose, score 2. Dialogue speech with speaker and prosody controls offers clear value, score 2. Cost guidance is limited to a minimum VRAM estimate for a specified clip length and a speed estimate for one GPU, so cost-benefit scores 1.
README setup commands, API examples, hardware estimates, and limitations are stated concretely and traceably, scoring 2. The code, workflow, and dependency list corroborate only a few operational details; the packet does not independently substantiate model capability or performance claims, so cross-source corroboration scores 1. The README distinguishes supported languages, planned features, research use, and disclaimers, and frames speed as an estimate for a particular device, providing some separation of fact and expectation, score 2.
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- The README limits the model to academic and research use and identifies CC BY-NC 4.0 for model weights; users should check the model and code licenses separately.
- The README estimates at least 4 GB of GPU memory for a 30-second clip and about 7 semantic tokens per second with an RTX 4090 (RTF around 0.3); the packet does not independently verify these estimates.
- The materials list dependencies without fixed versions and show a workflow that downloads an external Debian package and can commit changes automatically; validation and rollback measures are not described in the packet.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Added - Partial dml support (31ed623) by @fumiama Fixed - RuntimeError: narrow(): length must be non-negative (#955) by @fumiama - Add missed dep requests in requirements.txt (cc212db) by @faalkor - Keep tracking with latest transformers (857d3b7) by @fumiamaView on GitHub ↗ -
Release notes excerpt
Added - FastAPI-based OpenAI-compatible Text-to-Speech API and Audio Format Conversion Tools to examples/api (d582fd5) by @yueguobin - Numpy 2+ support (1092c1f) by @BBC-Esq Fixed - Module 'torch.serialization' has no attribute 'FILE_LIKE'' (8c0707b) by @aibaoku --- 新增 * 在 examples/api 中添加了基于 FastAPI、兼容 OpenAI 的文本转语音 API 及音频格式转换工具 (d582fd5) by @yueguobin * 支持 Numpy 2+ (1092c1f) by @BBC-Esq 修复 * 'torch.serialization' 模块中无属性 'FILE_LIKE' 的问题 (8c0707b) by @aibaokuView on GitHub ↗ -
Release notes excerpt
Fixed - Drop deprecated transformers API get_max_length() (a500911) by @fumiama --- 修复 - 停止使用废弃的 transformers API get_max_length() (a500911) by @fumiamaView on GitHub ↗
FAQ
Can I use the released model in a commercial product?
How much GPU memory does inference require?
Does it require ChatGPT or another hosted model API?
Why can output contain mixed speakers or poor audio?
Which emotions and delivery features can I control today?
[laugh], [uv_break], and [lbreak]; broader emotion control is still on the roadmap.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.