-
Notifications
You must be signed in to change notification settings - Fork 2
/
start.sh
executable file
·134 lines (104 loc) · 2.54 KB
/
start.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
echo '** System Starting ... **'
echo 'Note - you may see some warnings here, dont worry about them'
cat install/mmconfig.yml | grep -v "AWS" | grep -v "Goog"
echo ' '
echo 'Start Local STT Server'
deactivate
cd framework/services/stt/local/CoquiSTT
source venv_coqui/bin/activate
python server.py --model-dir ds_model > coqui_stt.log 2>&1 &
deactivate
cd ../../../../..
echo 'Start Local TTS Server'
cd framework/services/tts/local/mimic3
deactivate
source .venv/bin/activate
bin/mimic3 --model-dir voices/apope > mimic3_tts.log 2>&1 &
deactivate
cd ../../../../..
source venv_ngv/bin/activate
export PYTHONPATH=`pwd`
export SVA_BASE_DIR=`pwd`
export GOOGLE_APPLICATION_CREDENTIALS=$PWD/install/my-google-speech-key.json
rm tmp/save_audio/*
rm tmp/save_text/*
rm tmp/save_tts/*
echo ' '
echo 'Starting Voice Framework'
echo ' '
echo 'Start Message Bus'
cd bus
python MsgBus.py &
cd ..
sleep 2
echo 'Start System Skill'
cd skills/system_skills
python skill_system.py &
sleep 1
cd ../../
echo 'Start Services'
echo ' '
echo 'Intent Service'
python framework/services/intent/intent.py &
sleep 2
echo ' '
echo 'Media Service'
python framework/services/output/media_player.py &
python framework/services/tts/tts.py &
python framework/services/stt/stt.py &
sleep 1
echo ' '
echo 'Start System Skills'
#cd ../../skills/system_skills
python skills/system_skills/skill_fallback.py &
python skills/system_skills/skill_media.py &
python skills/system_skills/skill_volume.py &
python skills/system_skills/skill_alarm.py &
sleep 2
echo ' '
echo 'Start User Skills'
cd skills/user_skills
# TODO automate this
cd help
echo 'Load Help Skill'
python __init__.py $PWD &
echo 'Loading RFM skill!'
cd ../rfm
python __init__.py $PWD &
echo 'Warning! NOT loading youtube music skill!'
#cd ../youtube
#python __init__.py $PWD &
echo 'Load Email Skill'
cd ../email
python __init__.py $PWD &
echo 'Load Wiki Skill'
cd ../wiki
python __init__.py $PWD &
echo 'Load TimeDate Skill'
cd ../timedate
python __init__.py $PWD &
echo 'Load Example 1 Skill'
cd ../example1
python __init__.py $PWD &
echo 'Load NPR News Skill'
cd ../npr_news
python __init__.py $PWD &
echo 'Load Weather Skill'
cd ../weather
python __init__.py $PWD &
echo 'Warning! NOT loading Home Assistant skill!'
#cd ../ha_skill
#python __init__.py $PWD &
echo 'Load Connectivity Skill'
cd ../connectivity
python __init__.py $PWD &
cd ../../..
echo ' '
echo 'Wait Skills Init'
echo ' '
sleep 3
echo 'Finally, start the mic'
source venv_ngv/bin/activate
python framework/services/input/mic.py &
echo ' '
echo '** System Started **'