File size: 1,362 Bytes
73162ae
 
 
 
 
 
 
 
 
 
 
36ddcdb
e4dc268
36ddcdb
 
e4dc268
 
36ddcdb
 
 
e4dc268
36ddcdb
 
 
 
 
 
 
57ff8d8
 
 
 
 
 
e4dc268
57ff8d8
 
ff06c4c
 
 
57ff8d8
 
 
 
 
 
 
 
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# 更新包列表
apt update -y

# 安装依赖包
apt install -y software-properties-common

# 添加 deadsnakes PPA 源
add-apt-repository -y ppa:deadsnakes/ppa

# 更新包列表
apt update -y
# 安装 Python 3.8
apt install -y python3.8

# 设置 Python 3.8 为默认的 Python 3 版本
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
update-alternatives --config python3

# 验证 Python 版本
python3 --version
python --version

# 升级 pip
python3 -m pip install --upgrade pip

# 验证 pip 版本
pip --version

# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
pip install pynini==2.1.5
pip install -r requirements.txt

# If you encounter sox compatibility issues
# ubuntu
apt-get install sox libsox-dev

mkdir -p pretrained_models
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