Hi i found the code below on Java.Sun and i have read about different
speech engines like Freetts that develop the Java Speech API.
But i still can not get to comple the following code as the 3 packages
declared can not be found?
Could anyone be so kind as to tell me what i need to install in oder to
use these packages??!!
cheers and thanks for any replys!
import javax.speech.*;
import javax.speech.synthesis.*;
import java.util.Locale;
public class HelloWorld {
public static void main(String args[]) {
try {
// Create a synthesizer for English
Synthesizer synth = Central.createSynthesizer(
new SynthesizerModeDesc(Locale.ENGLISH));
// Get it ready to speak
synth.allocate();
synth.resume();
// Speak the "Hello world" string
synth.speakPlainText("Hello, world!", null);
// Wait till speaking is done
synth.waitEngineState(Synthesizer.QUEUE_EMPTY);
// Clean up
synth.deallocate();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Roedy Green - 09 Feb 2006 03:20 GMT
>SynthesizerModeDesc
that is a part of the JSAPI. See
http://mindprod.com/jgloss/jsapi.html
also
http://mindprod.com/jgloss/wherejars.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.