在 Android 中收听语音命令

发布于 2024-09-17 00:56:13 字数 43 浏览 4 评论 0原文

Android 应用程序是否可以一直收听语音命令而无需任何其他用户输入?

Is it possible that an android app can listen to voice commands all the time without any other user input?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浅笑轻吟梦一曲 2024-09-24 00:56:13

语音输入是您正在寻找的 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

凡尘雨 2024-09-24 00:56:13

是的,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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文