VoiceRSS and say command Problems!

Dear friends, I’m trying implementing a TTS engine on OH 1.8.3 using raspberry pi 3. The TTS service I chose is VoiceRSS, I did register an account on voicerss webpage and already got the api key. I did change the configuration under GoogleTTS binding inside openhab.cfg file as instruction, I am using the en-gb language and the example url provided by this community. I copied that to my web browser and the sound was generated perfectly. But when i use say command in my rules file, I couldn’t hear anything. I tried playSound() and I could hear perfectly the sound from mp3 files. So i suppose the say command or voicerss might crashed down
Anyone can help me please?

Could you post your configuration so as to check if it is correct?

openhab.cfg:

###################### GoogleTTS configuration ############################
#
# The language to be used by the GoogleTTS engine (optional, default: 'en').
# Language must be supported for audio output by https://translate.google.com.
googletts:language=en-gb
# Sentence delimiters used to split text into sentences (optional, default: !.?:;)
# googletts:sentenceDelimiters=
# Google Translate URL to be used for converting text to speech (optional,
# defaults to http://translate.google.com/translate_tts?tl=%s&q=%s&client=t).
googletts:translateUrl=https://api.voicerss.org/?key=xxxxxx&hl=%s&src=%s

where xxxxx is my API key. Here is the
rules file:

    rule "Enable"
    when   
            Item itm_dog_gps_alm_enb changed from OFF to ON
    then   
          say("Hello")
    end

Do I need to install any TTS engine locally?

What happen if you replace the xxxxxx by your API key and put this url in your raspberry pi browser?
https://api.voicerss.org/?key=xxxxxx&hl=en-gb&src=test

Is it the test that you already done? If it is working the problem is not coming from voicerss.

No you don’t need a TTS locally to get this configuration working.
This configuration is currently working on my side.

1 Like

I can’t hear anything if I use raspberry’s web browser.
I installed samba on raspberry so that I can access rasperry’s data via my Windows laptop. And ofcourse most of the time I use my laptop to setup and config OH on raspberry.
I checked voicerss by using my laptop’s web browser and forgot checking it by using raspberry’s web browser
The only thing I received on the rasperry’s web browser was merely a black background webpage with a small white play button. I pressed it many times but it didn’t response
So how can I amend this?