Sphinx4 helloworld indexOutOfBoundException

时间:2017-12-03 13:03:47

标签: java eclipse sphinx4

我正在运行sphinx提供的HelloWorld代码。 它开始并等待我在麦克风中说些什么,但当我开始说话时它给了我这个错误:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 110, Size: 110
    at java.util.SubList.rangeCheck(Unknown Source)
    at java.util.SubList.get(Unknown Source)
    at edu.cmu.sphinx.decoder.scorer.ScoreableJob.getFirst(ThreadedAcousticScorer.java:516)
    at edu.cmu.sphinx.decoder.scorer.ThreadedAcousticScorer.scoreScoreables(ThreadedAcousticScorer.java:310)
    at edu.cmu.sphinx.decoder.scorer.ThreadedAcousticScorer.calculateScores(ThreadedAcousticScorer.java:276)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.scoreTokens(SimpleBreadthFirstSearchManager.java:340)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.recognize(SimpleBreadthFirstSearchManager.java:261)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.recognize(SimpleBreadthFirstSearchManager.java:229)
    at edu.cmu.sphinx.decoder.Decoder.decode(Decoder.java:94)
    at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:116)
    at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:135)
    at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:72)

我确实将堆内存添加到jvm中。 谁知道这个错误是什么? 谢谢你的帮助

0 个答案:

没有答案