0

I am trying to work on Hindi speech recognition. I am getting the error in setting paths of models. I am setting them like shown below. Where am I going wrong?

configuration  
.setAcousticModelPath("file:///C/Users//Desktop/hindi/model_parameters/hindi.cd_cont_1000");
configuration
.setDictionaryPath("file:///C/Users/apurvgandhwani/Desktop/hindi/etc/hindi.dic");
configuration
.setLanguageModelPath("file:///C/Users/apurvgandhwani/Desktop/hindi/etc/lm/hindi.arpa");
barryhunter
  • 20,886
  • 3
  • 30
  • 43
Maddy
  • 1
  • improved formatting and Grammer – ankitr May 19 '16 at 13:08
  • Exception in thread "main" java.lang.NoSuchMethodError: edu.cmu.sphinx.util.Utilities.pathJoin(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; at edu.cmu.sphinx.api.Context.setAcousticModel(Context.java:89) at edu.cmu.sphinx.api.Context.(Context.java:61) at edu.cmu.sphinx.api.Context.(Context.java:45) at edu.cmu.sphinx.api.AbstractSpeechRecognizer.(AbstractSpeechRecognizer.java:44) at edu.cmu.sphinx.api.StreamSpeechRecognizer.(StreamSpeechRecognizer.java:35) at com.example.TranscriberDemo.main(TranscriberDemo.java:24) – Maddy May 19 '16 at 15:38

1 Answers1

0

To solve this problem you need to make several steps:

  1. Make sure only recent sphinx4 in your classpath, you only need sphinx4-core-5prealpha.jar, not old sphinx4.jar
  2. Fix path to be proper URL, it should be file:///C:, not file:///C/
  3. Get model from sphinx4 website, it contains additional file feat.params

Overall, model for Hindi is not accurate yet, once we have more data to train it will become more accurate and usable.

Further details here

Nikolay Shmyrev
  • 24,897
  • 5
  • 43
  • 87