欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 家装 > ChatTTS 本地安装和测试

ChatTTS 本地安装和测试

2024/10/25 20:43:35 来源:https://blog.csdn.net/berryreload/article/details/142836912  浏览:    关键词:ChatTTS 本地安装和测试

Ubuntu 22服务器,3.9/3.10都可以,但是 3.11不可以

下载按照Miniconda3

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

conda create -n chattts_env310 python=3.10
conda activate chattts_env310
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

git clone https://github.com/2noise/ChatTTS
cd ChatTTS

pip  install --upgrade -r requirements.txt

首次运行ChatTTS会下载大模型,下次运行就不会了

python examples/cmd/run.py "Your text 1." "Your text 2."

# 如果没有事先下载好 大模型,首次执行的时候,会自动从国外下载,几个GB,很慢
# INFO[0068] #2.2 get: https://huggingface.co/2Noise/ChatTTS/resolve/main/asset/gpt/model.safetensors
# INFO[0068] #2.1 get: https://huggingface.co/2Noise/ChatTTS/resolve/main/asset/gpt/config.json
# INFO[0069] #2.1 writing file asset/gpt/config.json

GPU加持,速度还是可以的

python examples/web/webui.py

我的GPU 服务器会崩溃

运行API 服务

fastapi dev examples/api/main.py --host 0.0.0.0 --port 8000

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com