Amazon Echo as "pure" speaker under OH 4.3.5

I have some rules which sends me WhatsApps and/or mails, when there is a leakage noticed by a Shelly flood sensor. Addtional I have created a rule which switch on/off the HUE Lamps as an optical notification.
Idea is now also to add a Amazon Echo speaker als an voice output device under OH 4.3.5

I have installed the Amazon Echo binding.
What else I need to get the Amazon Echo speaker as an OH voice output device to play a OH based MP3 File.

I do NOT what to use the speaker as an voice recordnize system and manage the OH things with it.

What addtional stuff I need here?

As far as I know you can’t play mp3 files on an Alexa speaker.

But you can send any text string to the textToSpeech channel:

String Echo_Living_Room_TTS "Text to Speech" (Alexa_Living_Room) {channel="amazonechocontrol:echo:account1:echo1:textToSpeech"}

Echo_Living_Room_TTS.sendCommand("Hello World")

Edit: you may find additional information here:

1 Like

and you can play different alarm sounds when you send a certain string to an alarm sound item that’s connected to the alarm sound channel like e.g. “ECHO:system_alerts_repetitive01”

here’s a list (which I have not completely tested):

List of sounds
system_alerts_melodic_01	Soft melodic tone
system_alerts_melodic_02	Another melodic tone
system_alerts_melodic_03	Melodic tone 3
system_alerts_repetitive_01	Repetitive beep tone
system_alerts_repetitive_02	Repetitive tone 2
system_alerts_repetitive_03	More urgent repetitive tone
system_alerts_short_chime_01	Short chime
system_alerts_short_chime_02	Slightly different chime
system_alerts_tempo_01	Rhythmic alert
system_alerts_tempo_02	Faster tempo
system_alerts_tempo_03	Fastest tempo
amzn_sfx_bell_med_chime_01	Medium bell chime
amzn_sfx_doorbell_chime_01	Doorbell sound
amzn_sfx_phone_call_beep_01	Phone call-style beep
amzn_sfx_alarm_clock_beep_01	Alarm clock tone
amzn_sfx_electronic_beep_01	Electronic beep

Thanks, but how to add the new item Echo which all his channels as a sink?
I can only use System Speaker and Web Audio.

The Echo is here with all his channels.

You can’t.
Just use an itemtype String and connect it to the textToSpeech Channel.
Then send either text/string commands or use the soundbank @Larsen mentioned:
Echo_Living_Room_TTS.sendCommand('<speak> This is Alexas regular speech, followed by the sound effect named Bear Groan Roar (1)<audio src="soundbank://soundlibrary/animals/amzn_sfx_bear_groan_roar_01"/></speak>')

I’m to stupid for that.
There was a channel created with a string.

I have created a rule which send the command “Hello” to this channel, but nothing happens.

In the logfile to command is received.

But no hello comes from the speaker…
What I’m doing wrong?

When, e.g. I click on the Play button from the

The echo ask me, which playlist to play…
So in priciple the Echo is connect to my OH system…

Sorry, can’t help, I am not using the MainUI. All text based config …

Thanks for your help.
meanwhile it works for me.
First I have had to adjust the Binding for the Amazon Konto.

Then I took the right tts channel called „Sprich“

And final created the blockly rule, which the loop and the Text which need to be given out by the Echo.

Trigger is, when the Shelly flood becomes the signal that there is water.

The final look like now, that

  • I get a mail that the watersensor is active
  • I and the rest of the family gets a whatsapp that water is in the baseband
  • The Phlipps Hue lights start red blinking in the floor
  • And final now the Amazon Echo is giving me a 20 x Text Notifications.

PS: I have had same help from ChatGPT to do that…. :slight_smile:

1 Like