Hello All,
This is my first video tutorial. This tutorial demonstrates how to make a speech recognizer in java using Sphinx.
Requirements to work according to the tutorial :
1 ) JDK 6 ( J2SE )
2 ) Eclipse SDK ( Im using Eclipse 3.4.0 )
3 ) Sphinx 4.0
4 ) JSAPI ( Included in Sphinx 4.0 )
Tutorial is divided into 3 parts.
Please feel free to post your comments and suggestions on tutorial and help me to improve the quality.
Regards,

Hi Puneet bhae
your tutorial is great.
i m working on a speech enabled search engine. i will be thankful if you give me some help.
regard Shumaila
Hi, your tutorial is of great help. I would like to ask some pointers, if it’s okay with you, regarding wav files and indexing. I need to get the time from a wav input. I’m working on it, and I’m sort of stuck. Thanks
Hey Paula,
Thanks for posting, but I didn’t get what you are trying to say. Can you please be more clear?
Thanks.
Puneet
Hi Puneet, My final year project is Home Automation System Using Speech Recognition. Now I am in trouble in speech recognition part. I have some class for testing speech recognition. But they throw me an exception, i.e NullPointerException and says mbrola.base is undefined.
Now can you help me by giving some idea of this project in details…? Thank You.
I saw your tutorial.. Very helpful one for me.. Great job. But Puneet, What will be the structure of helloworld.config.xml file?
hey puneet…
thanks a lot for ur tutorials…but i hav a question
I want sphinx to recognize all the discrete words that the user speak..ie the words in the dictionary.. what grammar should i write??? ie without mentioning their token names separately in it.. please do help??
buddy ,,, u rock!!!
hi kalra i have made a project on media player in java .Now i want to use sphinx for speech recognition as i want to play and stop the media through a speech .I have made a simple recogniser but when i run it give javax.speech.*; class not found error .so, can you give me the procedure for how to use sphinx for speech recognition.
It is very urgent reply fast.
Thanks in advance.
Hi puneet i have studied your video you are using eclipse but i am using netbeans which does’nt give the same result ..Anyways i tried to run demo and it runs b’coz it was a jar file but when i make a java file and tried to run it through command prompt it won’t work .
I am getting an error of Buildfile:build.xml does’nt exist.
so tell me the steps of packing my java pgm into a jar file so that i can run it with java -Xmx256m -jar bin/HelloWorld.jar.
Also i am using apache ant to build my sphinx and my pgm.
please reply fast it’s urgent.
how to make my recognizer to recognize complete english language instead of giving grammar for it. is it possible.
Hello Puneet,
I am developing a speech recogniser and translater in java. So i am using sphinx4 for the purpose. I am able to run all the demos (thanx to your video tutorial). I am very new in sphinx. I am stuck at how to use dictionary in my application so that i can get access to variety of words. I also need a little help in training. Please reply fast
hi puneet,
your post is very helpful.. Thanks for ur effort.
Do u have any idea that how to handle punctuation marks in sphinx grammar??
Thanks in advance.
Hi puneet,
I want to use sphinx in an applet.I have tried some demos to familier with sphinx in order to recognize and get the voice to text.but since in applet i don’t know how to access gram file.Can u please help me?thanks a lot!!
hi puneet sir
wil u plz tell me how to do changes in config.xml file.so we can add few more words to speech recognition system.
please tell me how i put voice recognition in java project?
i will do a project for autistic and the project have to take the voice response from the patient please help me in this part
thanks a lot
hi i want to ask how can i implement Helloworld program on the applet. i have tried bt it was not given any response neither result nor error. plz help me i’ll be thankful to you
plz rply fast
Good work making this tutorial.
I was unable to understand the file required for my own implementation. It really helped.
You could have saved some time by using voice input instead of typing it.
Thanks,
Hassan Farid
Hi….
my name is Sangamesh. Now i am studying in final year B.E(Information Technology).For academic project in college I am doing one project which is based on sphinx4. My project is to develop application which will recognize our regional language “Kannada”. i am not getting that how to create new acoustic model for kannada language… so please help me.
Hello. Just followed the tut and it works great. But i’m new to java and a i have a question for you. If i would say the word “beer” i want the program to give me a specific response for this word. Or if i say “Open browser” the program to open firefox. How can this be done? Thanks!
ok, managed to make the modification, so you can delete the first request
But now i have another problem. I’ve exported my project as .jar, and when i try to run it from command prompt i get this:
Exception in thread “main” java.lang.NoClassDefFoundError: edu/cmu/sphinx/util/p
rops/ConfigurationManager
at edu.cmu.sphinx.demo.helloworld.HelloWorld.main(HelloWorld.java:34)
Caused by: java.lang.ClassNotFoundException: edu.cmu.sphinx.util.props.Configura
tionManager
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 1 more