Hello Brandon
I just use playSound in a rule.
rule "mqttmessagechanged"
when
Item alertboxmsg changed
then
if (alertboxmsg.state == "") return;
if (alertboxmsg.state == "text message received"){
if (now.getHourOfDay() >= 06 && now.getHourOfDay() < 23){
playSound("textmessage1.mp3")
}
}
end
I’ve had some real problems trying to get OpenHAB to play sounds but above works thru a tablet which has habpanel running on it. (and with webaudio set as default in my system configuration, I guess the tablet provides a sink) I also have used a blue tooth dongle and speaker but didn’t have luck getting OpenHAB to play sounds thru it yet. I’ve also got the pulse audio binding to work on my system but have yet to get it to make sounds yet… here is a thread about the pulse audio binding I started
https://community.openhab.org/t/pulse-audio-binding/74265
here is a thread about using the blue tooth and pulse audio couldn’t get mine to work
edit to add
I use alexa for tts because I don’t care who is snooping on me and she goes ‘Andy… the phone is ringing’ it is stupid easy to get to work. The binding is kind of iffy howhever, possible memory leak though slows my system but works.