Skip to content

AudioResponseEvent

Source code in docs_src/capo_lex_runtime_v2/types/audio_response_event.py
class AudioResponseEvent(TypedDict, closed=True):
    audio_chunk: NotRequired["capo_lex_runtime_v2.types.audio_chunk.AudioChunk"]
    """<p>A chunk of the audio to play. </p>"""
    content_type: NotRequired[
        "capo_lex_runtime_v2.types.non_empty_string.NonEmptyString"
    ]
    """<p>The encoding of the audio chunk. This is the same as the encoding configure in the <code>contentType</code> field of the <code>ConfigurationEvent</code>.</p>"""
    event_id: NotRequired["capo_lex_runtime_v2.types.event_id.EventId"]
    """<p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form <code>RESPONSE-N</code>, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.</p>"""

audio_chunk instance-attribute

audio_chunk: NotRequired[AudioChunk]

A chunk of the audio to play.

content_type instance-attribute

content_type: NotRequired[NonEmptyString]

The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.

event_id instance-attribute

event_id: NotRequired[EventId]

A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.