使用Google助手直接与我的Android应用对话并执行非常简单的任务 [英] Use Google Assistant to directly talk to my Android app and execute a very simple task

查看:146
本文介绍了使用Google助手直接与我的Android应用对话并执行非常简单的任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个将Google Assistant与现有Android应用程序集成的项目.要求很简单.假设我的应用程序名为TestApp,并且我希望它仅更改应用程序主页的背景颜色,我想说

I am working on a project to integrate the Google Assistant with an existing Android app. The requirements are simple. Assuming my app is named TestApp and I want it to just change the background color of the app home page, I want to be able to say,

"嘿,Google,在TestApp上将背景更改为黑色."

为我提供了指向 ActionsSDK 的链接,但经过调查,我发现它只是扩展Google Assistant的独立应用程序,与android本身无关.

I was given links to ActionsSDK, but looking into it, I see that it is only a stand-alone app that extends Google Assistant and has nothing to do with android itself.

我发现最能满足我需要的API是语音交互 .这与我需要完成的操作非常相似,但是只允许预设语音触发,例如"给此人打电话... "或"在...处设置警报"但不能像我的示例那样执行"更改背景... ".根据此链接,不允许自定义语音操作.

The closest API I found that does what I need is the Voice Interactions. This is very similar to what I need done but it only allows preset voice triggers such as "call this person..." or "set alarm at...", but cannot do "change background..." like in in my example. According to this link, custom voice actions aren't allowed.

所以我的问题是,是否可以直接与我的应用进行交互并使它执行非常简单的任务?

So my question is, is it possible to directly interact with my app and have it do a very simple task?

谢谢

推荐答案

您可能想将Android应用媒体资源与您的Actions项目关联,以在Play商店中出售您的数字商品.实施数字交易以销售您的Play商店商品,这是与您的行动"对话的一部分.

You may want to connect an Android app property with your Actions project to sell your digital goods in the Play store. Implement digital transactions to sell your Play store items as part of a conversation with your Action.

要将Android应用程序与Actions控制台项目连接,首先需要将网站连接到您的项目.请按照上文连接网站"中提供的说明进行操作.

To connect an Android app with your Actions console project, you will first need to connect a website to your project. Follow the instructions provided above in Connecting a website.

连接网站后,在Android应用程序下,单击连接应用程序"按钮,然后按照显示的说明进行操作.在Play控制台中完成说明后,最多可能需要24小时才能将所连接的Android应用反映在Actions控制台中. 在Google上实际操作

Once you've connected a website, under Android app, click the Connect App button and follow the instructions shown. Once you have completed the instructions over in the Play console, it may take up to 24hrs before the connected Android app is reflected in the Actions console. Try this in Action on google

这篇关于使用Google助手直接与我的Android应用对话并执行非常简单的任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆