Adding a sound effect before an Alexa_media tts announcement

I have a working Automation that “says” Drive movement detected whenever a PIR is activated, and it works well.

But I would like to add a sound, such as <"amzn_sfx_trumpet_bugle_03"/>
to be played immediately before the words. But I can’t work out what the syntax would be.

Any assistance would be hugely appreciated. TIA

alias: NOTIFICATION - Gate PIR activated
description: ""
trigger:
  - platform: state
    entity_id:
      - switch.gate_pir
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: 2
condition: []
action:
  - service: notify.alexa_media_dot
    data:
      message: Drive movement detected
      data:
        type: tts
mode: single

Why don’t you just called the media_player service just before the notify.

service: media_player.play_media
target:
  entity_id: media_player.example_s_echo_dot
data:
  media_content_type: sound
  media_content_id: amzn_sfx_rooster_crow_01

Many thanks @randomsnack

I tried the following, but whilst the tts message is spoken, the preceding “sound” doesn’t.

alias: NOTIFICATION - Gate PIR activated
description: ""
trigger:
  - platform: state
    entity_id:
      - switch.gate_pir
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: 2
condition: []
action:
  - service: media_player.play_media
    target:
      entity_id: media_player.alexa_media_xyz_dot
    data:
      media_content_type: sound
      media_content_id: amzn_sfx_trumpet_bugle_03
  - service: notify.alexa_media_xyz_dot
    data:
      message: Drive movement detected
      data:
        type: tts
mode: single

Not all sound work, Home · custom-components/alexa_media_player Wiki · GitHub. “amzn_sfx_trumpet_bugle_04” is available

Misc

    air_horn: “air_horn_03”
    boing1: “boing_01”
    boing2: “boing_03”
    camera: “camera_01”
    squeaky_door: “squeaky_12”
    ticking_clock: “clock_01”
    trumpet: “amzn_sfx_trumpet_bugle_04”
1 Like

Once again, many thanks. I have sorted it now - changing the bugle sound to #04, and also removing the word ‘alexa’ from this line did the trick

      entity_id: media_player.alexa_media_xyz_dot