Home/Speech & Audio/ChatTTS_colab
ChatTTS_colab logo

ChatTTS_colab

6drf21e/ChatTTS_colab

一键部署的ChatTTS项目,支持流式输出、音色抽卡和长音频生成。

GraphCanon updated 3w · GitHub synced 3w

2.6k stars324 forksLast push 2mo Python

Decision brief

ChatTTS_colab offers one-click deployment for ChatTTS text-to-speech applications on Colab and supports voice style selection, long audio generation, and streaming output.

Good fit when

  • When you want a simplified setup with minimal configuration needed in a browser-based environment using Google Colab.
  • For projects requiring multi-character reading capabilities where different voices can be assigned to various roles.

Avoid when

  • If your project needs do not include the ability to generate audio on-the-fly or manage multiple character readings.
  • When you want to avoid Colab's resource limitations that could affect performance for heavy text-to-speech tasks.

Observed Jul 17, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Steady (59d since push)
As of 3w
Provenance
Not a fork · Personal account
As of 3w
Security (OSV)
No criticals
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install ChatTTS_colab
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

ChatTTS_colab is a repository that provides one-click deployment for ChatTTS, simplifying the process of using it for text-to-speech applications. The project supports features such as streaming output, voice style selection, long audio generation, and multi-character reading.

Capability facts

Languages
python

Source: github.language · Jul 29, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Jul 29, 2026)

conda create -n "ChatTTS_colab" python=3.11
Source link

Tags

README

ChatTTS_colab

🚀 一键部署 简单易用 无需复杂安装(含win离线整合包)

基于 ChatTTS ,支持流式输出、音色抽卡、长音频生成和分角色朗读。

🏆稳定说话人音色库/区分男女已开源 项目地址: ChatTTS_Speaker

支持按男女、年龄、特征查找稳定音色。

整合版下载地址

版本地址
百度网盘百度网盘 提取码: h3c5
夸克网盘夸克网盘
Huggingface🤗Huggingface

演示视频

欢迎关注 氪学家频道 ,获取更多有趣的科技视频。

特点

  • Colab 一键运行:无需复杂的环境配置,只需点击上方的 Colab 按钮,即可在浏览器中直接运行项目。
  • 音色抽卡功能:批量生成多个音色,并可保存自己喜欢的音色。
  • 支持生成长音频:适合生成较长的语音内容。
  • 字符处理:对数字和朗读错误的标点做了初步处理。
  • 分角色朗读功能 :支持对不同角色的文本进行分角色朗读,并支持大模型一键生产脚本。
  • 支持流输出:边生成边播放,无需等待全部生成完毕。

功能展示

支持流输出

分角色朗读功能

音色抽卡功能

支持生成长音频

快速开始

在 Colab 运行

  1. 点击最上方的 "Open In Colab" 按钮,打开 Colab 笔记本。
  2. 点击菜单栏的–代码执行程序–全部运行即可
  3. 执行后在下方的日志中找到类似 Running on public URL: https://**********.gradio.live
  4. https://**********.gradio.live 就是可以访问的公网地址

在 macOS 上运行

  1. 安装 Conda(如果尚未安装)。
  2. 打开终端,创建一个新的 conda 环境:
    conda create -n "ChatTTS_colab" python=3.11
    
  3. 激活刚创建的环境:
    conda activate ChatTTS_colab
    
  4. 克隆本项目仓库到本地:
    git clone git@github.com:6drf21e/ChatTTS_colab.git
    
  5. 手动安装 ChatTTS 依赖到项目目录:
    cd ChatTTS_colab
    git clone -q https://github.com/2noise/ChatTTS
    cd ChatTTS
    git checkout -q e6412b1
    cd ..
    mv ChatTTS temp
    mv temp/ChatTTS ./ChatTTS
    rm -rf temp
    
  6. 在项目目录安装 ChatTTS_colab 所需的依赖:
    pip install -r requirements-macos.txt
    
  7. 运行项目,等待自动下载模型:
    python webui_mix.py
    # Loading ChatTTS model...
    
    一切正常的话会自动打开浏览器。

常见问题:

  1. 第一次运行项目,ChatTTS 会自动从 huggingface 下载模型,如果因为网络问题下载失败,那么 ChatTTS 是无法自行重新下载的,需要清除缓存后重新触发下载。 错误信息示例:

    FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/hub/models--2Noise--ChatTTS/snapshots/d7474137acb4f988874e5d57ad88d81bcb7e10b6/asset/Vocos.pt'
    

    清除缓存的方法:

    rm -rf ~/.cache/huggingface/hub/models--2Noise--ChatTTS
    

    清除缓存后,再次执行 python webui_mix.py,就会重新下载模型。

    如果多次下载都无法成功,可以手动将离线包里的 models 拷贝到项目目录,从本地加载模型

       python webui_mix.py --source local --local_path models
    
  2. 如果下载模型速度慢,建议使用赛博活菩萨 @padeoe 的镜像加速 https://hf-mirror.com/

     export HF_ENDPOINT=https://hf-mirror.com
    

贡献者列表

许可证

本项目使用 MIT 许可证。

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.