This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Help with javax.speech recognition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Help with javax.speech recognition " Watch "Help with javax.speech recognition " New topic
Author

Help with javax.speech recognition

Dinesh Kumar Yadav
Greenhorn

Joined: Aug 07, 2012
Posts: 25

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: 41135
    
  45
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.


Ping & DNS - my free Android networking tools app
Dinesh Kumar Yadav
Greenhorn

Joined: Aug 07, 2012
Posts: 25

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: 41135
    
  45
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 Kumar Yadav
Greenhorn

Joined: Aug 07, 2012
Posts: 25

i follow the post to install apli
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with javax.speech recognition
 
Similar Threads
speech recognition
Null pointer exception in code
Speech to text
new to jsapi
Text to speech