With the alexa_media component we can use the play sounds option to play different sounds that alexa supports. The wiki has an example using some sounds (https://github.com/custom-components/alexa_media_player/wiki#examples ) but i’d like to use one of the additional sounds that the link to https://developer.amazon.com/en-US/docs/alexa/custom-skills/ask-soundlibrary.html .
The examples they provide just use the name but that doesnt work for the sound i want to work. I’ve tried several different variations but cannot get the sound to work. The one i’d like to use is
soundbank://soundlibrary/alarms/chimes_and_bells/chimes_bells_09
I’ve tried putting in the full path, parts of the path and just the name and cant get it to work. Anyone know how to get other sounds to work?
3 Likes
KTibow
(Kendell R)
August 7, 2020, 1:39am
2
??? You forgot to paste the name in.
Have you tried multiple things like
fire_extinguisher_07
fire_extinguisher/fire_extinguisher_07
air/fire_extinguisher/fire_extinguisher_07
You can always use the ones under “Known available sounds”.
KTibow
(Kendell R)
August 7, 2020, 1:45am
4
You can download it, and then upload it to your HA server, and then play it from there. You can play other stuff from HA too right? You can try prefixing amazon_sfx
as well.
Bluehz
August 7, 2020, 3:05am
5
I was pulling my hair out on this the other day. Tried all those combos as above and never could get any from that huge sound lib to work. I figured maybe it was an Amazon device issue. Maybe my echo is too old.
I use the HA example and it works for me.
door_bell_alexa:
sequence:
- service: media_player.play_media
data:
entity_id: media_player.ai_1
media_content_type: sound
media_content_id: amzn_sfx_doorbell_chime_01
Can we provide our own sound? I have sampled a handful from amazon’s library, but haven’t found one I like.
KTibow
(Kendell R)
August 19, 2020, 1:34pm
7
I guess you could add it to your amazon music library…
mattlang
(Matthew Langridge)
December 18, 2020, 5:25pm
8
Did you ever resolve this? I have come across the same problem
Same issue over here, only a very small subset of sounds on their list works.
1 Like
Joerg
February 7, 2021, 9:27am
10
Seems it’s not working with the play_media service, but with notify and type TTS.
This works for me:
data:
data:
type: tts
message: >-
<audio
src="soundbank://soundlibrary/computers/fax_scanner_copy_machine/fax_scanner_copier_14"/>
service: notify.alexa_media_echo_office
6 Likes
kceleslie
(keith)
February 13, 2021, 4:17am
11
Thanks, that works for me as well
1 Like
tbarbette
(Tom Barbette)
December 6, 2022, 11:31am
12
It’s a bit overkill… Has anyone came up with a list of working sounds using play_media beyond amzn_sfx_doorbell_chime_01? It seems completly random…
EDIT: Found the list of known working one was hidden here :
jjdave2020
(Jjdave2020)
December 19, 2022, 7:26pm
13
Hi There
Just saw this conversation. Did you made it work? I am struggeling too at the moment. I only want to play some of the sounds as the door bell, but I am not able to get it run. It says no extra keays allowed.
Alexa itself does run properly. Thanks - JJ
Joerg
December 20, 2022, 8:09am
14
Here another example in an automation.
alias: Frontdoor motion detected
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.blink_front_motion_detected
to: "on"
condition: []
action:
- service: notify.alexa_media
data:
message: >-
<audio
src="soundbank://soundlibrary/animals/amzn_sfx_cat_angry_meow_1x_02"/>
data:
type: tts
target: media_player.echo_office2
mode: single
and with the known available sounds and with play_media
:
action:
- service: media_player.play_media
data:
media_content_id: amzn_sfx_doorbell_chime_02
media_content_type: sound
target:
entity_id: media_player.echo_office2
3 Likes
basechung2
(Basechung2)
August 31, 2023, 1:01pm
16
anyone figure out what is the name of the default notification sound of Alexa?
hesspoint
(Hannes)
September 3, 2024, 8:26pm
17
I tried with the code provided on the Alexa Media Player documentation
action: media_player.play_media
metadata: {}
data:
media_content_id: amzn_sfx_dog_med_bark_2x_03
media_content_type: sound
target:
entity_id: media_player.alexa1
It does not work and gives me that error message.
Have you setup anything in the config? I read somewhere that you need to specify the default path to the sound. My guess is that I need to give it the main directory from the amazon sound library.
If anyone has a tip how to do this I would be happy
You can use the notify
action and SSML as follows:
action: notify.alexa_media
data:
message: |
<audio src="soundbank://soundlibrary/animals/amzn_sfx_dog_med_bark_2x_03"/>
target: media_player.alexa1
hesspoint
(Hannes)
September 26, 2024, 9:20pm
19
In fact I got it working somewhat
I use
action: media_player.play_media
metadata: {}
data:
media_content_id: amzn_sfx_scifi_alarm_01
media_content_type: sound
target:
entity_id: media_player.alexa_office
and that works well. amzn_sfx_scifi_alarm_01 is one of the known sounds listed here Home · alandtse/alexa_media_player Wiki · GitHub
however I also tried to play the sound amzn_sfx_scifi_alarm_05 that can be found here Alexa Skills Kit Sound Library | Alexa Skills Kit and it does not work
It is literally just the number at the end changed from 01 to 05 and one works and the other ones doesn’t. I am pulling my hair out it is so frigging annoying. Why do the other sounds not work??
Hi there,
my Doorbell sound stopped working after the newest update from HA…is there something i have missed?
thats my Doorbell script:
alias: Türgong
sequence:
- data:
volume_level: 1
target:
device_id:
- 820dab4729d04d25943ea5bbb3e18fa4
action: media_player.volume_set
- target:
entity_id: media_player.wohnzimmer_echo
data:
media_content_id: amzn_sfx_doorbell_chime_02
media_content_type: sound
metadata: {}
action: media_player.play_media
mode: single
icon: mdi:bell
i haven’t changed anything since the latest HA update