Friday, April 15, 2011

Hindi Speech Recognizer in java

This tutorial will explain you how to recognize Hindi Words using Sphinx4 Java API

Requirements :
If you don't have above software please download it by clicking respective software name.

Implementing Hindi Speech Recognizer:
  • Install JDK 6.
  • Extract Sphinx 4 to any drive (preferably C Drive).
  • Go to C:\sphinx4-1.0beta5\lib and run jsapi.exe file.This will create jsapi.jar file in same folder.
  • Open Eclipse and select Workspace for your project.
  • File -> New -> Java Project. Give Project name as HindiSpeechRecognizer.
  • Adding jars to project
    • Right Click on Project name and go to properties.
    • Click on Java Build Path and Select Libraries.
    • Add Library -> User Library -> User Libraries -> New.Give User Library name as sphinx and prees Ok.
    • Click on newly created Library and select add JAR's
    • Add following JAR's to Library
      • js.jar Path=C:\sphinx4-1.0beta5\lib
      • jsapi.jar Path=C:\sphinx4-1.0beta5\lib
      • Sphinx4.jar Path=C:\sphinx4-1.0beta5\lib
      • tags.jar Path=C:\sphinx4-1.0beta5\lib
      • HelloWorld.jar Path=C:\sphinx4-1.0beta5\bin
  • Extract Source Files for Recognizer and replace 'src' folder with 'src' folder of 'HindiSpeechRecognizer' Project.
  • Replace WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar file with C:\sphinx4-1.0beta5\lib\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar file
  • Refresh 'HindiSpeechRecognizer' Project.
  • Run HindiRecognizer.java file
If any doubt feel free to write me

33 comments:

  1. ..explain me better the 'src' step !! i stopped there and then nothing went right !! please...

    ReplyDelete
  2. Hello Mr. Ashish,
    it is a good attempt on hindi speech to text conversion , but in last step of running the HindiReconizer.java after i said anything like "mera naam ashish hai" it shows following exception:

    "Exception in thread "main" java.io.FileNotFoundException: http://www.google.com/transliterate/indic?tlqt=1&langpair=en|hi&text=&&tl_app=1
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at edu.cmu.sphinx.demo.helloworld.HindiToEnglishTranslation.translate(HindiToEnglishTranslation.java:25)
    at edu.cmu.sphinx.demo.helloworld.HindiRecognizer.main(HindiRecognizer.java:55)
    "


    here HindiToEnglishTranslation.java:25 is BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));

    and HindiRecognizer.java:55 is
    System.out.println("You said: " + HindiToEnglishTranslation.translate(resultText) + '\n');

    Please tell me the solution of it and if possible then send me the solution at my email-id mohitjain012@gmail.com, please help me, Thanku..

    ReplyDelete
  3. i have the same problem as mohit has been coping with

    kindly give the solution

    ReplyDelete
  4. Can u please again upload the source code of hindi speech recogniser

    ReplyDelete
  5. can somebody give me hindi speech recognition file i have done speech recognition module.and any one know about HMM mode .how it works .plz inform me...ASAP
    my mail id -sandeep.bhatt@wheebox.com
    (sandeep)

    ReplyDelete
  6. The source files are no longer available. Can you re-upload them to some location like google code and update your above link?

    ReplyDelete
  7. can u upload hindi speech recognizer files

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. can u upload hindi speech recognizer files

    ReplyDelete
  10. Hey, please upload "HindiRecognizer.java" source file.

    ReplyDelete
  11. Hello could you please upload the source files? It would really be helpful. Thank you

    ReplyDelete
  12. can any one provide me src files?
    asad.saleem50@gmail.com

    ReplyDelete
  13. can you please upload or mail me the source files
    email id: namanmittal003@outlook.com

    ReplyDelete
  14. if we create to another language..how we do it i means how to prepare vocabulary in Sphinx .do you hav eany idea ..thanks lot

    ReplyDelete
  15. can you please upload or mail me the source files
    email id: amitw63@gmail.com

    ReplyDelete
  16. please upload "HindiRecognizer.java" source file.or mail me it also source files.email id: vimalmaru185@gmail.com

    ReplyDelete
  17. I could not get Hindi Speech Recognizer File.

    ReplyDelete
  18. There are no source file of Hindi Speech Recognizer on the given link. Can you please upload them or provide us with an alternative link to download them?

    ReplyDelete
  19. hello friends may be this link will help you for Hindi.
    http://stackoverflow.com/questions/23491630/hindi-speech-to-text-using-sphinx4-in-java

    ReplyDelete
  20. Hindi Speech Recognizer Source Files Link not working

    ReplyDelete
  21. can you please share the hindi speech recognizer files ? please share it to athidi005@gmail.com plz.

    ReplyDelete
  22. hi ashish sir can you please share hindi speech recognizer file to my email please
    suraj.ligade01@gmail.com

    ReplyDelete
  23. Can u please email me the source files at
    apurv.gandhwani@gmail.com

    ReplyDelete
  24. nice videos
    Kindly send project files at email
    shanawar78@gmail.com

    ReplyDelete
  25. This comment has been removed by the author.

    ReplyDelete
  26. Kindly send me the project files

    ReplyDelete
  27. plz koi src folder snd kr skta hhh plzz i need it urgently plzzz
    mail=prashantsxn8@gmail.com

    ReplyDelete
  28. bro upload source files at swapnil85879795@gmail.com

    ReplyDelete
  29. b/cause the file is not available
    my email is lebeytedalo@gmail.com

    ReplyDelete
  30. Kindly send project files to my email lebeytedalo@gmail.com

    ReplyDelete