简体   繁体   English

如何将短语从助手转移到我的应用程序

[英]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.

相关问题 从我的应用程序添加Google Assistant例程 - Add Google Assistant routines from my app 如果可以,请从Google助手启动我的应用 - Launch my app from Google assistant if it is capable 如何从应用程序中打开 Google 助理? - How to open Google Assistant from an app? 如何使用谷歌助手为我的应用测试 android 切片 - how to test android slices using google assistant for my app 什么是应用程序链接助手,它与Firebase应用程序索引有何不同? - What is app links assistant and how it differs from firebase app indexing? 谷歌助理如何直接从谷歌助理应用程序发送个人 whatsapp 消息? 是 Google Assistant 为 whatsapp 制作了 UI? - How does google assistant send personal whatsapp messages directly from Google Assistant app? Is it Google Assistant who made the UI for whatsapp? 如何从Android应用程序向Google Assistant发送文本查询 - How to send a text query to Google Assistant from Android app 如何从Google Assistant启动已安装的应用程序 - How to launch our installed app from google assistant 如何从 android 手机谷歌助手控制 Android 应用程序操作 - How to control Android app action from android phone google assistant Google Assistant是否与我的自定义应用程序集成? - Google Assistant integration with my custom app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM