-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
executable file
·44 lines (34 loc) · 1.02 KB
/
setup.sh
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
#!/bin/bash
function section_start() {
echo
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo $1
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
}
# setup venv
section_start "Setup virutal env"
python3.10 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools
# install snowboy dependencies
section_start "brew install dependencies"
brew install swig sox portaudio ffmpeg
section_start "install python packages"
pip install -r requirements.txt
section_start "clone snowboy repo"
git clone https://github.com/Kitt-AI/snowboy --depth=1
section_start "make snowboy lib"
pushd snowboy/swig/Python3
sed -i '' 's/python3-config/python3.10-config/g' Makefile
make
popd
exit 0
# install emotvoice
section_start "clone EmotiVoice repo"
git clone https://github.com/netease-youdao/EmotiVoice.git --depth=1
section_start "clone EmotiVoice model"
pushd EmotiVoice
git clone https://www.modelscope.cn/syq163/WangZeJun.git --depth=1
rm -r outputs
git clone https://www.modelscope.cn/syq163/outputs.git --depth=1
popd