Hello guys,
i hope there is somebody out there that can help me.
I am using OpenHAB 2.2.0.008-SNAPSHOT on my Synology with DSM 5.2.
I want to push notification to my sonos speakers.
What I Did so far:
- installed the Sonos binding and checked that it is working
- installed VoiceRSS TTS Service
- created an account at http://www.voicerss.org/
- put the api Key in the config (voicerss.cfg at conf\services) AND in the PaperUI at Configuration, Services (just to be sure)
- configurated Voice Service at PaperUI - Configuration - System to use VoiceRSS and set Language to “de”
For my understanding that was everything to do for using VoiceRSS with OpenHAB.
My Item file looks like this:
//Sonos
String Speech_Out "Speech Out"
Switch wz_sonos_play_uri_switch "Sonos WZ Welcome" (Wohnzimmer,Multimedia) {channel="sonos:One:RINCON_XXXXXXXXXXXXXXXXXXX:playuri"}
String wz_sonos_play_uri "Sonos WZ Welcome" (Wohnzimmer,Multimedia) {channel="sonos:One:RINCON_XXXXXXXXXXXXXXXX:playuri"}
rule "Sonos play uri"
when
Item wz_sonos_play_uri_switch changed to ON
then
sendCommand(Speech_Out.state.toString, 'zweiter test')
say(Speech_Out.state.toString,"voicerss:deDE","sonos:One:RINCON_XXXXXXXXXXXXX")
//'http://stream01.iloveradio.de/iloveradio9.mp3' - this is working!
end
My Sonos Speaker just says “NULL”.
At least there are some files (mp3 and txt) created at /openHAB2/userdata/voicerss/cache/
But the content of the txt file is also NULL. So i assumed a problem with the VoiceRSS service. But i tried "http://api.voicerss.org/?key=APIKEY&hl=de-de&src=Hallo!") to be sure it is working with my API Key, and it worked.
In addition to that i tried to play some mp3 radio streaming url. this worked too.
So VoiceRSS is working and streaming to Sonos is working, but its not working when trying to do it together with openhab.
I also tried Googles TTS with this Rule:
rule "Sonos play uri"
when
Item wz_sonos_play_uri_switch changed to ON
then
val speech = "Hello. This is a test"
val url = "x-rincon-mp3radio://translate.google.com/translate_tts?tl=de&q=\"" + speech + "\"&client=OpenHAB"
logInfo("Sonos Say URI","Link: " + url)
sendCommand(wz_sonos_play_uri, url)
end
this one wokred 2-3 times. but then nothing. (no connection to TTS system anymore)
Is there anybody out there who got any idea?
Regards,
Tidle