Menu

How_to_use_another_JSAPI_implementation

Paul-Emile Veuve

Fingon is delivered with FreeTTS, a JSAPI implementation entirely written in Java. It is an open source project providing one low quality voice in the US language.

If you are no satisfied with FreeTTS, you can use an alternate implementation. TalkingJava from CloudGarden is an implementation providing a bridge between JSAPI and the Speech API (SAPI) of Microsoft. It allows you to use any SAPI 4 or 5 synthesizers in your Java program. As a consequence, it will only work under Windows. This is a proprietary product, free for non-commercial use only.

To switch to TalkingJava, follow these steps:

  • remove all FreeTTS jars from your classpath (cmu_us_kal.jar, cmudict04.jar, cmulex.jar, en_us.jar, freetts-jsapi10.jar, freetts.jar, fingon-freetts-synthesizer.jar)
  • add fingon-talkingjava-synthesizer.jar in your classpath
  • download TalkingJava zip file from http://cloudgarden1.com/TalkingJavaSDK-170.zip
  • extract and add cgjsapi170.dll in the library path of your application (ex: lib\windows\x86\)
  • extract and add cgjsapi.jar in the extension path of your application (ex: lib\ext\)
  • start your application with the following VM arguments:

    java -cp lib\fingon.jar;... -Djava.ext.dirs=lib\ext -Djava.library.path=lib\windows\x86 mypackage.MyMainClass

Others JSAPI implementations exist but they have not been tested with Fingon. A classic JSAPI installation requires to copy speech.properties in the user's home directory

  • In Windows: C:\Documents and Settings\Paul-Emile
  • In Linux: /home/Paul-Emile/

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.