Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically Introduce Pauses or Long Delays into Alexa Skill Capturing Input

I work at a NLI company and I have just created a skill where I have pretty much an open mic session with our Alexa Skill through the Amazon Echo. Everything works fine and I can have an open dialog with our backend knowledge base, without having to prefix anything with Alexa.

When I demo this skill, inevitably someone in the room interrupts and wants to enquire about how the NLI piece operates. If I mute the echo or don't ask it questions or answer its questions in a short period of time, the skill times out. I'm then forced to begin the interaction again but asking Alexa to start MySkillInvocation.

Question:

Is there a programmatic way to extend the timeout period when listening back from an Alexa Ask Response? Possibly even a way to programmatically pause a running skill?

like image 521
Peter Joles Avatar asked Mar 08 '16 19:03

Peter Joles


People also ask

What programming language does Alexa skills use?

js, Java, Python, C#, Go, Ruby, or PowerShell. You can author a web service in any language appropriate for web services. If you choose the Alexa-hosted skill option, you write your code in Node. js and Python.

Why is there a delay in Alexa's response?

TL/DR: Your command goes to the Internet, then back to your home network. If you have a slow home network and/or slow Internet access, you'll experience delays. See if you can get better Wifi connections to your devices. Alexa relays your voice command to Amazon's servers, where it is interpreted.


1 Answers

The question of whether the timeout is configurable has been asked on a thread on the Amazon Developer Forums, here's the answer from an Amazon resource as of April 22nd, 2015:

The current setting is 8 seconds, which it not configurable.

Thanks,

Nick

I have not been able to find any documentation to suggest that this situation has changed since that time, unfortunately.

like image 97
Sam Hanley Avatar answered Sep 21 '22 17:09

Sam Hanley