简体   繁体   English

如何在 Android Things 设备上使用默认的 Google Assistant 代理?

[英]How to use a default Google Assistant agent on an Android Things device?

I'm playing with the Google Assistant Sample code for Android Things .我正在使用Android ThingsGoogle 助理示例代码 I've got the example working, but is there a way to always start the conversation with a particular agent?我已经让示例工作了,但是有没有办法始终与特定代理开始对话?

Without having to say “Talk to my Test Robot Thing” or similar first?不必先说“和我的测试机器人对话”或类似的话?

I'm working on a project for entertainment purposes (an animated robot that has some canned physical actions and answers questions), but it takes the fun out of it if you have to talk to the default Google Assistant first (and any time your agent stops).我正在开发一个用于娱乐目的的项目(一个动画机器人,它具有一些预先确定的身体动作并回答问题),但是如果您必须首先与默认的 Google 助理交谈(以及任何时候您的代理),它就会失去乐趣停止)。 In other words, can I have the Google Assistant in my Android Things device permanently bound to my agent?换句话说,我可以将 Android Things 设备中的 Google 助理永久绑定到我的代理吗?

Comment: I could also try to use something something similar to Custom Device Actions , but AFAIK I can only handle simple actions this way, not define conversation responses (a la DiagFlow) to give my toy robot a personality.评论:我也可以尝试使用类似于Custom Device Actions 的东西,但 AFAIK 我只能以这种方式处理简单的动作,而不是定义对话响应(a la DiagFlow)来赋予我的玩具机器人个性。

You can use Custom Device Actions as a way to trigger an action when the user says a specific phrase.您可以使用自定义设备操作作为在用户说出特定短语时触发操作的一种方式。 This is for single-event commands, which are not conversational.这是针对非会话的单事件命令。

Anything beyond that would need to be handled as a custom implementation, perhaps making calls to Dialogflow and handling the response in a more conversational way.除此之外的任何事情都需要作为自定义实现来处理,也许可以调用 Dialogflow 并以更加对话的方式处理响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM