【问题标题】:Speech recognition Sphinx4 Hindi语音识别 Sphinx4 印地语
【发布时间】:2016-09-16 07:57:26
【问题描述】:

我正在努力研究印地语语音识别。我在设置模型路径时遇到错误。我正在设置它们,如下所示。我哪里错了?

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");

【问题讨论】:

  • 改进的格式和语法
  • 线程“主”java.lang.NoSuchMethodError 中的异常:edu.cmu.sphinx.util.Utilities.pathJoin(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String ;在 edu.cmu.sphinx.api.Context.setAcousticModel(Context.java:89) 在 edu.cmu.sphinx.api.Context.(Context.java:61) 在 edu.cmu.sphinx.api.Context .(Context.java:45) 在 edu.cmu.sphinx.api.AbstractSpeechRecognizer.(AbstractSpeechRecognizer.java:44) 在 edu.cmu.sphinx.api.StreamSpeechRecognizer.(StreamSpeechRecognizer.java :35) 在 com.example.TranscriberDemo.main(TranscriberDemo.java:24)

标签: speech-recognition cmusphinx sphinx4


【解决方案1】:

要解决这个问题你需要做几个步骤:

  1. 确保类路径中只有最近的 sphinx4,您只需要 sphinx4-core-5pr​​ealpha.jar,不是旧的 sphinx4.jar
  2. 将路径修复为正确的 URL,它应该是 file:///C:,而不是 file:///C/
  3. 从 sphinx4 网站获取模型,它包含附加文件 feat.params

总的来说,印地语的模型还不准确,一旦我们有更多的数据来训练它会变得更加准确和可用。

更多详情here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-16
    • 2016-07-09
    • 1970-01-01
    • 1970-01-01
    • 2016-03-03
    • 1970-01-01
    • 2011-11-01
    相关资源
    最近更新 更多