As all of this is pretty new, please don’t expect it all to be smooth. Rather see it as an invitation to help improving it (code and documentation likewise!)
say(String text): Says the given text through Text-to-speech
say(String text, String voice): Text-to-speech with a given voice (depends on the TTS engine or voices installed in the OS)
say(String text, String voice, String device): Text-to-speech with a given voice to the given output device (only supported on Mac OS). Available voices command: say -v ?. Available devices command: say -a ?
Could we use the last one to set a voice and an audio sink using the device parameter ?
Also not clear for me, if sink is not default, how can the user determine the getMasterVolume() of the not- default sink. TMOH user would need the ability to specify the sink in this command as well.
Or maybe I am lacking the full understanding. Would not exclude this
say("dies ist ein Test")
say("dies ist ein Test","marytts","sonos:PLAY1:Schlafzimmer")
I am receiving the error message
16:55:47.025 [ERROR] [se.smarthome.core.voice.VoiceManager] - Error saying ‘dies ist ein Test’: Unable to find a voice for language de
In paper ui I have set
default Source: “empty” I do not know what to put here. Does this parameter makes sense?
default Sink: enhancedjavasound
Have tested getMasterVolume() this return 1.0 working. Good!
With setMasterVolume(0,5) user has to use a “,” instead of a “.”.
Should both be the same and I would prefer “.”
Although it seems to accept the volume using “.” I do not see an change in the actual loudness of the speaker.
I have tested it with SONOS.