4.3 KiB
Executable File
Installation
Rhasspy should run in a variety of software environments, including:
- Within a Docker container
- As a Hass.IO add-on
- Inside a Python virtual environment
Docker
The easiest way to try Rhasspy is with Docker. To get started, make sure you have Docker installed:
curl -sSL https://get.docker.com | sh
and that your user is part of the docker group:
sudo usermod -a -G docker $USER
Be sure to reboot after adding yourself to the docker group!
Next, start the Rhasspy Docker image in the background:
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
This will start Rhasspy with the English profile (en) in the background (-d) on port 12101 (-p) and give Rhasspy access to your microphone (--device). Any changes you make to your profile will be saved to ~/.config/rhasspy.
Once it starts, Rhasspy's web interface should be accessible at http://localhost:12101. If something went wrong, trying running docker with -it instead of -d to see the output.
If you're using docker compose, add the following to your docker-compose.yml file:
rhasspy:
image: "synesthesiam/rhasspy-server:latest"
restart: unless-stopped
volumes:
- "$HOME/.config/rhasspy/profiles:/profiles"
ports:
- "12101:12101"
devices:
- "/dev/snd:/dev/snd"
command: --user-profiles /profiles --profile en
Hass.IO
The second easiest was to install Rhasspy is as a Hass.IO add-on. Following the installation instructions for Hass.IO before proceeding.
To install the add-on, add my Hass.IO Add-On Repository in the Add-On Store, refresh, then install the "Rhasspy Assistant" under “Synesthesiam Hass.IO Add-Ons” (all the way at the bottom of the Add-On Store screen).
NOTE: Beware that on a Raspberry Pi 3, the add-on can take 10-15 minutes to build and around 1-2 minutes to start.
Watch the system log for a message like Build 8e35c251/armhf-addon-rhasspy:2.11 done. If the “Open Web UI” link on the add-on page doesn’t work, please check the log for errors, wait a minute, and try again.
Before starting the add-on, make sure to give it access to your microphone and speakers:
Virtual Environment
Rhasspy can be installed into a Python virtual environment, though there are a number of requirements. This may be desirable, however, if you have trouble getting Rhasspy to access your microphone from within a Docker container. To start, clone the repo somewhere:
git clone https://github.com/synesthesiam/rhasspy.git
Then run the download-dependencies.sh and create-venv.sh scripts (assumes a Debian distribution):
cd rhasspy/
./download-dependencies.sh
./create-venv.sh
Once the installation finishes (5-10 minutes on a Raspberry Pi 3), you can use the run-venv.sh script to start Rhasspy:
./run-venv.sh --profile en
If all is well, the web interface will be available at http://localhost:12101
Software Requirements
At its core, Rhasspy requires:
- Linux
- Python 3.6
- Flask web server, including
- flask-swagger-ui for HTTP API documentation
- Flask-Cors for CORS stuff
- Flask-Sockets for websocket support
- pydash utility library
To actually use any components, however, requires a lot of extra software.

