Central.createSynthesizer(new SynthesizerModeDesc(Locale.ENGLISH)) obviously returns null. I'm not familiar enough with javax.speech to tell you why, but the Javadoc says that Central.createSynthesizer returns
a Synthesizer matching the required properties or null if none is available
I am using this code for text to speech and i have an application which is already doing this that is a dictionary and i want to do this through my code if anybody know any other way to do this than please tell me i am waiting
Have you actually (properly) installed a jsapi implementation? Will Central.createSynthesizer() return non-null if you pass "null" for the argument? If not, then you haven't correctly installed your implementation. Follow the directions for whatever you're installing to get it working.