-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
24 lines (21 loc) · 898 Bytes
/
install.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
#!/bin/bash
# Clone https://github.com/codemmmmm/speech_pipeline.git
# running as root creates the venv in /root and maybe does more bad stuff
if [ "$EUID" -eq 0 ]
then echo "Please don't run as root."
exit
fi
venv_name="venv_speech_pipeline"
# without python3-pip installed (outside the project venv) installing pyworld will fail
sudo apt-get update && sudo apt-get install python3-venv ffmpeg mpv espeak-ng curl python3-pip
echo "Creating python venv $HOME/$venv_name"
python3 -m venv $HOME/$venv_name
source $HOME/$venv_name/bin/activate
pip3 install --upgrade pip
pip3 install wheel
pip3 install -r requirements.txt
python3 process_speech.py --help
normal=$(tput sgr0)
green=$(tput setaf 2)
echo "Try: $green python3 process_speech.py --in-language de video tagesschau.mp4 $normal"
echo "You have to activate the virtual environment: $green source $HOME/$venv_name/bin/activate $normal"