-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL.sh
executable file
·67 lines (59 loc) · 1.92 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#Get architecture
ARCH=`uname -m`
if [ "$ARCH" == "armv6l" ] ; then
DIR=""
elif [ "$ARCH" == "x86" ] ; then
DIR="x86/"
elif [ "$ARCH" == "x86_64" ] ; then
DIR="x64/"
fi
function python_dependencies() {
echo "##### Installing python modules ############################"
echo "----- Installing SpeechRecognition ----------------------------"
#if [ $(pip freeze | grep SpeechRecognition )
pip install SpeechRecognition
echo "----- Installing gTTS ----------------------------"
pip install gTTS
echo "----- Installing scikit ----------------------------"
pip install numpy
pip install scipy
pip install -U scikit-learn
}
function shell_dependencies() {
if [ $(dpkg-query -W -f='${Status}' sox 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "----- Installing Sox ------------------------------------------"
sudo apt-get install sox
else
echo "----- sox already installed - skipping ------------------------"
fi
}
echo "---------------------------------"
echo "Installing dependencies for RAHMS"
echo "---------------------------------"
echo "Would you like to run the full install of RAHMS (y/n)"
read option
if [ $option == "y" ] || [ $option == "Y" ] ;
then
python_dependencies;
shell_dependencies;
else
echo "Install python dependencies? These are needed for many of RAHMS applications!"
read option
if [ $option == "y" ] || [ $option == "Y" ] ; then
python_dependencies
fi
echo "Install shell dependencies?"
read option
if [ $option == "y" ] || [ $option == "Y" ] ; then
shell_dependencies
fi
fi
function python_dependencies() {
echo "##### Installing python modules ############################"
echo "----- Installing SpeechRecognition ----------------------------"
pip install SpeechRecognition
echo "----- Installing gTTS ----------------------------"
pip install gTTS
}