[英]How to make Google Assistant on Android Things 1.0 call my app with different parameters
I'm programming a Java/Android on a RaspBerry PI 3 using Android Things 0.6 version. 我正在使用Android Things 0.6版本在RaspBerry PI 3上编程Java / Android。 According to the news, google released today (07/05/2018) a version of the operation system supporting Google Assistant for Android Things 1.0.
根据消息,谷歌今天(2018年5月7日)发布了一个操作系统版本,该版本支持适用于Android Things 1.0的Google Assistant。
Does anybody know how to make the assistant call my app sending different parameters on the intent to my Activity? 有人知道如何让助手打电话给我的应用,以便向我的活动发送意图不同的参数吗? The idea is enabling voice command to different behaviors of my app taking advantage of the assistant.
这个想法是利用助手来对我的应用程序的不同行为启用语音命令。
If you register custom device actions , you are able to get callbacks when running the sample when the user says specific phrases. 如果注册自定义设备操作 ,则在用户说出特定短语时运行示例时,您将能够获得回调。
Specifically, you create and deploy an action package, then check for a device action in the AssistResponse
. 具体来说,您创建并部署一个操作包,然后在
AssistResponse
检查设备操作。 It will allow you to get back parameters and general commands. 它将允许您取回参数和常规命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.