Android 上的 Pocketsphinx 演示出现问题
我尝试从此链接下载并运行离线语音识别演示 - http ://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/。我已在设备上成功安装并运行此演示项目,但是当我按住按钮并释放按钮时,它会尝试转换为文本。文本字段“您的文本在此处”变为空,但它不显示任何结果,即我们所说的文本。
请成功运行此演示的任何人帮助我提供更好的建议。
提前致谢。
I try to download and run the offline voice recognization demo from this link - http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/ . I m successfully install and run this demo project on device, but when i push and hold the button and when i release the button, it try to convert into text. The textfield "Your text goes here" becomes empty but it is not displaying the any result, i.e. Text of What we speak.
Please any one who run this demo successfully, help me with better suggestion.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,当本机 Pocket Sphinx 代码的配置出现一些错误时,文本字段将保持空白。 PocketSphinx 遇到的任何错误都应打印到日志文件中。找出你的 PocketSphinx 日志文件在哪里;它是使用 setLogfile(String path) 函数设置的。我经常发生的事情之一是字典中的单词与语言模型/语法中的单词不匹配。由于您可能还没有编辑过这些内容,所以我想说这可能是通往其中之一的错误路径。日志文件将告诉您有关无法加载的任何内容。
In my experience, the text field stays blank when there is some error in the configuration for the native pocket sphinx code. Any errors encountered by PocketSphinx should be printed to the log file. Figure out where your PocketSphinx log file is; it is set using the
setLogfile(String path)
function. One of the things that happens to me quite often is a mismatch between the words in the dictionary and the words in the language model/grammar. Since you probably haven't edited those, I'd say it could be a wrong path to one of them. The log file will tell you about anything that couldn't be loaded.