Yes i realize that, he could basically do anything with the " to Stop " ... light a red bulp, start a siren, play a tune
And yes i have no experience with Alexa, or playing anything from within HA over the cloud
Edit: well not true i have a "cute" sound for notifications on my phone,no wait that's on my phone
Would it be easier to put the mp3 in One Drive and make it available to anyone with a link?
I've never done that, so I have no idea if it would be easier or even work. Try it.
Hold up....
You don't use a media_player entity for notify.send_message.... you need a notify entity. Based on the media player, it's probably notify.den_echo_show_speak.
Though that doesn't explain the file not being accessible through a browser.
Maybe because he used the external nabu-url, in his local network
No, using the nabu address should be fine.... that's how all mine work.
ok, haven't got a nabu connection yet, so that im also not familiar with , plan was eventually get one for my Green ... eventually can mean years before i get it running as intended ![]()
I don’t know if you’ve had any luck getting your audio file to play, but I’ve been playing with some different things for automations lately, and I wanted to share my experience in case it may help with your journey.
- First, I had to convert the audio file(s) to the specs listed here: Alexa SSML Audio Tag. To accomplish this, I used Audacity to export the audio file(s), but you can also utilize the FFmpeg command-line tool.
- I uploaded the converted file(s) via File editor into a subfolder within the ‘www’ folder (Ex. /homeassistant/www/custom_sounds). Once the file(s) were in place, I modified the automation(s) to include the audio files I wanted played. Below is an example of an action that I have setup for reference.
action: notify.send_message
metadata: {}
target:
entity_id: notify.office_echo_dot_speak
data:
message: |
<speak>
<audio src="https://XXXXXXXXXX.XXXXXXXX.com/local/custom_sounds/Star_Wars/imperial-alert.mp3"/> Alright Boys, its go time! Get ready to head out the door. Grab your bag, your water bottle, and anything else you need. Who's gonna have an awesome day <break time='2s'/> You are! <audio src="https://XXXXXXXXXX.XXXXXXXX.com/local/custom_sounds/Transformers/Autobots_Transform_RollOut.mp3"/>
</speak>
I currently do not utilize Nabu Casa, but I do have my Home Assistant instance configured with a LetsEncrypt cert to provide the trusted SSL certificate. Hope this helps!
