在Android 4.0中访问连续语音识别
我正在尝试让连续的语音输入在我的 Android 应用程序中工作。我尝试使用内置的 SpeechRecognizer
Intent,但它会等待用户说完后再处理单词。这对我来说还不够。我需要设备在用户仍在说话时处理单词。
我读到现在冰淇淋三明治支持这一点。但是,我没有找到任何允许我访问此功能的 API。有谁知道现在这是如何运作的?
感谢您的帮助!
I am trying to get continuous voice input to work in my Android application. I tried using the built-in SpeechRecognizer
Intent but it waits for the user to finish speaking before processing the words. This is not sufficient for me. I need the device to process the words while the user is still speaking.
I read that this is supported in Ice Cream Sandwich now. However, I did not find any API that allows me to access this feature. Does anyone know how this works now?
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您听说过 Android 4.0 的新语音输入功能。看看这篇文章。
您必须使用外部库。虽然文章说该库是为 IME 开发人员设计的,但正如我所见,语音识别的结果将出现在通过 InputMethodService 注册的 IME 中。您还可以检查该库的来源,因为它是 Google 代码上的项目< /a>
I guess you heard about the new voice typing feature of Android 4.0. Take a look at this article.
You have to use an external library for it. Though the article says the library is designed for IME developers, and as I see the result of voice recognition will appear in a registered IME through InputMethodService. You can also check the source of the library, because it is a project on Google Code