2016-09-01 71 views
0

我正在使用sphinx4-5prealpha來進行文本音頻對齊。我使用這個版本的Acoustic模型和字典。出於某種原因,我想使用相同的AM和聲學模型與舊的獅身人面像-4版本,但我得到:聲學模型兼容性問題

java.lang.IndexOutOfBoundsException: Index: 13824, Size: 13824 
at java.util.ArrayList.rangeCheck(ArrayList.java:653) 
at java.util.ArrayList.get(ArrayList.java:429) 
at edu.cmu.sphinx.linguist.acoustic.tiedstate.Pool.get(Pool.java:55) 
at edu.cmu.sphinx.linguist.acoustic.tiedstate.Sphinx3Loader.createSenonePool(Sphinx3Loader.java:406) 
at edu.cmu.sphinx.linguist.acoustic.tiedstate.Sphinx3Loader.loadModelFiles(Sphinx3Loader.java:343) 
at edu.cmu.sphinx.linguist.acoustic.tiedstate.Sphinx3Loader.load(Sphinx3Loader.java:280) 
at edu.cmu.sphinx.frontend.AutoCepstrum.newProperties(AutoCepstrum.java:120) 
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:508) 
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:161) 
at edu.cmu.sphinx.util.props.PropertySheet.getComponentList(PropertySheet.java:422) 
at edu.cmu.sphinx.frontend.FrontEnd.newProperties(FrontEnd.java:160) 
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:508) 
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:290) 
at edu.cmu.sphinx.decoder.scorer.SimpleAcousticScorer.newProperties(SimpleAcousticScorer.java:46) 
at edu.cmu.sphinx.decoder.scorer.ThreadedAcousticScorer.newProperties(ThreadedAcousticScorer.java:130) 
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:508) 
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:290) 
at edu.cmu.sphinx.decoder.search.WordPruningBreadthFirstSearchManager.newProperties(WordPruningBreadthFirstSearchManager.java:201) 
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:508) 
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:290) 
at edu.cmu.sphinx.decoder.AbstractDecoder.newProperties(AbstractDecoder.java:71) 
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:37) 
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:508) 
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:290) 
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:90) 
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:508) 
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:161) 
at edu.cmu.sphinx.api.Context.<init>(Context.java:77) 
at edu.cmu.sphinx.api.Context.<init>(Context.java:49) 
at edu.cmu.sphinx.api.SpeechAligner.<init>(SpeechAligner.java:41) 

我在哪裏可以找到AM和較舊的法語版本與舊版本的獅身人面像字典兼容?謝謝。

回答

0

沒有很好的古老的法國聲學模型,你必須使用新的聲學模型和新的代碼。如果新代碼存在問題,則更容易修復它們。