Speech-AI-Forge 是一个围绕 TTS 生成模型开发的项目,实现了 API 服务器和基于 Gradio 的 WebUI。
Speech-AI-Forge 是一个围绕 TTS 生成模型开发的项目,实现了 API 服务器和基于 Gradio 的 WebUI。
Speech-AI-Forge 是一个围绕 TTS 生成模型开发的项目,实现了 API Server 和 基于 Gradio 的 WebUI。
你可以通过以下几种方式体验和部署 Speech-AI-Forge:
| - | 描述 | 链接 |
|---|---|---|
| 整合包 | Windows整合包解压即用 | Releases |
| Colab体验 | 点击按钮,一键启动 Colab | |
| 本地部署 | 查看环境准备部分 | 本地部署 |
| 容器部署 | 查看 docker 部分 | Docker |
v2/tts API #187首先,确保 相关依赖 已经正确安装,并查看 模型下载 下载所需模型
启动:
python webui.pyTTS (文本转语音): 提供多种强大的 TTS 功能
27 ChatTTS / 7 CosyVoice 音色 + 1 参考音色Batch size,提升支持批量推理模型的长文本推理速度ChatTTS 原生文本 refiner,支持无限长文本处理eos)和分割阈值速度/音调/音量,并增加 响度均衡 功能,优化音频输出Enhancer 模型增强 TTS 输出,提高语音质量ChatTTS / CosyVoice / FishSpeech / GPT-SoVITS / F5-TTS 等SSML (语音合成标记语言): 提供高级 TTS 合成控制工具
长文本、多角色 的音频,适合博客或剧本式的语音合成音色管理 (Voice Management):
ChatTTS 音色的调试工具ASR (自动语音识别):
工具 (Tools):
launch.py: API Server某些情况,你并不需要 webui 或者需要更高的 api 吞吐,那么可以使用这个脚本启动单纯的 api 服务。
启动:
python launch.py启动之后开启 http://localhost:7870/docs 可以查看开启了哪些 api 端点
更多帮助信息:
python launch.py -h 查看脚本参数docker-compose -f ./docker-compose.webui.yml up -ddocker-compose -f ./docker-compose.api.yml up -d环境变量配置
| 模型类别 | 模型名称 | 支持多语言 | 实现情况 |
|---|---|---|---|
| TTS | |||
| Index-TTS | en, zh | ✅ (v1/v1.5) | |
| Qwen3-TTS | en, zh | ✅ | |
| FishSpeech | en, zh, jp, ko | ✅ (1.4) | |
| CosyVoice | en, zh, jp, yue, ko | ✅ (v2/v3) | |
| FireRedTTS | en, zh | ✅ | |
| F5-TTS | en, zh | ✅ (v0.6/v1) | |
| Spark-TTS | en, zh | ✅ | |
| GPT-SoVITS | en, zh, ja, ko, yue | ✅ | |
| ChatTTS | en, zh | ✅ | |
| Cloud TTS | |||
| MiniMax Cloud TTS | en, zh, jp, ko + more | ✅ (speech-2.8-hd/turbo) | |
| ASR | |||
| Whisper | ✅ | ✅ | |
| SenseVoice | ✅ | ✅ | |
| Voice Clone | OpenVoice | — | ✅ |
| Enhancer | ResembleEnhance | — | ✅ |
python -m scripts.download_models --source=modelscope --models="model1,model2,..."模型ID列表说明:
- 支持
--source=huggingface或--source=modelscope或--source=auto(自动根据网络环境选择hf或者ms)- 模型 ID 大小写不敏感,可忽略
-,_,/等符号- 例如:
Qwen3-TTS-12Hz-0.6B-Base可写作qwen3tts12hz06bbase或qwen3-tts-0.6b-base
| 模型类别 | 内部模型 ID(可直接用于 --models) |
|---|---|
| TTS | ChatTTS |
CosyVoice2-0.5B |
|
CosyVoice_300M_Instruct |
|
Fun-CosyVoice3-0.5B-2512 |
|
F5-TTS-V1 |
|
FireRedTTS |
|
fish-speech-1_4 |
|
fish-speech-1.2-sft |
|
Index-TTS-1.5 |
|
Index-TTS |
|
Index-TTS-2 |
|
Qwen3-TTS-12Hz-0.6B-Base |
|
Qwen3-TTS-12Hz-0.6B-CustomVoice |
|
Qwen3-TTS-12Hz-1.7B-Base |
|
Qwen3-TTS-12Hz-1.7B-CustomVoice |
|
Qwen3-TTS-12Hz-1.7B-VoiceDesign |
|
Spark-TTS-0.5B |
|
gpt_sovits_v4 |
|
| ASR | faster-whisper-large-v3 |
faster-whisper-large-v3-turbo-ct2 |
|
SenseVoiceSmall |
|
| CV / Voice Clone | OpenVoiceV2 |
| Enhancer | resemble-enhance |
| 依赖模型(Index-TTS-2 所需) | amphion/MaskGCT |
nvidia/bigvgan_v2_22khz_80band_256x |
|
funasr/campplus |
|
facebook/w2v-bert-2.0 |
|
vocos-mel-24khz |
|
| (sense_voice依赖) | fsmn-vad |
配置环境变量 AUTO_DOWNLOAD 或者运行参数 --auto_download
auto_download=False: 关闭自动下载auto_download=*: 当使用到的时候自动下载匹配的模型 "*" 表示通配所有模型auto_download=qwen3*: 自动下载 "qwen3" 开头的模型To contribute, clone the repository, make your changes, commit and push to your clone, and submit a pull request.
isort --profile blackChatTTS: https://github.com/2noise/ChatTTS
PaddleSpeech: https://github.com/PaddlePaddle/PaddleSpeech
resemble-enhance: https://github.com/resemble-ai/resemble-enhance
OpenVoice: https://github.com/myshell-ai/OpenVoice
FishSpeech: https://github.com/fishaudio/fish-speech
SenseVoice: https://github.com/FunAudioLLM/SenseVoice
CosyVoice: https://github.com/FunAudioLLM/CosyVoice
FireRedTTS: https://github.com/FireRedTeam/FireRedTTS
F5-TTS: https://github.com/SWivid/F5-TTS
Index-TTS: https://github.com/index-tts/index-tts
Spark-TTS: https://github.com/SparkAudio/Spark-TTS
GPT-SoVITS: https://github.com/RVC-Boss/GPT-SoVITS
Qwen3-TTS: https://github.com/QwenLM/Qwen3-TTS
Whisper: https://github.com/openai/whisper
ChatTTS 默认说话人: https://github.com/2noise/ChatTTS/issues/238
暂无开放 Issues,或尚未同步最近议题。