Say item State

Hi

How do a get sonos to say the state of an item string?

Example:
the relay is (item State on/off)

Create the string like:

var String sayString ="The Relay is " + MyItem.state.toString

Hi

Should to type this in a rule, or what do you mean by create the string?

I assumed you have Sonos as well the tts service in OH set up correctly and were asking how to handover an item state to the say command. Using such a String would be the way.
However if you have more questions concerning the how to use TTS and Sonos via rules, please ask.

Thanks i got it