Jython: How to speak using TTS?

Hi there community friends!

OH 2.2

I’m trying to make my jython script speak. I have only seen Xtend examples on the forum.

I’m trying this

from org.eclipse.smarthome.core.voice import say
say(message, "pollytts:Astrid", "sonos:One:RINCON_7828CA012C9801400")

Error: ImportError: No module named core

I’m not sure why I can’t import that class Am I looking at the wrong place maybe?

Thanks in advance!

Is there no one who has experience of this and is willing to offer me some help?