简体   繁体   English

如何从 alexa 技能中与不同的回声设备交谈?

[英]How to talk to a different echo device from within an alexa skill?

The alexa skill gets launched from echo device Kitchen and shall do a dialogue using echo device Bedroom as example. alexa 技能从回声设备厨房启动,并以回声设备卧室为例进行对话。

  • Is it possible at all?有可能吗?
  • How to do it in node.js or python? node.js或python怎么办?

This should be done by a skill not by a routine because the actual target device is retrieved via a REST api.这应该通过技巧而不是常规来完成,因为实际的目标设备是通过 REST api 检索的。

This seems like a common task.这似乎是一项常见的任务。 Surprisingly I was not able to even figure out, if it is possible at all.令人惊讶的是,如果可能的话,我什至无法弄清楚。 Maybe it is too common.也许这太普遍了。

I don't believe it's possible to achieve the CX you described with Alexa Skill Kits today.我认为今天使用 Alexa Skill Kits 不可能实现您描述的 CX。

As an end-user, you can use the announcement feature to broadcast a message to all of your supported Alexa devices, eg "Alexa, announce dinner is ready" .作为最终用户,您可以使用公告功能向所有支持的 Alexa 设备广播消息,例如“Alexa,宣布晚餐已准备就绪” You can exclude certain devices by turning on "Do Not Disturb" mode, or disabling the announcement feature in their device setting.您可以通过打开“请勿打扰”模式或在设备设置中禁用通知功能来排除某些设备。

If you're an enterprise customer (eg business, healthcare, hospitality...etc.), you can use the Alexa Smart Properties API to send an announcement to a specific device you manage.如果您是企业客户(例如商业、医疗、酒店等),您可以使用Alexa Smart Properties API向您管理的特定设备发送公告。

For ASK, the closest thing is the Notification API .对于 ASK,最接近的是通知 API But the CX is a bit different , like the user needs to say "Alexa, read my notifications" , and you can't target a specific echo device.CX 有点不同,比如用户需要说“Alexa,阅读我的通知” ,而你不能针对特定的回声设备。

I'm curious about your use case.我很好奇你的用例。 As a skill developer, why do you want to send a dialogue to a different echo device?作为技能开发者,为什么要将对话发送到不同的回声设备?

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

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