How to add a language to maryTTS


During the migration from 1.8.3 to 2.0 I had some troubles (solved) with voiceRSS, in the meantime I tried to add new languages to MaryTTS without success.
I tried to add the jar of the new languages to /var/lib/openhab2/cache/org.eclipse.osgi/226/0/.cp/lib/ where the other maryTTS jar are located but the new jar didn’t appear in the list of
paperUI (even after a restart).

Do you have some ideas?


hm, this is exactly what I am looking for. Have you been ablet to solve this? THX!


Nop i stayed with voicerss


I see that M.A.R.Y. has a 5.2 version on their website,
Which seems to offer better quality speech, with inflections (to a degree). (when using their Web Demo)

Does anyone know if there are any plans on updating OH MARY from 5.1 to 5.2 and include the new voice options?

I assume it is NOT just a case of renaming the JAR files and dropping them in :frowning_face:


The openHAB documentation suggests that a machine with reasonable resources is required to accommodate MARY, (there’s a joke in there somewhere…)
I’ve got 5.1 running on an Odroid C2 and Odroid UX4 (within OH) with good results.

I’ve just downloaded 5.2 and have it running as a webserver on my Odroid UX4 and it’s working REALLY well.
(Other than I can’t figure out how to enable more than the single language)

The only thing that I have NO idea how to do, is save the wave file from this URL into something that I can send to audio sinks…


Replacing the TTS Text in the URL is easy enough… Now that I have had some OH rules training :smile:

@Kai - Would you happen to know who maintains the MARY functionality?

Thanks in advance.

Last time I checked, adding more voices adds 100s of megabytes to the openHAB add-ons downloads so I don’t think it will ever happen this way. Maybe someone can create a bundle fragment that adds these voices. But Mary TTS is very OSGi unfriendly because there are no bundles and the same packages are split across several JARs. :neutral_face:

There’s also an issue for this:

1 Like


Thanks for the advice :smile: