To test the Auto Answering Machine application:
Download the free implementation of the Speech Converter API from the following URL:
http://freetts.
Download the JTAPI1.4 API from the following URL:
http://java.sun.com/products/jtapi/
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.
Copy the XTapi.dll file to the bin directory in which the J2SDK is installed.
Set the
set path=%path%;D:\j2sdk1.4.0_02\bin;
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;
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
javac *.java
To run the Auto Answering Machine application, specify the following command at the command prompt:
java AutoAnswerGUI
The
Select the required provider to establish a connection with the modem. Then, click the Start Service button to start the Auto Answering Machine application.
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