https://hub.docker.com/r/harryliu888/cosyvoice
https://github.com/FunAudioLLM/CosyVoice
cd /data/site/htmltoo.opt
git clone https://gitdl.cn/https://github.com/FunAudioLLM/CosyVoice.git
cd CosyVoice/third_party
git clone https://gitdl.cn/https://github.com/shivammehta25/Matcha-TTS.git
conda create -n cosyvoice python=3.11
conda activate cosyvoice
conda install -y -c conda-forge pynini==2.1.5
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
-ubuntu
apt-get install sox libsox-dev
-centos
yum install sox sox-devel
# git模型下载,请确保已安装git lfs
-对于零样本/跨语言推理,请使用 CosyVoice-300M 模型。
-对于 SFT 推理,请使用 CosyVoice-300M-SFT 模型。
-对于指令式推理,请使用 CosyVoice-300M-Instruct 模型
mkdir -p pretrained_models
git clone https://www.modelscope.cn/iic/CosyVoice-300M.git pretrained_models/CosyVoice-300M
git clone https://www.modelscope.cn/iic/CosyVoice-300M-SFT.git pretrained_models/CosyVoice-300M-SFT
git clone https://www.modelscope.cn/iic/CosyVoice-300M-Instruct.git pretrained_models/CosyVoice-300M-Instruct
git clone https://www.modelscope.cn/iic/CosyVoice-ttsfrd.git pretrained_models/CosyVoice-ttsfrd
nohup python3 webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M > webui.log 2>&1 &
http://192.168.1.11:50000