To test the Online Java Tutorial application:
Download the free implementation of the Speech Converter API from the following URL:
http://freetts.sourceforge.net/docs/index.php
Set the path of the bin directory of J2SDK by executing the following command at the command prompt:
set path=%path%;D:\j2sdk1.4.0_02\bin;
Set the classpath of the lib directory of J2SDK and the Speech Converter API by executing the following command at the command prompt:
set classpath = %classpath%;d:\j2sdk1.4.0_02\lib;C:\j2sdk1.4.0_02\lib;c:\freetts-bin-1_2_beta\lib\freetts.jar; c:\freetts-bin-1_2_beta\lib\cmulex.jar;c:\freetts-bin-1_2_beta\lib\jsapi.jar;
Copy the Tutorial.java and SpeakText.java files to a folder on your computer. Use the cd command on the command prompt to move to the folder in which you have copied the Java files. Compile the files by using the following javac command:
javac *.java
To run the Online Java Tutorial application, specify the following command at the command prompt:
java Tutorial
The user interface of the Online Java Tutorial application appears.
Select a topic from the Java series to view the text in that topic in the right pane. The application reads out the written text corresponding to the selected topic.