2017-09-06 18:47:31.225 [INFO ] [lipse.smarthome.model.script.SB-Test] - say voiceRSS Squeezebox
2017-09-06 18:47:31.234 [INFO ] [lipse.smarthome.model.script.SB-Test] - say voiceRSS WebSound
2017-09-06 18:47:31.244 [INFO ] [lipse.smarthome.model.script.SB-Test] - play doorbell Squeezebox
2017-09-06 18:47:31.251 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'SqueezeBox Kueche': An error occurred during the script execution: The name 'PlaySound(<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an it
em or type.
If I send
openhab> smarthome:voice say Hallo Welt
on the Console I can hear it in my Webbrowser. Whats wrong?
Ok. It needs to be lower case to avoid the error you are seeing in the logs.
What type of devices are you using for your squeezebox players? If the device uses an older version of squeezelite, there’s a known issue when playing short duration notifications.
2017-09-06 19:59:25.256 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - no connection to squeeze server when trying to send command, returning...
2017-09-06 19:59:32.552 [INFO ] [lipse.smarthome.model.script.SB-Test] - say voiceRSS Squeezebox
2017-09-06 19:59:32.572 [INFO ] [lipse.smarthome.model.script.SB-Test] - say voiceRSS WebSound
2017-09-06 19:59:32.582 [INFO ] [lipse.smarthome.model.script.SB-Test] - play doorbell Squeezebox
2017-09-06 19:59:32.592 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'SqueezeBox Kueche': An error occurred during the script execution: The name 'PlaySound(<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an it
em or type.
The last error shows that you were using “PlaySound” instead of “playsound”.
Regarding the missing sound for the say command, please confirm that your VoiceRSS is setup correctly. If it is you should have the sound-files in the folder “userdata/voicerss/cache” on a linux-system that would be “var/lib/openhab2/voicerss/cache”.
[Edit] Forget the last, I missed your last statement in the first post.
Also your used audiosinks are not matching the listed ones!
The list has: "squeezebox:squeezeboxplayer:D86F7CB5-C4DC-4D83-8E2D-C29427310EC6:0004202d5ae0"
You are using "squeezebox:squeezeboxplayer:D86F7CB5-C4DC-4D83-8E2D-C29427310EC6:0004202d5ae1"
And in the list there are “webaudio” and “javasound” but you are using “WebSound”!
I’m sorry, Yes, that is correct.
However, you filled an Issue on Github without mentioning the related binding. I suggest you include which binding you are using in the issue.
@Kai Others are having this issue as well. I didn’t make any other changes to my system beyond applying the 9/10 snapshot. I’ll apply the latest snapshot tomorrow and see if it’s working for me on that one
Do they? I cannot find any details here in this thread - all logs are about “PlaySound” not being recognized (which is correct, due to the wrong spelling).
Fair point. Unless someone else is reporting the issue I won’t worry about it since I figured out a work around that takes it out of OpenHAB’s hands.
I’m sorry for my earlier false post (which war corrected by user regerrans), the documentation in here however states correctly that you Need “playSound” in a rule.