-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_rhasspy.sh
executable file
·37 lines (36 loc) · 1.33 KB
/
install_rhasspy.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
#!/bin/bash
#to run this script go into the folder where it is then run: ./install_rhasspy.sh
#
set -eu
##
echo "maybe better try voice2json"
exit
#based on https://rhasspy.readthedocs.io/en/latest/installation/
cd /tmp
#wget https://github.com/synesthesiam/rhasspy/releases/download/v2.4/rhasspy-server_2.4.10_amd64.deb
#sudo dpkg -i rhasspy-server_2.4.10_amd64.deb
#wget https://github.com/rhasspy/rhasspy/releases/download/v2.5.1/rhasspy_2.5_amd64.deb
wget -q --show-progress https://github.com$(wget -q https://github.com/rhasspy/rhasspy/releases/latest -O - | egrep '/.*/.*/rhasspy_[0-9,_.]{1,20}_amd64.deb' -o | head -1)
sudo dpkg -i rhasspy_*_amd64.deb
sudo apt-get install -f -y
sudo rhasspy --profile en
#sudo apt-get purge rhasspy
#curl -sSL https://get.docker.com | sh
#or install by your docker install script..
#sudo usermod -a -G docker $USER
#reboot image
#sudo reboot
#sudo docker pull rhasspy/rhasspy
#start rhasspy docker image
#docker run -d -p 12101:12101 \
# --restart unless-stopped \
# -v "$HOME/.config/rhasspy/profiles:/profiles" \
# --device /dev/snd:/dev/snd \
# synesthesiam/rhasspy-server:latest \
# --user-profiles /profiles \
# --profile en
#
echo "now open webinterface http://localhost:12101 or: 192.168.xx.xx:12101"
#sudo docker ps -a
#sudo docker stop 7cd0940657b2
#sudo docker start 7cd0940657b2