█

AI/TLDR

Buy me a coffee
Buy me a coffee

ChatTTS

Generative text-to-speech model built for natural daily dialogue

Audio, Music & VoiceOpen source
Language
Python
License
AGPL-3.0
$pip install ChatTTS
IN SHORT

What is ChatTTS?

ChatTTS is a generative text-to-speech model designed for dialogue scenarios such as LLM assistants. Instead of reading text in a flat, robotic way, it aims to produce speech that sounds natural and expressive in a back-and-forth conversation. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in Python and licensed AGPL-3.0.

Overview

ChatTTS is a generative text-to-speech model designed for dialogue scenarios such as LLM assistants. Instead of reading text in a flat, robotic way, it aims to produce speech that sounds natural and expressive in a back-and-forth conversation.

The model supports English and Chinese, and can render multiple speakers so interactive conversations feel more lifelike. The open-source release on Hugging Face is a 40,000-hour pre-trained base model, intended for academic and research use under a non-commercial license.

What it does

  • Conversational TTS optimized for dialogue, with support for multiple speakers in interactive conversations
  • Fine-grained control over prosody, including laughter, pauses, and interjections via in-text tokens
  • Better prosody than most open-source TTS models, with pretrained weights provided for further research
  • Sentence-level and word-level control using tokens like [oral_2], [laugh], [uv_break], and [break_6]
  • Streaming audio generation and zero-shot inference with the open-sourced DVAE encoder
  • Sample random speaker embeddings from a Gaussian and save them to recover the same timbre later

Getting started

ChatTTS is distributed as a Python package on PyPI. Install it, load the model, and call infer() with your text to produce audio. The example below mirrors the basic usage in the project README.

Install from PyPI

Install the stable version of the ChatTTS package with pip.

bashbash
pip install ChatTTS

Generate speech in Python

Load the model and run inference on a list of texts, then save each result as a WAV file at 24000 Hz.

pythonpython
import ChatTTS
import torch
import torchaudio

chat = ChatTTS.Chat()
chat.load(compile=False) # Set to True for better performance

texts = ["PUT YOUR 1st TEXT HERE", "PUT YOUR 2nd TEXT HERE"]

wavs = chat.infer(texts)

for i in range(len(wavs)):
    torchaudio.save(f"basic_output{i}.wav", torch.from_numpy(wavs[i]).unsqueeze(0), 24000)

Try the command line or WebUI

From the project root you can also infer directly from the command line, which saves audio to ./output_audio_n.mp3, or launch the bundled web interface.

bashbash
python examples/cmd/run.py "Your text 1." "Your text 2."
python examples/web/webui.py

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Giving an LLM assistant or chatbot a natural, expressive spoken voice for dialogue
  • Research and academic experiments on prosody and conversational speech synthesis
  • Generating multi-speaker English and Chinese audio with controllable laughter, pauses, and intonation

How ChatTTS compares

ChatTTS alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
VoiceStudio★ 121kA local-first desktop voice studio that clones and designs voices, dubs video, and handles dictation, running 16 text-to-speech and 11 speech-recognition engines on your own hardware.
Whisper★ 114kOpenAI's speech recognition model that transcribes and translates audio across many languages.
GPT-SoVITS★ 64.3kAn open-source WebUI that clones a voice from a short audio sample and turns text into speech, with zero-shot and few-shot fine-tuning.
Voicebox★ 61.6kLocal-first voice studio that clones a voice from a short sample, generates speech across seven TTS engines and 23 languages, handles system-wide dictation, and speaks for agents over MCP.
VibeVoice★ 57.6kMicrosoft's text-to-speech model for generating long, expressive multi-speaker audio like podcasts.
whisper.cpp★ 55.7kA dependency-free C/C++ port of Whisper built on ggml, running speech recognition on CPU, Metal, CUDA, Vulkan and NPUs from phones to servers.
Coqui TTS★ 46.3kA library of text-to-speech models including the multilingual XTTS voice-cloning model.
ChatTTS★ 40kGenerative text-to-speech model built for natural daily dialogue