Adding ttsservices to openHAB

My current solution:

Exec Binding:

TFILE="/tmp/$(basename $0).$$.tmp"
echo $TFILE
espeak-ng -a 150 -s 200 -v mb-de2 -w $TFILE "$1"
ffmpeg -i $TFILE -f alsa default


What would I need to do to turn my homegrown TTS solution into an openHAB ttsservice?
Documentation on this subject seems to be somewhat sparse.

I don’t have an answer for you. But I am curious why you don’t use the existing text to speech services already bundled with OH. Is that because you want to be off the cloud (which is totally sensible).

My main requirements are:
as light weight as possible and off the cloud.

The Mimic TTS is self-hosted (thus, cloud-free), fairly light-weight, and the output quality is really good. The OH integration works well.