MacTTS not working

Hi all,

I’m stuck at a problem concerning the mactts service on openHAB 2 (latest snapshot, b4).

(Needless to say, that I’m on a Mac. :slight_smile: )

I installed the voice extension via Paper UI and try to trigger something in a script like that:

say("Test")

But no output. The log gives me this:

An error occured during the script execution: The name 'say(<XStringLiteralImpl>)' cannot be resolved to an item or type.

I checked the karaf console with bundle:find-class TTSService:

Eclipse SmartHome Core Voice (108)
org/eclipse/smarthome/core/voice/TTSService.class

Eclipse SmartHome Script (127)
org/eclipse/smarthome/core/voice/TTSService.class

openHAB 1.x Compatibility Layer (199)
org/eclipse/smarthome/core/voice/TTSService.class
org/openhab/io/multimedia/tts/TTSService.class

MacOS Text-to-Speech (203)
org/eclipse/smarthome/core/voice/TTSService.class
org/eclipse/smarthome/voice/mactts/internal/MacTTSService.class
OSGI-INF/MacTTSService.xml

I didn’t find any hint in the documentation nor here in the community board. Does anyone has a hint what I’m doing wrong?

Thanks!

Cheers
Norman

Hi Norman,

There has been quite some refactoring done on this in the past weeks, but with the very latest build #512, it should all work nicely again.
You obviously need to have the MacTTS addon installed (as you described). Then you can test this on the command line:

openhab> voice say test

Likewise, the say() command in rules should work.

Best regards,
Kai