[code]
public static void main (
String [] args)
{
try
{
// Create a synthesizer for the default
// locale.
synth = Central.createSynthesizer(null);
// Allocate synthesizer resources.
synth.allocate ();//i m gettin null pointe error here y ?
// Place synthesizer in the RESUMED
// state so that it can produce speech
// as it receives text.
synth.resume ();
}
catch (Exception e)
{
System.out.println(e);
System.exit (0);
}
[code]
in the above peice of code i get null pinter error wen i try to allocate
whats the problem i also want to know how do i use
Java Speech API to my own programs