Tinkerpop
(Praveen Madhavan)
January 14, 2022, 10:41pm
1
I’ve setup Google Cloud Say in my configuration.yaml by following Google Cloud Platform - Home Assistant
Here is my tts config:
tts:
- platform: google_cloud
key_file: googlecloud.json
voice: en-US-Wavenet-G
encoding: linear16
speed: 0.9
pitch: -2.5
gain: -5.0
While trying to call this from one of my automations, I hear my Google Nest Mini play a sound that we hear before casting any audio. But nothing after that. It’s completely silent.
Here is how I’m trying to call Google Cloud say service.
- service: tts.google_cloud_say
data:
entity_id: media_player.master_bedroom_speaker
message: "The Alarm has been triggered."
Any insights are truly appreciated!
Hellis81
(Hellis81)
January 14, 2022, 10:58pm
2
Do you have any errors in the logs?
Tinkerpop
(Praveen Madhavan)
January 15, 2022, 2:42am
3
Yes. Thank you for pointing the logs out. This is what it says.
Failed to cast media https://homeassistant.local:8123/api/tts_proxy/ ? from internal_url (https://homeassistant.local:8123 ).
Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
I modified my configuration.yaml to the following. Added the base_url with public facing dns and it worked.
tts:
- platform: google_cloud
key_file: googlecloud.json
voice: en-US-Wavenet-G
base_url: https://public_facing_dns:8123
encoding: linear16
speed: 0.9
pitch: -2.5
gain: -5.0
Thank you very much! Checking the logs didn’t seem obvious to my at that time.