• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with javax.speech recognition

 
Dinesh Kumar Ramakrishnan
Ranch Hand
Posts: 63
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dinesh Kumar Ramakrishnan
Ranch Hand
Posts: 63
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Ramakrishnan
Ranch Hand
Posts: 63
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i follow the post to install apli
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic