Rhasspy Assistant Tips n Tricks

Some unofficial doc and tools for Rhasspy Assistant.

Rhasspy Assistant


Common commands
3rdparty installations
Custom tools


Rhasspy is an open source, fully offline voice assistant toolkit.

After Sonos literally killed Snips, a lot of users switched to Rhasspy, which get actively developed and enhanced into an amazing fully customizable offline assistant.

Once installed and setup, you can define all intents, slots and interact everyday with it, without any Internet connection. All settings and intents/slots definition are available through Rhasspy own on Pi interface. Welcome private life!

The official documentation is rather complete and enough to set it up and running so I won't rewrite it, but focus on tips and add-on tools.

Before going further, you should ever know these:

Rhasspy also have its own plugin for Jeedom smart-home solution

Common commands

A few common used ssh commands.

Startup commands

You can set commands run at Raspberry startup. Just edit /etc/rc.local file and add some commands. sudo nano /etc/rc.local

# Set alsa volume
sleep 30
amixer -c 0 set Playback 88%
# Turn off wifi standby on pi0
sudo iwconfig wlan0 power off

You can debug the execution of rc.local like this: journalctl -u rc-local

3rdparty installations

Some 3rdparty tools that your Rhasspy setup may need.


If you have a ReSpeaker 2-Mics Pi HAT or such, install its drivers:

sudo nano /boot/config.txt

Turn dtparam=audio parameter to off: dtparam=audio=off

Then install seeed drivers:
sudo apt-get install git
git clone https://github.com/respeaker/seeed-voicecard
cd seeed-voicecard
sudo ./install.sh
sudo reboot

seed wiki


Rpi 4 Buster:
wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico0_1.0+git20130326-9_armhf.deb
wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico-utils_1.0+git20130326-9_armhf.deb
sudo apt-get install -f ./libttspico0_1.0+git20130326-9_armhf.deb ./libttspico-utils_1.0+git20130326-9_armhf.deb
Rpi 0 buster:
wget http://archive.raspberrypi.org/debian/pool/main/s/svox/libttspico-utils_1.0+git20130326-3+rpi1_armhf.deb
wget http://archive.raspberrypi.org/debian/pool/main/s/svox/libttspico0_1.0+git20130326-3+rpi1_armhf.deb
sudo apt-get install -f ./libttspico0_1.0+git20130326-3+rpi1_armhf.deb ./libttspico-utils_1.0+git20130326-3+rpi1_armhf.deb
pico2wave -l fr-FR -w test.wav "Bonjour Rhasspy"
aplay test.wav


sudo apt install -y mosquitto mosquitto-clients
sudo systemctl enable mosquitto.service


Kaldi is a lot better at speech recognition than pocketspinx. But it comes by default with an heavy language model which make it slower.
You can install lighter models from here (get the TDNN-250):
Models: zamia-speech ASR models
French models: zamia-speech releases

Replace these files in {profile_dir}/kaldi/model/model folder and retrain Rhasspy!



rhasspy can run as a Docker container, which is extremely simple to run without setup!

curl -sSL https://get.docker.com | sh
sudo usermod -a -G docker $USER
docker run -d -p 12101:12101 \
      --name rhasspy-server \
      --restart unless-stopped \
      -v "$HOME/.config/rhasspy/profiles:/profiles" \
      --device /dev/snd:/dev/snd \
      synesthesiam/rhasspy-server:latest \
      --user-profiles /profiles \
      --profile fr

Virtual environement as a service

If you start rhasspy as venv with an ssh command, it won't live forever, which is what we need for an assistant.

So you have to setup the venv as a service, and activate the service at startup. So you can unplug the pi, plug it and had rhasspy running without any manipulation.

Create the systemd service file:

sudo nano /etc/systemd/system/rhasspy.service

Edit this file with your settings, like --profile manguage, --host IP and --user-profiles path. Then paste in /etc/systemd/system/rhasspy.service file.

rhasspy.service file
After=syslog.target network.target

ExecStart=/bin/bash -lc './run-venv.sh --profile fr --host --user-profiles /home/pi/.config/rhasspy/profiles'





Then simply run these to set, enable, then start the service:

sudo systemctl daemon-reload
sudo systemctl enable rhasspy
sudo systemctl start rhasspy

If you need to debug it:

journalctl -u rhasspy.service

Custom tools