I want to use TTS Service (in habdroid or pc). I assume I have have to install one of the voice bindings therefore…
I installed the VoiceRSS binding. On voicerss.org I created an account to get my API Key. In the documentation I read that I have to add the API_KEY to the configuration… In the service folder I have the runtime.cfg with this parameter:
##################### VOICE ####################
# This parameter defines the default text-to-speech service to use (if not set, the first available one will be used.
#
#org.eclipse.smarthome.voice:defaultTTS=
# This parameter defines the default speech-to-text service to use (if not set, the first available one will be used.
#
#org.eclipse.smarthome.voice:defaultSTT=
# The default voice to use if no specific TTS service or voice is specified.
#
#org.eclipse.smarthome.voice:defaultVoice=
# The default human language interpreter to use if no other is specified.
#
#org.eclipse.smarthome.voice:defaultHLI=
Can I add the API_KEY here? Or should I create a additional cfg-file?
Do I have to customize the runtime.cfg as well?
What Is the next step? Can I use the command say in the rules? e.g.:
In order to use the say command you need a voice service setup correctly AND a a audio sink setup in order to have speaker where the speach should be played.
Read here
thanks for the hint… but unfortunately I do not really understand what I have to setup in conf/services/runtime.cfg or in the Paper UI in Configuration->System->Voice
Also I do not know what the audio sink setup is…
Is this really command which I can use in the command line on my raspberry??:
openhab> smarthome:voice voices
I get here an error…
I intend to use the say command in a rule. The speaker should be the smartphone speaker if I use the android app or the PC speaker if I use the PC (e.g. via basicUI)…
To start of, you need to understand that all is done from the OH instance, it doesn’t matter from where you give the command.
OH uses audio sinks to send the audio to,.
Look into the docs posted, setup the VoiceRSS service as posted there and select a default audio sink (a speaker that is known to OH). If all theat is done the say command will work.
if I enter the command in the raspberry pi console I get this error:
[20:56:27] openhabian@openHABianPi:~$ openhab> smarthome:voice voices
-bash: openhab: command not found
Maybe you can help me with the config… what I have to enter in the file if I will use the voicerss… I really haven’t got a clue:
##################### VOICE ####################
# This parameter defines the default text-to-speech service to use (if not set, the first available one will be used.
#
#org.eclipse.smarthome.voice:defaultTTS=
# This parameter defines the default speech-to-text service to use (if not set, the first available one will be used.
#
#org.eclipse.smarthome.voice:defaultSTT=
# The default voice to use if no specific TTS service or voice is specified.
#
#org.eclipse.smarthome.voice:defaultVoice=
# The default human language interpreter to use if no other is specified.
#
#org.eclipse.smarthome.voice:defaultHLI=
That depends on where you want to hear something. The system speaker makes sense only if you have one at your (OH) system.What is that Onkyo? What is that TXNr 45. .?
For something like that you need to use Web Audio, however that is only incooperated into HABPanel and PaperUI so far (I’ve just read that, I don’t have further knowledge).
IMHO by having either HABPANEL or PaperUI open on the device, a sound sent to Web Audio should be played.(keeping fingers crossed).
hmmm that is really not what I want… Nevertheless thank you for your support…
Maybe someone else has a idee how I can use TTS on the android app or basic ui…
Since I’m away from home, I needed to establish a VPN to do some changes on my PaperUI. The test with Web Audio ad a default Ausiosink gave me the audio feedback of a say command on the device having the VPN(that was as awaited) and another tablet which only had the browser avtive.
Did some more testing, the reason the sound was played on the tablet was a forgotten myopenhab tab which was open showing PaperUI.