以我的Amazon ALexa技能添加等待消息 [英] Adding Wait Message in my Amazon ALexa skill

查看:96
本文介绍了以我的Amazon ALexa技能添加等待消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发连接到外部服务的Alexa服务。为了获得响应,大约需要9到10秒。 Lambda函数正在处理请求时,是否可以在Alexa中添加消息。像这样-等等,我正在检索结果

I am developing an Alexa service which connects to an external service. In order to get the response, it takes around 9-10 seconds. Is there a way to add a message in Alexa while Lambda function is processing the request. Something like - "hang on a second. I am retrieving the results"

推荐答案

您可以让Alexa这么说,但随后用户必须对您的技能说些什么才能使控制权返回给您。

You could get Alexa to say that, but then the user would have to say something to your skill for control to return to you.

我想做的唯一方法就是使用音频播放器将响应流式传输给用户,因此您可以在用户侦听响应开始时制定响应的结束。

The only way I can think of to do what you want is to use the audio player to stream a response to the user, so you can be formulating the end of the response while the user is listening to the beginning of it.

这篇关于以我的Amazon ALexa技能添加等待消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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