Skip to content

AudioInputEvent

Source code in docs_src/capo_lex_runtime_v2/types/audio_input_event.py
class AudioInputEvent(TypedDict, closed=True):
    audio_chunk: NotRequired["capo_lex_runtime_v2.types.audio_chunk.AudioChunk"]
    """<p>An encoded stream of audio.</p>"""
    content_type: "capo_lex_runtime_v2.types.non_empty_string.NonEmptyString"
    """<p>The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian format. The value of the field should be:</p> <p> <code>audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false</code> </p>"""
    event_id: NotRequired["capo_lex_runtime_v2.types.event_id.EventId"]
    """<p>A unique identifier that your application assigns to the event. You can use this to identify events in logs.</p>"""
    client_timestamp_millis: "capo_lex_runtime_v2.types.epoch_millis.EpochMillis"
    """<p>A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.</p>"""

audio_chunk instance-attribute

audio_chunk: NotRequired[AudioChunk]

An encoded stream of audio.

client_timestamp_millis instance-attribute

client_timestamp_millis: EpochMillis

A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.

content_type instance-attribute

content_type: NonEmptyString

The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian format. The value of the field should be:

audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false

event_id instance-attribute

event_id: NotRequired[EventId]

A unique identifier that your application assigns to the event. You can use this to identify events in logs.