简体   繁体   English

如何在Android Things 1.0上使用Google Assistant使用不同的参数调用我的应用

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

相关问题 如何使用谷歌助手为我的应用测试 android 切片 - how to test android slices using google assistant for my app 由于自己的应用程序参数,使用Google Assistant进行GET / POST调用 - Make GET/POST calls with google assistant due to own app parameters Android Google Assistant 只用应用名称打开我的应用 - Android Google Assistant open my app with just app name Android Google 助理呼叫操作 - Android Google Assistant call action 让Google智能助理在特定状态下打开我的应用 - Make Google Assistant open my app on a specific state Android> Google Maps>叠加层:点按不同的内容以使不同的事情发生 - Android > Google Maps > Overlay: Tap different things to make different things happen 如何从 android 手机谷歌助手控制 Android 应用程序操作 - How to control Android app action from android phone google assistant 用户通过“ Ok Google,让我在线”之类的声音请求后,如何在Google Assistant中显示我的“应用程序操作”? - How to show my “app action” in google assistant, after user requesting by voice like “Ok Google, make me online”? 如何从Android应用程序向Google Assistant发送文本查询 - How to send a text query to Google Assistant from Android app Android Things如何从应用程序调用WiFi设置 - Android Things How to call WiFi settings from app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM