Sonos + Google TTS: Fade in speech or play chime before speech

Hi,

I’m using Sonos with Google TTS via sonos_say script. It’s all working well but I’m wondering if it’s possible to fadein the speech or if a chime can be played before speech is played?

Thanks!
Joe

I don’t know about fading in, but you could play the chime first with a script:

script:
  play_chime_then_speak:
    sequence:
      - service: media_player.play_media
        data_template:
          entity_id:
            - media_player.YOUR_DEVICE
              media_content_id: "/PATH/TO/chime.mp3"
              media_content_type: audio/mp4
      - service: tts.google_say
         entity_id:
           - media_player.YOUR_DEVICE
             data_template:
               message: YOUR MESSAGE

or something similar (that was totally off the top of my head, I don’t have a working example!).

1 Like

Thank you! I’ll give this a try

1 Like