GitHub 热门项目:ChatTTS-ui

摘要

GitHub项目:ChatTTS-ui 仓库地址:https://github。com/jianchang512/ChatTTS-ui Stars:7567 | 作者:jianchang512 项目描述:一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。

ChatTTS https docker compose github
2026-05-22 1 阅读 GitHub Trending
GitHub 项目:ChatTTS-ui 仓库地址:https://github.com/jianchang512/ChatTTS-ui 星级:7567 | 作者:jianchang512 项目描述:一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。一个简单的本机网页界面,使用ChatTTS将文本合成为语音,同时支持外部API接口。 =================================================== 自述文件内容: [英文自述文件](README_EN.md) | [打赏项目](https://github.com/jianchang512/ChatTTS-ui/issues/122) | [Discord 讨论组](https://discord.gg/y9gUweVCCJ) # ChatTTS WebUI 和 API 一个简单的本地网页界面,在网页上使用ChatTTS将文字合成为语音,支持中英文、数字混杂,并提供API接口。 译 [ChatTTS](https://github.com/2noise/chattts) 项目。 0.96版本起,源码配置必须先安装ffmpeg ,之前的音色文件csv和pt已不可用,请填写音色值重新生成。[获取音色](?tab=readme-ov-file#音色获取) **界面预览** ![图片](https://github.com/jianchang512/ChatTTS-ui/assets/3378335/669876cf-5061-4d7d-86c5-3333d0882ee8) 文字数字符号控制符混杂效果 https://github.com/jianchang512/ChatTTS-ui/assets/3378335/e2a08ea0-32af-4a30-8880-3a91f6cbea55 ## Windows 预分配版本 1.从[Releases](https://github.com/jianchang512/chatTTS-ui/releases)中下载压缩包,解压后侧壁app.exe即可使用 2.某些安全软件可能报毒,请退出或使用源码安装 3.英伟达显卡大于4G显存,并安装了CUDA11.8+后,将启用GPU加速 ## 手动下载模型 第一次模型huggingface.co或github下载模型到asset目录下,如果网络不稳定,可能下载失败,如果失败,请单独下载 下载后解压后,会看到asset文件夹,该文件夹内有多个pt文件,将所有pt文件复制到asset目录下,然后重启软件 GitHub下载地址:https://github.com/jianchang512/ChatTTS-ui/releases/download/v1.0/all-models.7z 百度网盘下载地址:https://pan.baidu.com/s/1yGDZM9YNN7kW9e7SFo8lLw?pwd=ct5x ## Linux下容器配置 ### 安装 1.拉取项目仓库 在任意路径下克隆项目,例如: ````bash git 克隆 https://github.com/jianchang512/ChatTTS-ui.git chat-tts-ui ```` 2.启动Runner 进入项目目录: ````bash cd 聊天-tts-ui ```` 启动容器并查看初始化日志: ````bash GPU版本 docker compose -f docker-compose.gpu.yaml up -d CPU版本 docker compose -f docker-compose.cpu.yaml up -d docker compose 日志 -f --no-log-prefix 3.访问ChatTTS WebUI `启动:['0.0.0.0', '9966']`,也即,访问部署设备的`IP:9966`即可,例如: - 本机:`http://127.0.0.1:9966` - 服务器:`http://192.168.1.100:9966` ### 更新 1.从主分支获取最新代码: ````bash git checkout 主要 git pull origin 主要 ```` 2. 进入下一步并更新至最新镜像: ````bash docker 组合下来 GPU版本 docker compose -f docker-compose.gpu.yaml up -d --build CPU版本 docker compose -f docker-compose.cpu.yaml up -d --build docker compose 日志 -f --no-log-prefix ```` ## Linux下部署源码 1.配置好python3.9-3.11环境,安装ffmpeg。 `yum install ffmpeg` 或 `apt-get install ffmpeg`等 2. 创建空目录 `/data/chattts` 执行命令 `cd /data/chattts && git clone https://github.com/jianchang512/chatTTS-ui .` 3.创建虚拟环境`python3 -m venv venv` 4. 激活虚拟环境 `source ./venv/bin/activate` 5. 安装依赖`pip3 install -rrequirements.txt` 6.如果不需要CUDA加速,则执行 `pip3 安装 torch==2.2.0 torchaudio==2.2.0` 如果需要CUDA加速,执行 ```` pip install torch==2.2.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118 pip 安装 nvidia-cublas-cu11 nvidia-cudnn-cu11 ```` 另需安装CUDA11.8+ ToolKit,请自行搜索安装方法或参考https://juejin.cn/post/7318704408727519270 除CUDA外,也可以使用AMD GPU进行加速,这需要安装ROCm和PyTorch_ROCm版本。AMG GPU借助ROCm,在PyTorch开箱即用,无需额外修改代码。 1. 请参考https://rocm.docs.amd.com/projects/install-on-linux/en/latest/tutorial/quick-start.html来安装AMD GP