在这一页的文件上,在底部写着:
您可以在源代码中找到Sphinx-4配置文件的完整示例。例如,检查文件sphinx4/src/apps/edu/cmu/sphinx/demo/transcriber/config.xml
嗯,我看过了,该目录中没有config.xml,在demo中的任何其他文件夹中也没有这样的文件。
那么,在哪里可以找到一个默认的配置文件来开始呢?
如果我只做Configuration configuration = new Configuration();,这是否足够好呢?
发布于 2015-01-21 00:08:13
我最近发现你的建议是不够的。看一看Github存储库上的最新代码。default.config.xml文件位于https://github.com/cmusphinx/sphinx4/tree/master/sphinx4-core/src/main/resources/edu/cmu/sphinx/api,其路径在包edu.cmu.sphinx.api中的上下文类中设置:
public Context(Configuration config)
throws IOException, MalformedURLException
{
this("../sphinx4/sphinx4-core/src/main/resources/edu/cmu/sphinx/api/default.config.xml", config);
}https://stackoverflow.com/questions/27557005
复制相似问题