ScriptsApr 2, 2026·2 min read
ChatTTS — Expressive Text-to-Speech for Dialogue
Generate natural conversational speech with laughter, pauses, and emotion. Optimized for dialogue scenarios. 39K+ GitHub stars.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
pip install ChatTTS
```
```python
import ChatTTS
import torch
import torchaudio
chat = ChatTTS.Chat()
chat.load(compile=False) # Downloads model on first run
# Generate conversational speech
texts = [
"Hey, have you tried that new AI tool?",
"Oh yeah, it's amazing! [laugh] I couldn't believe how fast it was."
]
wavs = chat.infer(texts)
# Save to file
for i, wav in enumerate(wavs):
torchaudio.save(f"output_{i}.wav", torch.from_numpy(wav).unsqueeze(0), 24000)
```
---
Intro
ChatTTS is an open-source text-to-speech model with 39,000+ GitHub stars, specifically optimized for generating natural, expressive conversational speech. Unlike traditional TTS that sounds robotic, ChatTTS produces speech with natural laughter, pauses, filler words, and emotional variation — making it ideal for chatbots, virtual assistants, podcasts, and audiobooks. Trained on 100,000+ hours of dialogue data, it supports fine-grained prosody control through special tokens and generates 24kHz high-quality audio. Available in both English and Chinese.
Works with: Python, PyTorch, CUDA GPUs (recommended), CPU (slower). Best for developers building conversational AI that needs natural-sounding speech output. Setup time: under 5 minutes.
---
🙏
Source & Thanks
> Created by [2noise](https://github.com/2noise). Licensed under AGPL-3.0.
>
> [ChatTTS](https://github.com/2noise/ChatTTS) — ⭐ 39,000+
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.
Related Assets
OpenLIT — OpenTelemetry LLM Observability
Monitor LLM costs, latency, and quality with OpenTelemetry-native tracing. GPU monitoring and guardrails built in. 2.3K+ stars.
TokRepo精选
Agenta — Open-Source LLMOps Platform
Prompt playground, evaluation, and observability in one platform. Compare prompts, run evals, trace production calls. 4K+ stars.
TokRepo精选
Rerun — Visualize Multimodal AI Data in Real-Time
SDK for logging, storing, and visualizing 3D, images, time series, and text in real-time. Built for robotics and AI. 10K+ stars.
TokRepo精选