在 Android 中收听语音命令
Android 应用程序是否可以一直收听语音命令而无需任何其他用户输入?
Is it possible that an android app can listen to voice commands all the time without any other user input?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
语音输入是您正在寻找的 API,您可以使用下面链接的 API;
http://developer.android.com/resources/articles/speech-input.html
在这里,您将找到您需要的RecognitionListener接口;
http://developer.android.com/reference/android/speech/package -summary.html
Speech Input is the API you're looking for, and you would use the API linked below;
http://developer.android.com/resources/articles/speech-input.html
Here, you will find the RecognitionListener interface which you need;
http://developer.android.com/reference/android/speech/package-summary.html
是的,Android 应该有一个 Speech to Text APi。获取用户输入的语音并将其转换为字符串。根据您的字符串输出,您可以对您的应用程序执行操作。
查看这篇文章以获取有关语音转文本 API 的更多信息
http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html
Yes it should be possible Android has a Speech to Text APi in it. Get the user input as speech and convert it into String. Based on your string output you can do operations on your application.
Check this post for getting more info on speech to text API
http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html