2016-08-17 67 views
0

当对所提供的wav文件运行CMU狮身人面像,我得到这个错误:CMU Sphinx的支持字典

SEVERE: Missing HMM for unit P with lc=R rc=ER0 
19:06:29.696 SEVERE lexTreeLinguist Bad HMM Unit: EH1 
Aug 16, 2016 7:06:29 PM edu.cmu.sphinx.linguist.lextree.HMMTree addPronunciation 
SEVERE: Missing HMM for unit N with lc=EH1 rc=Z 
19:06:29.697 SEVERE lexTreeLinguist Bad HMM Unit: OW0 
Exception in thread "main" java.lang.NullPointerException 
at edu.cmu.sphinx.linguist.lextree.HMMNode.getBaseUnit(HMMTree.java:494) 
at edu.cmu.sphinx.linguist.lextree.HMMNode.<init>(HMMTree.java:472) 
at edu.cmu.sphinx.linguist.lextree.Node.addSuccessor(HMMTree.java:164) 
at edu.cmu.sphinx.linguist.lextree.HMMTree$EntryPoint.createEntryPointMap(HMMTree.java:1154) 
at edu.cmu.sphinx.linguist.lextree.HMMTree$EntryPointTable.createEntryPointMaps(HMMTree.java:1012) 
at edu.cmu.sphinx.linguist.lextree.HMMTree.compile(HMMTree.java:784) 
at edu.cmu.sphinx.linguist.lextree.HMMTree.<init>(HMMTree.java:706) 
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.generateHmmTree(LexTreeLinguist.java:428) 
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.compileGrammar(LexTreeLinguist.java:416) 
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.allocate(LexTreeLinguist.java:335) 
at edu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager.allocate(WordPruningBreadthFirstSearchManager.java:243) 
at edu.cmu.sphinx.decoder.AbstractDecoder.allocate(AbstractDecoder.java:103) 
at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:164) 
at edu.cmu.sphinx.api.StreamSpeechRecognizer.startRecognition(StreamSpeechRecognizer.java:52) 
at edu.cmu.sphinx.api.StreamSpeechRecognizer.startRecognition(StreamSpeechRecognizer.java:39) 

我使用the CMUDict on Github和语言模型on sourceforge

当googlin'这个错误,人们提示声学模型和字典之间存在不匹配。但是,我找不到任何有关哪些模型/字典兼容的文档。 CMU网站不提供任何指导。我尝试了几次配对,但我会很感激直接指导。

回答

0

与该模型兼容的字典已包含在发行版和source tree中。

github项目中的字典在音素中有压力痕迹,在解码器中使用之前必须先用脚本去除。

+0

该字典似乎是较小的字典。 github上的那个更大。有更大的字典吗?而且,源代码树中的语言模型要小得多。 –

+0

语言模型完全一样,字典也是一样的,他们在两个月前同步。 –