Skip to content

what is the maximum value for "x-amz-lex:audio:start-timeout-ms:*.*" ?

0

what is the maximum value for "x-amz-lex:audio:start-timeout-ms:." ?

I can only find in documentation default is 4000ms. In addition during testing , it appears duration 8000ms only provides 6000ms. Is this the limit 6000ms ?

2 Answers
2
Accepted Answer

The parameter "x-amz-lex:audio:start-timeout-ms:" has following specifications:

  • Default value: 4000ms (4 seconds)
  • Maximum value: 10000ms (10 seconds)

Use case example: The timeout can be increased in situations where customers need more time, such as retrieving a credit card to provide card details.

Best practice: While you can set it up to 10 seconds, it's not recommended to use very long timeouts as it impacts user experience by keeping the bot waiting for user input.

Reference: https://docs.aws.amazon.com/lexv2/latest/dg/session-attribs-speech.html#:~:text=to%2055%2C000%20milliseconds.-,Voice%20timeout,-x%2Damz%2Dlex

AWS
answered 10 months ago
EXPERT
reviewed 10 months ago
-3

The documentation doesn't specify a maximum value for the "x-amz-lex:audio:start-timeout-ms" parameter. This parameter defines how long Amazon Lex V2 waits before assuming that the customer isn't going to speak.

According to the available information, the default value for this parameter is 3000 milliseconds (3 seconds) when used with Amazon Connect's "Get customer input" block. For general Lex V2 usage, the documentation indicates that the startTimeoutMs parameter (which is the equivalent API parameter) has a minimum value of 1, but doesn't mention a maximum limit.

Your observation about setting 8000ms but only getting 6000ms of actual timeout isn't directly addressed in the documentation. This could be due to implementation details or other factors not specified in the available information.

It's worth noting that while there isn't a documented maximum for this specific parameter, Amazon Lex does have other related limits, such as a maximum audio length of 55 seconds for the entire input.
Sources
Flow block in Amazon Connect: Get customer input - Amazon Connect
AudioAndDTMFInputSpecification - Amazon Lex API Reference
Quotas - Amazon Lex

answered 10 months ago
  • From AWS docs, https://docs.aws.amazon.com/lexv2/latest/dg/session-attribs-speech.html , the default is shown to be 4000ms. When I set the timeout to 4000ms, it remains as 6000ms. Where else can the timeout be set? It is not showing in any other customer get input block in the flow.

  • Hi AWS Support, I have re-tested and can confirm the the time out actually remains at around 4000ms, even when I change the Audio start " x- amz-lex:audio:start-timeout-ms:. " for all intents to 6000ms or 8000ms.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.