Adding Wait Message in my Amazon ALexa skill

一笑奈何 提交于 2019-12-11 03:19:33

问题


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"


回答1:


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.




回答2:


Yes, It is possible through Progressive Response Api which targets exactly your use case.

According to docs:

Your skill can send progressive responses to keep the user engaged while your skill prepares a full response to the user's request. A progressive response is interstitial SSML content (including text-to-speech and short audio) that Alexa plays while waiting for your full skill response.



来源:https://stackoverflow.com/questions/45757814/adding-wait-message-in-my-amazon-alexa-skill

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!