TTS using built in RPi3 analogue audio output with Hassio?

Okay, I’ve got the answer!

I’ve consolidated these instructions based on my needs, to get generated tts audio out of the local raspberry pi 3 audio output using hass.io. Many thanks to this thread, and specifically @richardgewy.

Instructions

  1. Install the “modipy” addon using the /hassio/store Add-On Repositories section, this might take a bit, be patient
  2. Start the service
  3. Add the configuration below to your configuration.yaml file and SAVE
# Mopidy addon for hass.io
media_player:
  platform: mpd
  host: YOUR.HOST.IP
  1. Restart your server
  2. Now you can use media_player.mpd as the entity_id to send tts audio to, I use google text to speech (tts)
  3. To test, you can go to your hassio Services (looks like a remote icon)

Domain:

tts

Service:

google_say

Service Data:

{
"entity_id":"media_player.mpd",
"message":"Hello Brian, how are you today?"
}

Then click Call Service and you should hear tts generated audio output to your RPi3’s audio output jack!

I hope this helps someone!

20 Likes