ChatTTS Conversational Voice Model: Fine-Grained Prosody Control, Speaker Cloning & FastAPI Serving
Deploy ChatTTS conversational speech synthesis with fine-grained laugh and pause control, speaker timbre cloning, mirror downloads, and FastAPI serving.
π£οΈ ChatTTS core conversation rhythm mechanism
Unlike traditional mechanical TTS (text-to-speech) engines, ChatTTS is the first open source speech model that is deeply fine-tuned for real conversation scenarios. Its core features include:
- Colloquial control tags: Supports implicit control tags such as
[laugh](laughter) and[break](natural sentence break) embedded in the text. - Controllable speaker timbre Embedding: By fixing the
spk_embseed vector, a stable and unified voice image output is achieved.
β‘ Mirror downloading and FastAPI service encapsulation
export HF_ENDPOINT="https://hf-mirror.net"
huggingface-cli download 2noise/ChatTTS \
--local-dir /data/models/ChatTTS \
--local-dir-use-symlinks False
import ChatTTS
import torch
import soundfile as sf
#
chat = ChatTTS.Chat()
chat.load(source="custom", custom_path="/data/models/ChatTTS", compile=False)
#
text = "Hello everyone, welcome to the HF-Mirror mirror acceleration station! [laugh] It's really fast to pull large models here [break]!"
wavs = chat.infer([text], use_decoder=True)
#
sf.write("welcome_speech.wav", wavs[0][0], 24000)
print("Speech synthesis is successful and has been saved to welcome_speech.wav")
Paste any huggingface.co model, GGUF, or dataset URL into our converter to generate ready-to-run huggingface-cli, cURL, Wget, and Python commands.
π Related Engineering Guides
Compare CosyVoice 2 and F5-TTS for 3-second zero-shot voice cloning, streaming low-latency TTS, cross-lingual synthesis, and fast HF-Mirror model setup.
Deploy hexgrad/Kokoro-82M (327MB, Apache 2.0) on CPU. Offline HF-Mirror download, fixing espeak-ng and Chinese misaki errors, and FastAPI concurrency tuning.
Deploy OpenAI Whisper Large v3 Turbo with faster-whisper CTranslate2 for 8x faster transcription, Silero VAD silence filtering, and fast mirror downloads.
Run Zhipu CogVideoX-5B text-to-video locally with Diffusers, 3D VAE tiling, CPU VRAM offloading on 24GB GPUs, and fast Hugging Face mirror downloads.