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.
I’m playing around with an Echo Dot and everything works fine, except for TTS and Announcements. I already changed the TTS volume to 100. Alarms work fine, so do reminders.
The log looks fine to me but there is no speech output:
2022-07-24 14:34:58.251 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Echo_Living_Room_TTS' received command Hellolololo
2022-07-24 14:34:58.254 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Echo_Living_Room_TTS' predicted to become Hellolololo
2022-07-24 14:34:58.264 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Echo_Living_Room_TTS' changed from to Hellolololo
2022-07-24 14:34:59.437 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Echo_Living_Room_TTS' changed from Hellolololo to
Selection item=Echo_Living_Room_PlayAlarmSound mappings=[ ''='None', 'ECHO:system_alerts_melodic_01'='Adrift', 'ECHO:system_alerts_melodic_02'='Clangy']
Selection item=Echo_Living_Room_TTS mappings=[ ''='None', 'Hallo'='Adrift', '<speak>I want to tell you a secret.<amazon:effect name="whispered">I am not a real human.</amazon:effect>.Can you believe it?</speak>'='Clangy']
Selection item=Echo_Living_Room_Announcement mappings=[ ''='None', 'Hallo'='Adrift', '{"sound": false, "title": "Doorstep", "body": "Door opened"}'='Clangy']
Selection item=Echo_Living_Room_Remind mappings=[ ''='None', 'Hallo'='Adrift', '<speak>I want to tell you a secret.<amazon:effect name="whispered">I am not a real human.</amazon:effect>.Can you believe it?</speak>'='Clangy']
Default item=Echo_Living_Room_TTS_Volume