Has someone a working example of a Jython script calling the smarthome:voice VoiceManager say function? That is, in I’d like to speak a text on the default audio sink with the default TTS and voice. (I’d also like to be able to specify audio sink and voice)
I guess I should import the VoiceManager into my script but I’m not quite sure what it should look like.
from org.eclipse.smarthome.core.library.types import PercentType
from openhab.actions import Voice
Voice.say("Nu ska vi se", "pollytts:Astrid", "sonos:One:RINCON_XXXXXX", PercentType(50)) # Kitchen Left