-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.sh
More file actions
executable file
·33 lines (31 loc) · 862 Bytes
/
commands.sh
File metadata and controls
executable file
·33 lines (31 loc) · 862 Bytes
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
#!/bin/bash
# ./commands.sh
# source commands.sh
# Run with argument 'true' to install non-python dependencies
function setup_pandakids() {
local non_python_install="${1:false}"
if [ "$non_python_install" == "true" ]; then
sudo apt-get install python3-dev
sudo apt-get install espeak
fi
pip3 install -U Flask
pip3 install redislite
pip3 install flask-socketio
pip3 install PyAudio
pip3 install pocketsphinx
pip3 install SpeechRecognition
pip3 install pyttsx3
pip3 install gevent
pip3 install gevent-websocket
export PYTHONPATH=`pwd`:$PYTHONPATH
}
function run_pandakids() {
export FLASK_APP=ui_setup.py
export FLASK_DEBUG=1
python3 logic/channel_logic.py &
sleep 2
python3 speech_recog/recognition.py &
sleep 2
python3 ui/ui_setup.py
killall -9 redis-server
}