Hi @shikkie I like your solution since it doesn’t involve a hop through the cloud in order to push a sound alert. But I’m having trouble getting it to work via SmartThings.
I setup a Raspberry Pi in the way you describe, and the espeak web interface seems to work as intended (i.e. I hear the sound on my RPi when I enter text in a web browser on another device).
Next I made a new device type with the code you wrote. I can see the device in my SmartThings app and configure it with IP address, port and path. But if I try to send a test tts nothing happens. Similarly, if I use the SmartApp you wrote to send a sound on a door sensor opening, I don’t hear anything on my RPi.
Any thoughts on how I can troubleshoot this? Thanks!
When I had that issue trying to send a text-to-speech alert with @shikkie’s smart app, and didn’t hear back, I kinda put the whole thing on hold. I don’t really know anything about groovy (or other programming languages), so I’m afraid I’ve kinda hit a dead end. I’d love to hear about what you’re working on, if you don’t mind sharing.
This code works well to access php server on pi. I modified it to give me several different commands so that I can choose what it says with each door opening. I ended up using Google Translate TTS as it sounds much better than any on Pi options.
Also, I modified the “tones” to play a random song on the pi from a list of MP3 that I can update via Samba file share.
Now I just need to come up with a smart app to play the tone when the doorbell button is pushed and assign a TTS command to each door sensor.