Configuring SpeechKit 3 for JBuilder
Last reviewed: 6/30/2001
HOW Article ID: H050103
The information in this article applies to:
- SpeechKit 3
SpeechKit 3 includes sample java applications/applets that illustrate using the ChantSR class for speech recognition and the ChantTTS class for text-to-speech. It also includes JBuilder project files. Since the various JBuilder releases include different SUN Java JDKs and the project file formats have evolved in the various releases, it can be confusing getting the sample files, Chant component classes, and libraries copied to the proper locations.
A Chant java component file needs to be in the same directory as the java run time. In addition, any grammar files that are used must be located there as well. The project must include references for the JBuilder IDE to locate the speechkit.jar library. You must create your own to reference to the speechkit.jar library. The ChantSR class uses internal commands for some of the speech filtering options. The strings for these commands are defined in the speechkit.properties file. This file enables you to modify and translate these internal commands if necessary. The speechkit.jar and speechkit.properties files typically belong in the jdk lib directory.
SR1 simplifies the configuration process by copying the sample source files into the same directories as the project files. In addition, the package statements are removed. This eliminates confusion for the JBuilder IDE to determine which files belong to the project.
SR1 also includes 2 different java sample features: JBuilder and JBuilder3. The JBuilder feature installs JBuilder project files that point to the JDK 1.3 files. These projects are compatible with JBuilder4 and JBuilder5. The JBuilder3 feature installs JBuilder project files that point to the JDK 1.2.2 files and are compatible with JBuilder3 environment. Select customer install and deselect the feature(s) you do not need.
The SpeechKit 3 installation program prompts you for the Java directory. Ensure you are pointing to the correct location so that the sample files, Chant component classes, and libraries are copied to the proper locations. You want to point to the JDK folder within the JBuilder directory. It should look something like: C:\JBuilder5\jdk1.3 and will vary depending on the version of JBuilder you have.
To add the speechkit.jar library reference to the JBuilder environment, use the following steps:
- Open a one of the sample JBuilder projects in the SpeechKit installation directory.
- Click the Project menu and select Project Properties.
- Click the required libraries tab and click the Add button.
- Click the New button.
- Enter speechkit as the name and click the Add to locate the speechkit.jar library.
- Locate the speechkit.jar library in the lib directory (C:\JBuilder5\jdk1.3\lib)
- Click the OK button. Click the OK button. Click the OK button.