How to use the say command through REST

I am struggeling to trigger say() through the REST-API.
e.g. the equivalent to say(“Test”) in a .rules file.
Could anyone point me in the right direction?

I’m probably wrong, but I’m not aware of a way to access it directly via Rest.

I have an SMS sending system which uses a dummy item and a rule that watches for updates / changes.

Then push the reformatted .state of that item into a SMS send URL

I also have a String item that I use to push different content into my Chromecasts or webaudio.

Again, a rule watches a virtual / orphaned Item and pushes the .state into the Say commands.

rule "say anything"
when
Item SayItem received update
then
say(SayItem.state, "voicerss:enGB", "webaudio")
end

It’s that of any help?

I thought of that but I still hope that there is a different solution …

1 Like

I went down the same road…

But this works well enough for my application.

Just update the SayItem via Rest :slight_smile:

Good luck.

If you find another way, please do post it :slight_smile: