Sonos TTS announcement

Hi!

We have a couple of Sonos Ones spread throughout our house. I would like to use them to output short TTS messages. I want them to play the announcements

  • synchronized on all Sonos speakers
  • using the “announcement” feature
  • increase the volume by 10 or 20 % of the current baseline
  • set certain language

I tried tts.speak:

action: tts.speak
data:
  cache: true
  message: Test
  media_player_entity_id: all
  language: de
target:
  entity_id: tts.google_translate_en_com

This works, but is not synchronized and does not let me increase the volume.

I also tried media_player.play_media as suggested by the Sonos documentation:

action: media_player.play_media
target:
  entity_id: media_player.arbeitszimmer
data:
  announce: true
  media_content_id: |
    media-source://tts/google_translate_en_com?message="I am very loud"
  media_content_type: music
  extra:
    volume: 80

This does not work (“Provider google_translate_en_com not found”).

Question: What is the best/recommended way to play synchronized announcements with increased volume simultaneously on all Sonos speakers?

Thx a lot!

Tom