我正在尝试从JSGFDemo演示程序运行sphinx4。我从航站楼走了以下几步:
但我发现了一个错误:
Exception in thread "main" java.lang.ExceptionInInitializerError
at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.<init>(JSGFDemo.java:77)
at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.main(JSGFDemo.java:244)
Caused by: java.lang.RuntimeException: Uncompilable source code - package javax.speech does not exist
at com.sun.speech.engine.BaseEngine.<clinit>(BaseEngine.java:13)
... 2 more第77行是:
jsapiRecognizer = new BaseRecognizer(jsgfGrammar.getGrammarManager());我已经搜索了这个问题,我发现的只是使用IDE而不是命令行的ppl,而且我已经运行了jsapi.sh。
我该如何解决这个问题?
发布于 2014-02-20 10:13:31
JSGF演示程序没有什么重要的内容
使用最新和更新的sphinx4代码以获得最佳精度:
http://cmusphinx.sourceforge.net/wiki/tutorialsphinx4
你可以在这里下载:
https://sourceforge.net/projects/cmusphinx/files/sphinx4/5%20prealpha/
https://stackoverflow.com/questions/21890931
复制相似问题