Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Repeats

Focus mode
Repeats - Amazon Lex

The following table shows the supported repeated expansions for rules. For more information, see Repeats in the Speech recognition grammar specification version 1 W3C recommendation.

XML form

Example

Behavior Supported?

repeat="n"

repeat="6"

The contained expression is repeated exactly "n" times. "n" must be "0" or a positive integer. Yes

repeat="m-n"

repeat="4-6"

The contained expansion is repeated between "m" and "n" times (inclusive). "m" and "n" must both be "0" or a positive integer, and "m" must be less than or equal to "n". Yes

repeat="m-"

repeat="3-"

The contained expansion is repeated "m" times or more (inclusive). "m" must be "0" or a postive integer. For example, "3-" declares that the contained expansion can occur three, four, five, or more times. Yes

repeat="0-1"

The contained expansion is optional. Yes

<item repeat="2-4" repeat-prob="0.8">

  No
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.