Play a prompt and wait for input. The input can be received either as digits from the keypad, or from speech, or both depending on what [prompt parameters](#parameters) are set. | Name | Type | Default | Description | |:-|:|:--|:| | promptRequired | object | - | An object that accepts the [prompt parameters](#parameters). | ## **prompt Parameters** {#parameters} | Name | Type | Default | Description | |:-|:--|:--|:| | playRequired | string \| string[] | - | Either a [playable sound](#playable-sounds), an array of [playable sounds](#playable-sounds) | | volumeOptional | number | 0 | Volume gain to apply to played URLs. Allowed values from -40.0 to 40.0. | | say_voiceOptional | string | Polly.Salli | Voice to use with say: for text to speech | | say_languageOptional | string | en-US | Language to use with say: for text to speech | | say_genderOptional | string | female | Gender to use with say: for text to speech | | max_digitsOptional | integer | 1 | Number of digits to collect | | terminatorsOptional | string | - | Digits that terminate digit collection | | digit_timeoutOptional | number | 5.0 seconds | Time in seconds to wait for next digit | | initial_timeoutOptional | number | 5.0 seconds | Time in seconds to wait for start of input | | speech_timeoutOptional | number | - | Max time in seconds to wait for speech result | | speech_end_timeoutOptional | number | - | Time in seconds to wait for end of speech utterance | | speech_languageOptional | string | - | Language to detect speech in | | speech_hintsOptional | string[] | - | Expected words to match | :::note By default, only digit input via keypad is enabled. When **at least one** speech input based parameter is set (speech_timeout, speech_end_timeout, speech_language or speech_hints), speech input is enabled and digit input is disabled. To enable speech and digit based input collection at once, set at least one speech input parameter and at least one digit input based parameter (max_digits, terminators, digit_timeout, and initial_timeout). ::: ## **Playable sounds** import PlayableSounds from ./_sharedtables/playable_sounds.mdx;