Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,606 Bytes
ad38b7d c4011c4 36ddcdb 1383b23 57ff8d8 c4011c4 57ff8d8 c4011c4 1383b23 57ff8d8 1383b23 c4011c4 1383b23 c4011c4 ad38b7d 57ff8d8 c4011c4 57ff8d8 1383b23 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#!/bin/bash
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh -b
source ~/miniconda3/bin/activate
#conda create -n cosyvoice python=3.8
#conda activate cosyvoice
#conda install -y -c conda-forge pynini==2.1.5
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
pip install -r requirements_.txt
# If you encounter sox compatibility issues
# ubuntu
apt-get -y update
apt-get -y install sox libsox-dev
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-25Hz.git pretrained_models/CosyVoice-300M-25Hz
#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
#huggingface-cli download model-scope/CosyVoice-300M --local-dir pretrained_models/CosyVoice-300M --token=$hf_token
#huggingface-cli download model-scope/CosyVoice-300M-SFT --local-dir pretrained_models/CosyVoice-300M-SFT --token=$hf_token
#huggingface-cli download FunAudioLLM/CosyVoice-ttsfrd --local-dir pretrained_models/CosyVoice-ttsfrd --token=$hf_token
ls pretrained_models
cd pretrained_models/CosyVoice-ttsfrd/
unzip resource.zip -d .
pip install ttsfrd-0.3.6-cp38-cp38-linux_x86_64.whl
export PYTHONPATH=third_party/Matcha-TTS
python3 webui.py |