2016-08-17 89 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

語言模型完全一樣,字典也是一樣的,他們在兩個月前同步。 –