[英]How to locate the grammar file in sphinx java
i am making a speech to text application using sphinx But the location of the grammar file in the config.xml is not correct or i am not getting the right path.我正在使用 sphinx 对文本应用程序进行演讲,但是 config.xml 中语法文件的位置不正确,或者我没有找到正确的路径。
<!-- ******************************************************** -->
<!-- The Grammar configuration -->
<!-- ******************************************************** -->
<component name="jsgfGrammar" type="edu.cmu.sphinx.jsapi.JSGFGrammar">
<property name="dictionary" value="dictionary"/>
<property name="grammarLocation"
value="resource:/com/stt/project/" />
<property name="grammarName" value="Grammer"/>
<property name="logMath" value="logMath"/>
</component>
The structure of the files are in the image here : File Hiererchy of the project文件的结构在这里的图像中:项目的文件层次结构
This problem has been resolved by using the cmusphinx api
此问题已通过使用 cmusphinx api 解决
You might want to pick one of the implementations ?您可能想选择其中一种实现?
Update based on discussion: You can look at Sphinks4 for Speech-to-text as it seems all the implementations at the moment are for the other way around.基于讨论的更新:您可以查看Sphinks4的 Speech-to-text,因为目前似乎所有的实现都是相反的。
您可以查看 CMUSphinks api for Speech-to-text,因为目前似乎所有的实现都是相反的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.