Does anybody know if Google TTS is working on a Sonos device? When I use the same code for a Google Home it’s working, but when I change the entity to my Sonos Beam it doesn’t.
The only logging for my Sonos I see is: Changed to Paused triggered by service tts.google_translate_say
The logging for my Google Home device is as following:
Changed to Idle triggered by service tts.google_translate_say
Changed to Playing triggered by service tts.google_translate_say
Changed to Idle triggered by service tts.google_translate_say
My simple configuration to test:
service: tts.google_translate_say
data:
entity_id: media_player.living_room
language: en
message: "This is a test"
I just tried it and it works using Sonos One. I don’t have a Beam to test but I would be surprised if the Sonos speaker model is the cause of the problem.
Played the following using Developer Tools > Services.
service: tts.google_translate_say
data:
entity_id: media_player.living_room
message: This is a test.
language: en
Unfortunately it’s still not working using Developer Tools. Very strange because I also think the model shouldn’t matter. I can play my mp3 doorbell sound on it, but TTS doesn’t.
Already deleted and reinstalled the integration, but no luck. Maybe I should try a factory reset on my Beam…
Confirm you can control the Beam from Home Assistant by making it play one of your Sonos Favorites. If that works, confirm you can play a local music file to the Beam. The goal here is to determine how much does/doesn’t work.
FWIW, I just tried that as well and it worked with Google TTS (and IBM Watson TTS).
Given that I can’t replicate the failure you’re experiencing, I can’t perform experiments to identify a cause. You can post it as an Issue in the GitHub Core repository (explaining the many ways it does work, except for Google TTS) and hope the author of the Sonos integration knows the reason.
Glad to hear it wasn’t caused by the Sonos integration.
I don’t see base_url mentioned in the documentation for Google TTS (nor in the general reference for TTS). Is that a deprecated option that was left behind in your configuration?