|
Download README.md from autotrust/TTS-V8: direct link, hf CLI and curl.
- Browser
- Download file 9.22 kB
-
https://huggingface.co/autotrust/TTS-V8/resolve/main/README.md
- Command line
-
hf download hf://autotrust/TTS-V8/README.md
-
curl -L -o README.md https://huggingface.co/autotrust/TTS-V8/resolve/main/README.md
9.22 kB
| license: other | |
| license_name: mixed-components | |
| license_link: LICENSE.md | |
| language: | |
| - zh | |
| pipeline_tag: text-to-speech | |
| tags: | |
| - text-to-speech | |
| - tts | |
| - voice-cloning | |
| - streaming | |
| - call-center | |
| - vllm-omni | |
| # TTS-V8:呼叫中心中文语音合成模型 | |
| TTS-V8 是面向客服、销售、催收等电话外呼与智能语音交互场景的中文 TTS 模型,主打**自然真人通话听感**、**高音色还原度**与**低延迟实时流式输出**。 | |
| - **开箱即用:** 完整权重文件,直接加载推理。 | |
| - **内置 6 种业务音色(3 男 3 女):** 覆盖客服、销售、催收场景,同时支持任意自定义参考音频声音克隆。 | |
| - **实时流式 & 高并发:** 内置双向流式(支持 LLM 逐字增量输入、首包低至 ~90 ms),并原生支持 **vLLM-Omni** 高并发服务部署。 | |
| - **语速调节与数字读法优化:** 内置保持音高的语速调节(0.5–2.0 倍),自动处理订单号、卡号、金额、日期等业务话术读法。 | |
| --- | |
| ## 在线试听(点击直接播放或下载 WAV) | |
| 以下全部示例使用同一段约 230 字的业务长话术(含订单号、金额、日期与英文),流式示例模拟 LLM 每秒 30 字逐字输入: | |
| > 您好,很抱歉让您久等了。我已经为您查询到,您的订单编号是20261113004567,商品金额为128.50元,优惠券抵扣20元,实际支付108.50元。退款申请已于11月13日提交,预计3个工作日内退回原支付账户。请您打开APP,在订单详情页面查看处理进度。如果您是VIP会员,也可以联系在线客服。如果超过7天仍未到账,请再次联系我们,我们会尽快为您核实。感谢您的耐心等待,祝您生活愉快。 | |
| ### 六种内置音色试听 | |
| | 音色 | 离线整段合成 | 流式·按句(推荐默认,首包约 0.45 s) | 流式·极速首包(首包约 90 ms) | | |
| |---|---|---|---| | |
| | **客服女** `service_female` | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__offline.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__offline.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__stream_icl_sentence.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__stream_icl_sentence.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__stream_xvec_token.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__stream_xvec_token.wav) | | |
| | **客服男** `service_male` | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_male__offline.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_male__offline.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_male__stream_icl_sentence.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_male__stream_icl_sentence.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_male__stream_xvec_token.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_male__stream_xvec_token.wav) | | |
| | **销售女** `sales_female` | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_female__offline.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_female__offline.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_female__stream_icl_sentence.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_female__stream_icl_sentence.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_female__stream_xvec_token.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_female__stream_xvec_token.wav) | | |
| | **销售男** `sales_male` | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_male__offline.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_male__offline.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_male__stream_icl_sentence.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_male__stream_icl_sentence.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_male__stream_xvec_token.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/sales_male__stream_xvec_token.wav) | | |
| | **催收男** `bank_collection_male` | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_male__offline.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_male__offline.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_male__stream_icl_sentence.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_male__stream_icl_sentence.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_male__stream_xvec_token.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_male__stream_xvec_token.wav) | | |
| | **催收女** `bank_collection_female` | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_female__offline.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_female__offline.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_female__stream_icl_sentence.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_female__stream_icl_sentence.wav) | <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_female__stream_xvec_token.wav"></audio><br>[下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/bank_collection_female__stream_xvec_token.wav) | | |
| ### 语速调节试听(`service_female`) | |
| - **0.8 倍速(放慢):** <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__offline__speed0.8.wav"></audio> [下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__offline__speed0.8.wav) | |
| - **1.2 倍速(加快):** <audio controls preload="none" src="https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__offline__speed1.2.wav"></audio> [下载 WAV](https://huggingface.co/autotrust/TTS-V8/resolve/main/demos/service_female__offline__speed1.2.wav) | |
| --- | |
| ## 快速测试与接入 | |
| ### 1. 下载与安装 | |
| ```bash | |
| pip install "huggingface-hub==0.36.2" | |
| python -c "from huggingface_hub import snapshot_download; snapshot_download('autotrust/TTS-V8', local_dir='TTS-V8')" | |
| cd TTS-V8 | |
| pip install -r requirements.txt # 需要 CUDA 版 PyTorch | |
| python verify_files.py # 校验文件完整性 | |
| ``` | |
| ### 2. 命令行快速合成 | |
| ```bash | |
| # 离线合成 | |
| python synthesize.py --voice service_female \ | |
| --text "您好,您本期账单金额是235.60元,请您核对。" --output out.wav | |
| # 流式·按句(推荐用于对接 LLM) | |
| python synthesize.py --voice service_female --stream icl --cps 30 \ | |
| --text "您好,很抱歉让您久等了。您的退款预计3个工作日内到账。" --output icl.wav | |
| # 流式·极速首包 | |
| python synthesize.py --voice service_female --stream xvec --cps 30 \ | |
| --text "您好,很抱歉让您久等了。您的退款预计3个工作日内到账。" --output xvec.wav | |
| # 调节语速(如 --speed 1.2)或自定义音色(--ref-audio ref.wav --ref-text "参考音频转写") | |
| ``` | |
| ### 3. Python 调用 | |
| ```python | |
| from inference import TTSV8 | |
| import soundfile as sf | |
| tts = TTSV8(".") | |
| wav, sr = tts.synthesize("您好,请您核对一下账单金额。", voice="service_female") | |
| sf.write("out.wav", wav, sr) | |
| ``` | |
| ### 4. 服务部署 | |
| - **单路/双向流式 WebSocket 服务:** | |
| ```bash | |
| V4_CUDA_GRAPH=1 python stream_server.py --model-dir . --port 8765 | |
| ``` | |
| - **高并发生产部署(vLLM-Omni,OpenAI 兼容接口):** | |
| ```bash | |
| bash vllm_omni/serve.sh . 8091 | |
| python vllm_omni/register_voices.py | |
| python vllm_omni/client.py --voice service_female --text "您好,请您核对账单。" --output out.wav | |
| ``` | |
| --- | |
| ## 许可 | |
| 详见 [`LICENSE.md`](LICENSE.md)、[`LICENSE-QWEN.txt`](LICENSE-QWEN.txt) 与 [`NOTICE`](NOTICE)。 | |