Home

Awesome

rhasspy-Azure

Simple shell script to use Azure Speech service (MS's cloud TTS service) in Rhasspy

Based on the jarvis_says.sh script from tschmidty69's Home Assistant config (his was for Snips and used Amazon Polly TTS) with help from this thread on the Rhasspy forums and also inspired by rhasspy-IBMWatson

Runs only on Rhasspy 2.5.11 or later

Preparation

  1. Create an account on Azure and register for the Azure free account here: https://azure.microsoft.com/en-us/free/

The free plan includes 0.5M characters/month which is plenty for personal home use.

  1. In your dashboard find your service
  2. Note your APIKEY and URL

Manual Installation

  1. Copy the rhasspy_azure_says.sh file inside your rhasspy profile folder (rhasspy/profiles/en/)
  2. Update the apikey, url, voice and cache variables
InstallationCache path
Docker/profiles/en/tts/cache/
Non-docker/home/${USER}/.config/rhasspy/profiles/en/tts/cache/
  1. Make the script executable: chmod a+x /home/${USER}/.config/rhasspy/profiles/en/rhasspy_azure_says.sh (you might have to run with sudo)
  2. Update the Rhasspy TTS settings to Local Command and set Say Program to:
InstallationSay program path
Docker/profiles/en/rhasspy_azure_says.sh
Non-docker/home/${USER}/.config/rhasspy/profiles/en/rhasspy_azure_says.sh