← Back to Leaderboard
Cjianchang512

jianchang512/ChatTTS-ui

Self-hosted ChatTTS with a browser UI and HTTP API for Chinese and English speech

Engineering Health (Methodology)
B · 52/100
Maintenance Activity
● Updated 5mo ago
Latest Release
v260614
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption20/25
Release Cadence14/20
License Clarity6/20
DockerSelf-HostedLocal AIAPIGPU
Total Stars
★ 7,669
24h Growth
+2
7d Growth
+5
Forks
907

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

jianchang512/ChatTTS-ui Star History (2024-05-28 - 2026-12-03) ALL-TIME STAR HISTORY (2024-05 – 2026-12) +7.7k in 919d · avg +8/day 8.1k 4k 0 2024-05-28: ★ 12024-07-27: ★ 5,0722024-09-21: ★ 5,5992024-11-16: ★ 5,9332025-01-11: ★ 6,2272025-03-08: ★ 6,5132025-05-03: ★ 6,7392025-06-28: ★ 6,9212025-08-23: ★ 7,0492025-10-18: ★ 7,1562025-12-13: ★ 7,2632026-02-07: ★ 7,3362026-04-04: ★ 7,4042026-05-30: ★ 7,4772026-07-25: ★ 7,5582026-09-19: ★ 7,6162026-12-03: ★ 7,669 ★ 7.7k 2024-05 2025-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

app.py is the Python entry point for a browser UI and HTTP API built around the bundled ChatTTS core in ChatTTS/. Flask and Waitress are declared web-serving dependencies. The root tree separates UI assets into templates/ and static/ and provides a speaker/ directory for speaker assets. Inference runs on the deployment host; the external model hosts are used for weight acquisition, not remote speech synthesis.

The integration boundary is a form-encoded POST /tts. The API takes text and synthesis options, generates WAV artifacts, and returns JSON with a result code and an audio_files array. Each entry contains an absolute server filename and a downloadable URL; the example serves files under /static/wavs/. This is a file-oriented interface rather than an audio stream. The declared runtime includes PyTorch, Transformers, Tokenizers, and Vocos, with device selection exposed through .env.

Key Capabilities & Differentiators

ChatTTS-ui handles Chinese, English, and digits in the same input. The prompt field accepts markers such as [oral_2][laugh_0][break_6] for conversational style, laughter, and pauses. The API exposes temperature, top_p, and top_k, with defaults of 0.3, 0.7, and 20, respectively. Text refinement is enabled by default and can be bypassed with skip_refine=1.

Voice selection uses numeric values. A positive integer custom_voice takes precedence over voice, but the same seed can sound different across devices and can even vary in pitch on the same machine. Treat a seed as a selection input, not a reproducibility guarantee. The same endpoint can be configured as a TTS backend in pyVideoTrans 1.82+, and other clients can consume its WAV URLs directly.

Trade-offs & Limitations

Compared with integrating upstream ChatTTS directly, this wrapper gives operators a browser UI and callers a ready-made HTTP contract. In exchange, callers work with downloaded WAV files rather than a documented streaming interface. Compared with a managed service such as ElevenLabs, synthesis stays on infrastructure you control, but model acquisition, Python/CUDA compatibility, capacity planning, and generated-file retention become your responsibility. No measured latency or concurrency figures are available to support a real-time workload decision.

Low-VRAM systems can fall back to CPU, but the device-selection threshold does not predict performance. The response exposes absolute host paths as well as download URLs, so review who can call the API and retrieve artifacts before widening network access. A LICENSE file is present, but its terms are not established here. Verify rights for the application, model weights, and any third-party speaker assets separately before commercial use or redistribution.

Hardware & Deployment Guide

Windows users can unpack the prebuilt release and start app.exe. Source setup on Linux, macOS, and Windows uses a Python virtual environment, requirements.txt, and python app.py; install FFmpeg first. The setup specifies Python 3.9–3.11, while Poetry declares ^3.10, so Python 3.10 is a sensible starting point. The source setup pairs PyTorch and torchaudio at 2.7.1 and specifies cu128 wheels and CUDA 12.8+ for NVIDIA acceleration. Poetry still references PyTorch 2.3/cu118 outside macOS; do not assume those dependency paths are interchangeable.

Run docker compose -f docker-compose.cpu.yaml up -d or use docker-compose.gpu.yaml for the GPU variant. The local default is 127.0.0.1:9966; the container setup describes listening on 0.0.0.0:9966. Check the bind address before widening network access. First startup downloads weights from ModelScope or Hugging Face, but the descriptions of which host is tried first conflict. Version v260614 updates the ChatTTS core and moves to PyTorch 2.7.1 for RTX 50-series compatibility. Earlier upgrades also affected persisted assets: v1.0 required a model re-download, and releases from 0.96 onward stopped accepting older CSV/PT speaker files directly.

Runtime: Python app.py fronts the bundled ChatTTS/ engine; Flask, Waitress, and PyTorch are declared dependencies.
API contract: POST /tts accepts form data and returns a JSON audio_files array with WAV URLs and absolute server paths.
Speech controls: Mixed Chinese, English, and digits, with pause and laughter markers, sampling controls, and optional text refinement.
Voice migration: Seed-based voice selection is available, but releases from 0.96 onward are not directly compatible with older CSV/PT speaker files.
Device configuration: .env exposes WEB_ADDRESS, compile, and device; separate CPU and GPU Docker Compose files are available.
Release compatibility: v260614 upgrades the ChatTTS core and moves to PyTorch 2.7.1 for NVIDIA RTX 50-series compatibility.
Best For

Local Chinese and English narration or dubbing when a browser preview, downloadable WAVs, and integration with pyVideoTrans or an internal HTTP client are enough.

Skip If

You need live audio streaming, a managed service with no inference maintenance, or commercial rights that are already cleared for the exact model and speaker assets.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedLocal AIAPI
pip install torch==2.7.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128

	pip install nvidia-cublas-cu11 nvidia-cudnn-cu11

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
ChatTTS-ui ★7.7k+5Python—Self-hosted ChatTTS with a browser UI and HTTP API for Chinese and English speec
voicebox61.8k+437PythonMITLocal-first voice studio with multi-engine speech synthesis, dictation and MCP.
voice-pro13.5k+34PythonGPL-3.0Self-hosted Gradio studio for transcription, translation, and dubbing
EmotiVoice8.5k—PythonApache-2.0Self-hosted PyTorch TTS for prompt-controlled Chinese and English speech

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/jianchang512/ChatTTS-ui.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

jianchang512/ChatTTS-ui Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about ChatTTS-ui

How should a separate application consume the TTS API?

Send a form-encoded POST to /tts with text and any optional synthesis settings. On success, iterate over audio_files and fetch each url; do not use filename as a client-side path, because it is absolute on the server. For a remote deployment, test that the returned URLs are reachable from the client.

Is a GPU required, and how should I size the host?

No. A CPU Compose configuration is available. Automatic CUDA selection is described for NVIDIA cards with more than 4 GB of VRAM, and GPUs below 4 GB fall back to CPU. For the CUDA path, check that the installed PyTorch build actually supports CUDA. The threshold is a device-selection rule, not a throughput or concurrency guarantee; test with representative text on the target machine.

Does self-hosting permit commercial use or redistribution?

Do not infer commercial permission from self-hosting. The tree contains a LICENSE file, but its terms are not established here. Check the exact release's application license, the upstream ChatTTS code and model-weight terms, and any third-party speaker assets you plan to redistribute or use commercially.

When would I choose ChatTTS-ui over ElevenLabs?

Choose ChatTTS-ui when local inference and control of the host and WAV files matter more than avoiding runtime maintenance. Consider a managed service such as ElevenLabs if you prefer not to operate the inference stack. Compare voice quality, latency, and usage terms on your own workload; the file-based /tts contract does not establish API compatibility or streaming parity.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining jianchang512/ChatTTS-ui? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature jianchang512/ChatTTS-ui on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare