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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring 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
Ranch Hand

Joined: Aug 07, 2012
Posts: 31

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


“If you’re good at something, never do it for free.” —The Joker
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
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
Ranch Hand

Joined: Aug 07, 2012
Posts: 31

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: 42285
    
  64
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
Ranch Hand

Joined: Aug 07, 2012
Posts: 31

i follow the post to install apli
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with javax.speech recognition