My three examples mentioned above do not appear in that Amazon-list. Are they of a different type?
I’m not 100% sure yet on the usage of the items in that Amazon-list. The example mentions in the article (soundbank://soundlibrary/animals/amzn_sfx_bear_groan_roar_01), dows not work if being used like this in openHAB…
I now figured out the syntax to play sounds. What’s important:
In order to use one of the three continuous alarms (system_alerts_repetitive01, system_alerts_atonal_02, system_alerts_soothing_01) they have to be sent to .playAlarmSound Example: events.sendCommand("Echo_Bad_AlarmSound", "system_alerts_atonal_02");
In order to use the sounds listed here Alexa Skills Kit Sound Library | Alexa Skills Kit they have to be sent to to .textToSpeech in the following syntax. Example: events.sendCommand("Echo_Bad_Speak", '<speak>Alarm! <audio src="soundbank://soundlibrary/scifi/amzn_sfx_scifi_alarm_06"/></speak>');
The only thing I have not yet managed to get done: Playing an alarm without the need to say a word upfront. In my case, just sending a sound without a word upfront results in not playing anything at all.
Sorry for resurrecting an old thread, but I’ve been trying to get Echo to play a soundbank sound without spoken text. Thought I’d add this as it seems to work for me:
I just tried out your solution, both “…” (as three dots) as well as “…” (the single ASCII character), and all of them are spoken out by Alexa in one senseful way or another. Maybe it’s because I’m using the German Alexa.
So for now I’ll stick to adding “Alarm!” as a word upfront and then play the sound. This also somehow makes sense in my use case.