OH3 Echo Dot Play External MP3

Hi,
Still playing with Echo Dot integration and was hoping to be able to play my own MP3 files, but looks like only files internal to the Echo Dot/AWS can be played.
Is that correct?

Does NOT work:
BackRoomEchoDot_Speak.sendCommand('<speak><audio src="https://openhab.ext.domain:1999/webres/mp3/test.mp3" /></speak>')

DOES work:
BackRoomEchoDot_Speak.sendCommand('<speak><audio src="soundbank://soundlibrary/home/amzn_sfx_doorbell_chime_01" />There\'s someone at the door.</speak>')

Can anyone confirm/deny this?

Tanks,
Richie

correct, as far as I know it is not possible to play other sounds than the soundbank sounds in TTS/speak commands.

I thought that might be the answer.
Oh well, I can’t use my “funny” MP3s :frowning:

Thanks,
Richie

Hi,
Ok, so I’ve made some progress and you CAN play external MP3 files, but there are a few caveats:

  1. the file must be formatted as per Amazon’s details (MP3, 16K sample, 48Kb Bit Rate, Constant Bit Rate
  2. The file must be externally accessible on HTTPS (port 443 only) - my tests with https:domain.com:1999/folder/file.mp3 failed
  3. You can’t have JUST the sound, you have to also include some speech text (this is a bit of a pain, so you can’t have just your mp3)

Thanks,
Richie

Hi,
Ok, slight fudge, but I have got it to work using the following:
BackRoomEchoDot_Speak.sendCommand('<speak><prosody volume='silent'>x</prosody><audio src="https://openhab.ext.domain/webres/mp3/test.mp3" /></speak>').

Using x
It provides something to speak, but wrapped in a silent volume, so it isn’t heard.

Hopefully this will help others.

Thanks,
Richie

Hi, can you explain how you created a trusted SSL certificate for HTTPS?

see Securing Communication and Access | openHAB

1 Like

Hi,
I use nginx as a reverse proxy in front of openhab and you can use something like CertifyTheWeb or winacme to get free SSL certs through LetsEncrypt

Thanks,
Richie

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.