Skip to content

Simple shell script to use Azure (MS's Text-to-speech REST API) in Rhasspy

License

Notifications You must be signed in to change notification settings

Nortonko/rhasspy-MSAzure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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/
  • Create resource -> Speech
  • Choose subscription and resource group
  • Use the closest region
  • You can change the service name
  • Choose pricing tier to Free F0
  • Keep the defaults otherwise

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
Installation Cache 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:
Installation Say program path
Docker /profiles/en/rhasspy_azure_says.sh
Non-docker /home/${USER}/.config/rhasspy/profiles/en/rhasspy_azure_says.sh

About

Simple shell script to use Azure (MS's Text-to-speech REST API) in Rhasspy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages