Monday, February 4, 2013

Java Voice recognition

My next project is about recognition system,so i check it out and found plenty of method out of which the one which uses Sphnix library is used, so first you have to configure the Netbeans(use can also use any other IDE). Following are the requirement of  a simple " Hello word" program.
  • Sphnix-4
  • Netbeans
you can download these software from net ,, they are free of cost...
First unpack sphnix zip pack, and install jsapi file in lib folder. now create new library in netbeans and add following jar files from lib folder.
  1. tags
  2. sphinx 4
  3. js
  4. jsapi
now create new project in netbeans and make package with name "edu.cmu.sphinx.demo.helloworld".
then add  code for helloworld.
For simplicity and flexibility(so that you can easily change grammar as per your choice) first extract helloworld.jar file from bin folder and open edu sub-folders and copy the hello.gram(grammar file) and helloworld.config  file to netbeans src folder.

now you can use this idea further and make some cool app's (by changing grammar file) like voice recognition app for windows for increasing volume,turning off,opening any website/browser and much more.

No comments:

Post a Comment