简体   繁体   English

Android - 使用语音命令执行操作

[英]Android - Perform an action with voice command

Searched through the internet and couldn't find a god example of achieving the following.通过互联网搜索,找不到实现以下内容的上帝示例。 There is a Launcher activity.有一个启动器活动。 User will be navigated to the launcher activity first and inside that activity , when the user says a certain word like "Start" or something like that the app should navigate the user to another activity.用户将首先导航到启动器 Activity 并在该 Activity 内部,当用户说出某个词(如“开始”或类似应用程序应将用户导航到另一个 Activity)时。 I've gone through a set of tutorials , and I've seen some similar questions at SO but none of them make sense to me.我已经完成了一组教程,并且我在 SO 上看到了一些类似的问题,但没有一个对我有意义。 What will be the best approach to achieve this ?实现这一目标的最佳方法是什么?

Basically what you have to do is基本上你要做的是

  • build a framework/module to handle Speech Input ( speech-2-text )构建一个框架/模块来处理语音输入 ( speech-2-text )
    • Depending on Input by user, perform an action根据用户输入,执行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM