This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, Im trying to get a sample piece of code up and running using the Java Speech API, I have tried many different tutorials, all are the same basic contents... in the Main method, a synthesizer is created and allocated... Synthesizer synth = Central.createSynthesizer( new SynthesizerModeDesc(Locale.ENGLISH)); synth.allocate(); synth.resume();
Than when the speech is done, it is deallocated()
My code compiles fine, but when I try to run it, it has problems with the allocation and deallocation, it gives me a NullPointerException.
I have looked at many different tutorials, they all compile fine, and then when I run them I get the same error. How can I make it work?!! Any thoughts? Im really stuck on this..... Thanks
I have been asking a number of colleagues about this problem, most seem to think its some problem with the classpath configuration and access to runtime libraries is setup. Im currently trying a few different things to that end. Do you think it could be anything else or would you have any better suggestions? Thanks for your help,
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com