Examples

A sample application, VoicePad, has been added to the examples.userinterface package to demonstrate a fairly simple Swing-based application.

Several new examples have been added to the examples.synthesis and examples.recognition packages to demonstrate the IO features of the com.cloudgarden.audio package. Also, new example packages, examples.applet and examples.remote, have been added. Please consult these examples for usage of the classes. Also, and since it was found that the javax.sound.sampled package can sometimes hang a system (mainly when trying to open a TargetDataLine and SourceDataLine at the same time), it might save time to use the code from some of the examples as a starting point for new code.

Running the Examples

The examples can be run:

Most of the examples use the com.cloudgarden.speech.userinterface.SpeechEngineChooser dialog to allow you to select which of the installed engines to use for the demo - note that this is a Swing component, so it is recommended that they be run using Sun's JDK 1.3. The examples that synthesize speech will require that you select a "Voice" node under a "Synthesizer" node and hit the "Set Voice" button on the dialog before proceeding, and the recognition examples will require that you pick a "Profile" node under a "Recognizer" node in the same way. The "WhatTimeIsIt" example requires you to pick both.

Description of the Examples

Some of the examples are described here - all of the examples are described briefly in the javadoc.

Before speech dictation will work well though, make sure you have a good microphone (built-in ones on laptops generally have way too much background noise) and spend ten minutes or so training the speech engine to your voice - after you install Microsoft's Speech SDK 5 there should be a "Speech" entry in the Windows control panel which lets you do this, or you can use the "User-training" button in the examples.userinterface.TestInterfaces example above.