2 Replies Latest reply: Jun 27, 2009 7:02 PM by 843802 RSS

    setting up java speech - jsapi freetts in netbeans/windows

    843802
      Hi,

      I managed to get FreeTTS working for me (windows/netbeans). I wrote a quick guide to [setting up freetts|http://www.ryan-h.com/uncategorized/java-speech-jsapi-freetts/] to help others.

      1. Run Jsapi.exe, say yes, to unpack jsapi.jar
      2. Find your JRE directory, mine was C:\Program Files\Java\jdk1.6.0_03\jre\lib\ext
      3. Copy all the Jars to that directory
      4. Check in netbeans your projects properties ie right click on project->properties->libraries->manage platforms and the jars should be listed there. If they are not, restart and hopefully they should now be there.
      (See website for screenshot)

      5. Copy speech.properties to relevant folder, the example Helloworld will complain telling you which directory. Or you can set the property using:      

      System.setProperty("freetts.voices", "com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory");

      Any problems, post at http://www.ryan-h.com/uncategorized/java-speech-jsapi-freetts/ and I will try to help you out. (sorry but I dont check this forum often)

      Good luck
      Ryan

      Edited by: ryan-h on Apr 13, 2009 8:22 AM