make_test_env.sh 4.44 KB
Newer Older
mayp777's avatar
UPDATE  
mayp777 committed
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# 更新系统
sudo apt-get update
sudo apt-get upgrade -y

# 安装必要的依赖 liblame-dev -> libmp3lame-dev
sudo apt-get install -y libmad0 libmad0-dev libid3tag0 libid3tag0-dev libmp3lame-dev libflac-dev libvorbis-dev yasm nasm

# 安装 Python 包
pip3 install pytorch-lightning==1.9.3 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install unidecode -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install inflect -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install pytest==7.3.1 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install expecttest -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install parameterized -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install scipy -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install scikit-learn -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip3 install urllib3==1.26.14 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install SentencePiece -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install deep-phonemizer -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install librosa -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
# pip install demucs -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install Pillow -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install flashlight -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install kaldi_io -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install flashlight-text -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install tinytag -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

# 设置 PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

# ffmpeg ffmpeg-4.1.11 -> ffmpeg-4.4.4  --enable-libmp3lame
wget --no-check-certificate https://www.ffmpeg.org/releases/ffmpeg-4.4.4.tar.gz
tar xzf ffmpeg-4.4.4.tar.gz
cd ffmpeg-4.4.4
./configure --enable-shared --enable-libmp3lame
make -j32
sudo make install
cd -

# opencore-amr-0.1.6
wget --no-check-certificate https://sourceforge.net/projects/opencore-amr/files/opencore-amr/opencore-amr-0.1.6.tar.gz
tar xzf opencore-amr-0.1.6.tar.gz
cd opencore-amr-0.1.6
./configure
make -j32
sudo make install
cd -

# amrnb-11.0.0.0
#wget http://www.penguin.cz/~utx/ftp/amr/amrnb-11.0.0.0.tar.bz2
#tar xf amrnb-11.0.0.0.tar.bz2
#cd amrnb-11.0.0.0
#./configure
#make -j32
#sudo make install
#cd -

# amrwb-11.0.0.0
#wget http://www.penguin.cz/~utx/ftp/amr/amrwb-11.0.0.0.tar.bz2
#tar xf amrwb-11.0.0.0.tar.bz2
#cd amrwb-11.0.0.0
#./configure
#make -j32
#sudo make install
#cd -

# libao-1.2.0
wget http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz
tar xzf libao-1.2.0.tar.gz
cd libao-1.2.0
./configure
make -j32
sudo make install
cd -

# libogg-1.3.5
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.xz
tar xf libogg-1.3.5.tar.xz
cd libogg-1.3.5
./configure --disable-static
make -j32
sudo make install
cd -

# opus-1.4
wget --no-check-certificate http://downloads.xiph.org/releases/opus/opus-1.4.tar.gz
tar xzf opus-1.4.tar.gz
cd opus-1.4
./configure
make -j32
sudo make install
cd -

# opusfile-0.12
wget http://downloads.xiph.org/releases/opus/opusfile-0.12.tar.gz
tar xzf opusfile-0.12.tar.gz
cd opusfile-0.12
./configure
make -j32
sudo make install
cd -

# libopusenc-0.2.1
wget --no-check-certificate https://archive.mozilla.org/pub/opus/libopusenc-0.2.1.tar.gz
tar xzf libopusenc-0.2.1.tar.gz
cd libopusenc-0.2.1
./configure
make -j32
sudo make install
cd -

# opus-tools-0.2
# wget https://archive.mozilla.org/pub/opus/opus-tools-0.2.tar.gz
# tar xzf opus-tools-0.2.tar.gz
# cd opus-tools-0.2
# ./configure
# make -j32
# sudo make install
# cd -
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# wavpack-4.80.0
wget --no-check-certificate https://www.wavpack.com/wavpack-4.80.0.tar.bz2
tar -jxf wavpack-4.80.0.tar.bz2
cd wavpack-4.80.0
./configure
make -j32
sudo make install
cd -

# sox-14.4.2
wget --no-check-certificate https://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.gz
tar xzf sox-14.4.2.tar.gz
cd sox-14.4.2
./configure
make -j32
sudo make install
cd -