Unit Testing


To test the Voice Help application:

  1. Download the free implementation of the Speech Converter API from the following URL:

    http://freetts. sourceforge .net/docs/index.php

  2. 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; 
  3. Set the classpath of the lib directory of J2SDK and 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; 
  4. Copy the SpeakHelp.java, SpeakHelpText.java, and SelectHelpVoice.java files to a folder on your computer. Use the cd command at 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 
  5. To run the Voice Help application, specify the following command at the command prompt:

     java SpeakHelp 
  6. The user interface of the Voice Help application appears. Click the Help button. A question mark icon appears.

  7. Select any menu option or button to listen to the help information for that option or button, as shown in Figure 4-7:

    click to expand: this figure shows the selected menu to listen to the help information for that menu option.
    Figure 4-7: The Voice Menu with Help




Java InstantCode. Developing Applications using Java Speech API
Java InstantCode. Developing Applications using Java Speech API
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 46

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net