Does anybody has interest in programming and assembling a device which plays a sound stored on an sd card and triggered by a dry contact or by API via wifi, such as Arduino DF Mini player?
Just drop me a PM.
At the risk of pointing out the obvious, You could do this using a raspberry pi easily. Or esp8266/esp32 with an SD card āhatā, and I think there are some pre-built variants that come pre integrated with an SD card maybe.
Or use Alexa/Echos.
Thanks Jim and stormi.
My openhab server is in the basement of my house and the wall-mounted loudspeaker on ground floor. I need to install the device on ground floor, close to the speaker. If I install the device in the basement, I get lot of noise and crackles.
Unfortunately the obvious solution is not working.for me.
Amazon echo is also a nice idea but my wife is going to kill me if I came up with this. WAF would go down to an absolute minimum.
Programming an esp is something I need to teach myself I currently do not have the time for.
Check out volumio
Google nest speakers can play MP3 as audio sink for openhab. Alexa/echo canāt.
You can even run a local TTS with this by giving it the TTS url to stream from. Just call Audio.playSound("file.mp3", thingid_of_nest)
Unfortunately they donāt have sound out (line out) for your speakers afaik. So itāll just be played on its speakers. What is it for? Even the tiny nest is pretty loud as an alert/notification speaker
If you use ESPHome, you donāt need to spend any time learning to program an esp, it writes the firmware for you
Something that does have line out but which is no longer made is the āGoogle Chromecast Audioā. You can still get them on sites like eBay.
I had the exact same situation and have been using the Raspi audio jack for a (too) long time, itās not a reliable solution, moved over to amazonechocontrol and am happily using that since as my doorbell.
You can send your own sounds and even use the Echo TTS.
You can also fully disable Alexa input listening and only use it as a loudspeaker.
How do you send your own sound to amazon echo?
You send an XML command it can contain URLs and Echo fetches the sound from a web server of yours.
Does the url need to be:
- https
- with a valid ssl certificate
- publicly accessible?
Since you didnāt provide any details, Iām guessing itās done through Alexa TTS SSML using this tag: <audio src="https://xxxxxx">
I tried it with a http and a local url e.g. http://192.168.x.x:xxx/xxxx but it didnāt work.
The same local url can be used by google nest / home device (chromecast) just fine.
In case you are in the Apple world, you can use HomePods as well to play audio, but you need Homebridge: GitHub - petro-kushchak/homebridge-homepod-radio
IIRC itās not the local Echo to fetch the URL but some cloud server so itās probably hitting your firewall.
You can also use Amazon soundfiles using a soundbank://
URL.
OK, at least this is not something that I didnāt know and have been missing out on. Iāll stick to using google home/chromecast devices to do this. It wouldāve been nice if alexa could do it too. I have and use both at home.
You could probably achieve this too by creating a virtual switch in OH and having changes trigger a shortcut on a HomePod/ATV. I know itās then also leveraging HomeKit but for someone in an Apple ecosystem itās less dependencies.
Thanks to all of you for your ideas and contribution. There are quite a few plan B solutions.
Nevertheless, if anybody has interest in providing me with an esp board, Iāll be happy to pay for that. This solution fits better into my existing infrastructure. I will wait over the weekend until I start with one of the solutions above.
Thanks
Hello,
Here a link to Sparkfun. They have players that can be triggerd by a contact. Not really cheap, but it works out of the box.
That should work as well, but it doesnāt allow to play audio files from a Webserver.
With the homebridge plugin, I guess you can make it possible to generate audio with openHAB TTS and then play it on your HomePod.
A very simple solution could be to use this simple mp3 player module from dfrobot.
It can be used standalone, requiring only a few resistors and buttons to control it, or by receiving serial commands.
I have one I programed to play mp3 form internal memory. I would make one for you. Using a esp32 and sparkfun amp board and controlled by mqtt.