Good day everyone.
I’m brand new to home assistant, but fairly technically minded. Having fun so far!
I’m trying to get a TTS service running on my Sonos.
- I have two sonos connected. Both Sonos One. Both running S2 firmware.
- They were automatically detected by HA:
entity_id: media_player.kitchen
entity_id: media_player.dining_room - I can play/pause/change tracks from the HA dashboard
First I tried this one, which I found in the forums:
service: media_player.play_media
data:
media_content_id: media-source://tts/google_translate?message="I am very loud"
media_content_type: music
announce: true
extra:
volume: 80
target:
entity_id: media_player.kitchen
When I run the “Then do”, I get this error: Provider google_translate not found
Second, I tried to build the automation from scratch in the UI, which resulted in:
service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_id: >-
media-source://tts/tts.google_en_com?message=Hello+Homey%2C+you+can+play+any+text+on+any+supported+media+player%21&language=en-ca
media_content_type: provider
metadata:
title: Hello Homey, you can play any text on any supported media player!
thumbnail: https://brands.home-assistant.io/_/tts/logo.png
media_class: app
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: >-
media-source://tts/tts.google_en_com?message=Hello+Homey%2C+you+can+play+any+text+on+any+supported+media+player%21&language=en-ca
This one says “Action successfully run”, but nothing comes out of the Sonos.
Could someone please help me in getting a TTS working over Sonos?
Thanks in advance!