如何保持Alexa技能开放? [英] How to keep an alexa skill open?

查看:90
本文介绍了如何保持Alexa技能开放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创造了一种技巧,使人们可以跟踪某些状态。

I have created a skill so that people can keep track of some state. But instead of asking alexa everytime to open the app and interact.

alexa ask grocerylist to add 2 eggs
alexa ask grocerylist to add bread

我想保持杂货店的技能开放,以便用户与之互动直到他们要求关闭

I would want to keep the grocerylist skill open so that users can interact with it until they ask it to close

alexa open grocerylist
.... 2 mins later
add 2 eggs
.... 1 min later
add bread

有办法吗无需每次都使用 alexa询问杂货店列表即可做到这一点。

Is there a way to do this without having to use alexa ask grocerylist every time.

推荐答案

这是不可能的。这是一项安全功能,因此第3方无法创建一种技巧来监听某人的讲话。您可以做出响应,并且如果您未设置 endSession标志,它将使会话保持打开状态。但它只会保持打开状态约8秒钟。如果您设置了重新提示,它将在那时将它们读为重新提示,并再保持打开状态8秒钟。因此,您可以将线路保持打开状态的最大值为16秒左右。

This is not possible. It is a security feature so 3rd parties cannot create a skill to "listen in" on everything someone is saying. You can respond, and if you don't set the "endSession" flag, it will keep the session open. But it will only remain open for about 8 seconds. If you have set a reprompt, it will read them the reprompt at that point and stay open for another 8 seconds. So the maximum you can keep the line open for is 16 or so seconds.

这篇关于如何保持Alexa技能开放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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