Alexa Skills Set SDK - increase timeout of skill

久未见 提交于 2019-12-01 11:36:36

问题


I am building an Alexa instructional exercise skill using the Alexa Skill Set SDK on nodejs. I am saving each cooking step to the DB, therefore if the skill times out, the user can reopen the skill and continue where they left off.

Problem is that users are annoyed that they have to keeping reopening the skill, people work at different speeds, is it possible to keep the skill open or increase the time out whilst I wait for the user to complete the step and then say "Alexa, next step"?

I tried increasing the lambda timeout, it made no difference.


回答1:


I have been trying to do this for quite awhile. There have been several responses on the Amazon developer forums from folks at Amazon (for example, this response) that state that the approximate 8-10 second timeout is not configurable.




回答2:


Following solution is bit of a hack and not recommended, but may serve your purpose.

Just modify your response like below:

<speak>

    Tell recipe step here. 
    <audio src="<-- Hostel silent mp3 file URL -->" /> 

</speak> 

You can add a silent mp3 file in your response. Your skill will be on for the time of that mp3 file.

But to interrupt Alexa in the mid of this response, user will have to say Alexa, next step instead of Next step.




回答3:


There is API you could call to provide progressive response



来源:https://stackoverflow.com/questions/43443602/alexa-skills-set-sdk-increase-timeout-of-skill

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