aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes Help with javax.speech recognition Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Help with javax.speech recognition " Watch "Help with javax.speech recognition " New topic
Author

Help with javax.speech recognition

Dinesh Raju
Greenhorn

Joined: Aug 07, 2012
Posts: 14

Hi to all

i am trying to write code to recognize voice..


i installed JSPAI and CloudGarden TalkingJava SDK
and i included the jar file in classpath

i downloaded the sample code


when i was trying to run it shows the NullPointerException here my output screen

CloudGarden's JSAPI1.0 implementation
Version 1.7.0
Implementation contained in files cgjsapi.jar and cgjsapi170.dll
>> Initializing Cloudgarden's JSAPI 1.0, version 1.7.0
>> Free for personal use only.
>> Any form of commercial, corporate or institutional use requires purchase of a
license.
>> Please visit http://www.cloudgarden.com for details.
java.lang.NullPointerException
at SpeechToTextConverter.main(SpeechToTextConverter.java:33)

>> Shutting down Cloudgarden's JSAPI 1.0 version 1.7.0



please help me to solve the problem i am new to the speech api


-Đinê$h
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35236
    
    7
So which object is null - my guess would be "recognizer". If so, check the javadocs to see under which circumstances "Central.createRecognizer(desc)" can return null.


Android appsImageJ pluginsJava web charts
Dinesh Raju
Greenhorn

Joined: Aug 07, 2012
Posts: 14

Ulf Dittmer wrote:So which object is null - my guess would be "recognizer". If so, check the javadocs to see under which circumstances "Central.createRecognizer(desc)" can return null.

thanks for your reply

Correct Central.createRecognizer method only returns null ...
i tried with Java doc examples to load recognizer but it always return null
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35236
    
    7
The javadocs state:
a recognizer matching the required properties or null if none is available

So it would seem that no speech recognizer is available. Does the recognizer you're trying to use come with examples or instructions of how to run it? That's where I would start.
Dinesh Raju
Greenhorn

Joined: Aug 07, 2012
Posts: 14

i follow the post to install apli
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with javax.speech recognition
 
Similar Threads
speech recognition
Speech to text
Text to speech
new to jsapi
Null pointer exception in code