1

I have been trying to use FreeTTS in my program but can't seem to actually get it to speak. All initialization will work with no errors but the program freezes on voice.speak. I am developing on kali but plan to actually use the program on my pi zero. Any help would be appreciate.

Here is what I have so far:

public class Speech {

public static String name = "kevin16";
private static Voice voice;
private static VoiceManager vm = VoiceManager.getInstance();

public static void init() {
    voice = vm.getVoice(name);
    voice.allocate();
    voice.speak("This is a test")
}

}

Update: I could not seem to get freetts to work but so far call espeak from java seems to work as an alternative.

Drok_
  • 149
  • 1
  • 7

0 Answers0