Ubuntu 22服务器,3.9/3.10都可以,但是 3.11不可以
sudo apt install python3.10
apt install python3.10 python3.10-dev
#ubuntu 22 安装python3.10对应的pip3.10
# 下载 get-pip.py
curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# 使用 Python 3.10 运行脚本
sudo python3.10 get-pip.py
pip3.10 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
git clone https://github.com/2noise/ChatTTS
cd ChatTTS
pip3.10 install --upgrade -r requirements.txt
# 如果没有事先下载好 大模型,首次执行的时候,会自动从国外下载,几个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
python3.10 examples/cmd/run.py "Your text 1." "Your text 2."
GPU加持,速度还是可以的
python3.10 examples/web/webui.py
我的GPU 服务器会崩溃