Help with TTS.google_say and google home

Hi there!

I’m playing around with HAss installed on a cubieboard (os cubian) and my google home.

the google home is found and shown in the state panel and recognise with this entityid:
media_player.livingroom

when trying the tts service from the “services” developper tool it doesn’t play the message on google home.

If I go in state page and turn off the home device, I can hear it turn on when calling the service (I can hear a kind of “blip” sound) so the google home is recognized. Its state switched to “on” after the call.
The message sound file is generated and saved in the cache folder so the tts is working.

I probably miss something to make the sound being played on the home device.
Do you have any clue for me?

In the developper tool I use this config:

domain: tts
service: google_say
data: { “message”: “Bonjour”,
“entity_id”: “media_player.livingroom”,
“language”:“fr”}

in configuration.yaml:

# Text to speech
tts:
  - platform: google
    language: 'fr'
    cache_dir: /tmp/tts

Hey,

I’m facing the same problem… did you ever solve this?

EDIT: Never mind, it was the baseurl.

Unfortunatly I didn’t solve it yet.

What do you mean “it was the baseurl” ?

What he means is that you have to add the base_url option in the http component if you use https.
The reason is, that TTS is actually telling the device it should connect to your HASS installation and play a published audio file. Without SSL this works with any address HASS is listening on. With SSL however the certificate verification fails when not using the correct hostname.

Edit: Well, I don’t know if it’s actually the certificate verification that is the problem. In my case it’s the reverse proxy that requires additional credentials, and therefore returns forbidden errors. Anyways, the main point is that your Google Home needs a working URL it can connect to.

Thanks for those details, I’ll have a look.

It Worked! thank you again :slight_smile:

added config to make it work:

http:
base_url: my.domain.com:8123

1 Like

I’m trying the same now and the same issue also SSL cert. do you add the base url with “base_url: https:my.domain.com:8123”

Yes, I have it this way, and was the only way to make TTS work!

“base_url: https://my.domain.com"
I am not forwarding my port though, I am using NGINX on a firewall.

Thx
I’m having a hard time getting it to work. i am port fwding but gust getting the beep from my google home no speech

I Had the same problem after enable secure connection,
for me ,router port forwarding solve the problem and everything work fine again:
port 443 to port 8123