-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·46 lines (30 loc) · 1.6 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev libatlas3-base portaudio19-dev
#install pyenv (used to get python 3.7, as required for coqui stt)
curl https://pyenv.run | bash
#add pyenv to path and enable it
# the sed invocation inserts the lines at the start of the file
# after any initial comment lines
sed -Ei -e '/^([^#]|$)/ {a \
export PYENV_ROOT="$HOME/.pyenv"
a \
export PATH="$PYENV_ROOT/bin:$PATH"
a \
' -e ':a' -e '$!{n;ba};}' ~/.profile
echo 'eval "$(pyenv init --path)"' >>~/.profile
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
exec $SHELL
pyenv update
pyenv install 3.7.13
pyenv global 3.7.13
#wget https://github.com/coqui-ai/STT/releases/download/v1.3.0/stt-1.3.0-cp37-cp37m-linux_aarch64.whl
#pip install stt-1.3.0-cp37-cp37m-linux_aarch64.whl
#adjust above as needed for architecture, above is 64 bit, 32 bit may be needed instead
wget https://github.com/coqui-ai/STT/releases/download/v1.3.0/stt-1.3.0-cp37-cp37m-linux_armv7l.whl
pip install stt-1.3.0-cp37-cp37m-linux_armv7l.whl
pip install -r requirements.txt
mkdir models
cd models
wget https://coqui.gateway.scarf.sh/english/coqui/v1.0.0-large-vocab/model.tflite
wget https://coqui.gateway.scarf.sh/english/coqui/v1.0.0-large-vocab/large_vocabulary.scorer
echo "configure twilio environment variables according to the instructions at https://www.twilio.com/docs/usage/secure-credentials before use. Or remove the -t option from start.sh to disable twilio integration"