How to use Mbrola voices (more than us1, us2 and us3) in Java with FreeTTS?

680 views Asked by At

I want to know if it's possible to use some extra voice from here with FreeTTS, rather than only us1, us2 and us3. Particularly a non-english voice.

import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;

public class TestTTS {
    public static void main(String [] args) {
        VoiceManager freettsVM;
        Voice freettsVoice;
        System.setProperty("mbrola.base", "C:\\Java\\mbrola\\mbr301d"); 
        freettsVM = VoiceManager.getInstance();
        freettsVoice = freettsVM.getVoice("mbrola_us1");
        freettsVoice.allocate();
        freettsVoice.speak("Hello");        
    }
}

If not, how can that voices be use?

Thanks

0

There are 0 answers