Hello,
is there a way to set the volume for the echoes and play a specific Mp3 file?
The background is this: I would like to use the echoes as a (stupid) alarm system and play a siren or a beep. Before the sound is played, the volume should be high. After playback, the Echo should return to normal volume.
You can control volume using the standard Home Assistant media player service calls i.e media_player.volume_set when you have the Alexa Media Player (AMP) custom integration installed.
Playing a specific mp3 is a little more complicated. Similar to the answer concerning volume control, AMP enables using the media_player.play_media service for your Echo devices. However, Amazon limits direct streaming of local mp3 files.
With files that meet the specific requirements, it can be done using the notify.alexa_media service. @MarkWattTech did a video on this method a little over a year ago which includes a link to a conversion tool.
For files that are too long you can use skills/services like Plex, Emby, or Voice Monkey.
Thanks very much! I can now change the volume and got it. I didn’t realize that this command can also be found under “call service” in the graphical editor.
Unfortunately, I can’t solve the second problem without help either. I’m trying method 3 because it seems the easiest to me. Where do I write this code?
I’m glad you figured it out… I don’t know why, but some of the AMP documentation has the service calls shown as in that javascript-type format and some of it is in the standard yaml used in Home Assistant. Just in case you see it elsewhere in the future, you can configure the service call using the javascript format as follows: