Skip to content
Advertisement

Change voice of MaryTTS to French

I started to use MaryTTS in a java project and it’s working fine but with an english voice :

JavaScript

I need to set the voice to French. So this is my pom.xml :

JavaScript

Those are my dependencies, so I have the maryTTS one, and the one that should bring me the french voice that I take on MavenSearch : https://search.maven.org/artifact/de.dfki.mary/marytts-lang-fr/5.2.1/jar

It seems like french is not implemented because if I do this :

JavaScript

This is what I get in console : [cmu-slt-hsmm]

What can I do more to set the voice in French ?

EDIT : Ok so I am getting close to an answer, I downloaded two jar : marytts.lang.fr and voice-enst-camille-hsmm that I added to my project and if I do something like this :

JavaScript

It work, I have the french voice like I want BUT I also would like when I send a txt file, my program create a wav file and read it. This is working but only in english :

JavaScript

So to have it in french I just added :

JavaScript

under

JavaScript

But I have this error message when I try my app in terminal :

JavaScript

EDIT : If I do this in my intellij and not in my terminal it’s working fine

Advertisement

Answer

So the solution to have maryTTS in french is to add those Jar in your project : -https://gitlab.istic.univ-rennes1.fr/amucheri/avatar-beta2/-/blob/9f1027251cefa136f34e96d30789319aafec5625/lib/marytts-lang-fr-5.2.jar

this one to have the french local.

For the voices, you can add the jar or I think add this maven dependencies will also work :

-https://mvnrepository.com/artifact/de.dfki.mary/voice-enst-camille-hsmm/5.2

you can change the URL to find the voice you want.

By passing my arguments :

JavaScript

In the arguments of my project in IntelliJ : enter image description here

it work.

If someone know why it’s working like this and not in my terminal I’m glad to hear it.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement