[英]How to transfer a phrase from an assistant to the my app
Please tell me how to open your application through Google Assistant and transfer the phrase that the user said to it?请告诉我如何通过 Google Assistant 打开您的应用程序并将用户对它说的短语传输? Example: User: "Open the barrier number 12 in the (application name)" Then, the application opens and an action with the phrase "barrier number 12" is transmitted to MainActivity, after which the application launches what it needs.
示例:用户:“打开(应用程序名称)中的编号为 12 的障碍” 然后,应用程序打开,带有短语“编号为 12 的障碍”的操作被传输到 MainActivity,之后应用程序启动它需要的内容。
To extend your Android App to the Assistant, so users can say something like "Hey Google, order a pizza on ExampleApp" you'll need App Actions.要将您的 Android 应用程序扩展到 Google 助理,以便用户可以说“嘿 Google,在 ExampleApp 上订购披萨”之类的话,您需要 App Actions。 You use App Actions to offer deeper voice control of your apps to users by enabling them to use their voice to perform specific tasks in your app.
您可以使用App Actions为用户提供更深入的应用程序语音控制,让他们能够使用自己的声音在您的应用程序中执行特定任务。 Check out the How App Actions work section in the docs for details on how it works.
查看文档中的“应用程序操作如何工作”部分,了解有关其工作原理的详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.