There’s an example in the Sonos documentation for playing announcements. It uses three keys under the data key like this:
data:
media_content_id: >-
media-source://tts/cloud?message=You+have+a+visitor%21&language=en-AU&voice=NatashaNeural
media_content_type: provider
announce: true
extra:
volume: 20
metadata:
title: You have a visitor!
If you don’t want to play the TTS message as an announcement, then you would need to set the speaker’s volume, using media_player.volume_set action, before executing media_player.play_media.
Have been setting up a daily dose of dad jokes announcemnts in our house. All working good but for some reason when calling the TTS action the volume drops , so the joke is not very loud
Have tried setting speaks tk max volume before TTS : is there a config setting for TTS for sound I need to set as well?
YAML below : some elements are me testing the sound levels via different TTS…
—————-