Flylib.com

Books Software

 
 
 

Unit Testing


Unit Testing

To test the Auto Answering Machine application:

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

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

  2. Download the JTAPI1.4 API from the following URL:

    http://java.sun.com/products/jtapi/

  3. Download the free implementation of the JTAPI 1.4 from the following URL:

    http://sourceforge.net/projects/xtapi/

    The free implementation includes Audio Service Provider, Microsoft Telephone API (MSTAPI) Service Provider, Serial Service Provider, and Extension Telephone API (XTAPI) JTAPI implementation.

  4. Copy the XTapi.dll file to the bin directory in which the J2SDK is installed.

  5. 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;
    
  6. Set the classpath of the lib directory of J2SDK, Speech Converter API, and JTAPI 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;C:\XTAPI\XTapi.dll;C:\XTAPI\audiosp.jar;C:
    \XTAPI\mstapisp.jar;C:\XTAPI\serialsp.jar;C:\XTAPI\xtapi.jar;C:\JTAPI1.4;
    

  7. Copy the AutoAnswerGUI.java, AutoAnswerObserver.java, AnswerText.java files, and Java Telephony API 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
    
  8. To run the Auto Answering Machine application, specify the following command at the command prompt:

    java AutoAnswerGUI
    
  9. The user interface of the Auto Answering Machine application appears.

  10. Select the required provider to establish a connection with the modem. Then, click the Start Service button to start the Auto Answering Machine application.



Index

A-J

Auto Answering Machine, Chapter 8: Creating the Auto Answering Machine Application

central, Chapter 2: Creating a Speech-Enabled Calendar Application

Central, EngineList,, Chapter 3: Creating a Voice Synthesizer Application

Engine interface, Chapter 3: Creating a Voice Synthesizer Application

EngineModeDesc classes,, Chapter 3: Creating a Voice Synthesizer Application

Form Validation, Chapter 6: Creating a Form Validation Application

Java API, Chapter 2: Creating a Speech-Enabled Calendar Application, Chapter 4: Creating a Voice Help Application, Chapter 5: Creating a Counting Application, Chapter 6: Creating a Form Validation Application

Java Media API, Chapter 1: Introduction to Java Speech API

Java Speech API, Chapter 1: Introduction to Java Speech API, Chapter 3: Creating a Voice Synthesizer Application, Chapter 8: Creating the Auto Answering Machine Application

Java Telephony API, Chapter 8: Creating the Auto Answering Machine Application

javax, Chapter 6: Creating a Form Validation Application

javax.speech, Chapter 4: Creating a Voice Help Application, Chapter 5: Creating a Counting Application, Chapter 6: Creating a Form Validation Application

javax.speech package, Chapter 3: Creating a Voice Synthesizer Application

javax.speech.synthesis, Chapter 5: Creating a Counting Application

javax.speech.synthesis package, Chapter 2: Creating a Speech-Enabled Calendar Application

javax.speech.synthesis packages, Chapter 4: Creating a Voice Help Application, Chapter 6: Creating a Form Validation Application

JSAPI, Chapter 1: Introduction to Java Speech API

JTAPI, Chapter 8: Creating the Auto Answering Machine Application