AudioInputEvent¶
Structure Class¶
AudioInputEvent
dataclass
¶
Represents a chunk of audio sent from the client application to Amazon Lex V2. The audio is all or part of an utterance from the user.
Amazon Lex V2 accumulates audio chunks until it recognizes a natural pause in speech before processing the input.
Attributes¶
audio_chunk
class-attribute
instance-attribute
¶
audio_chunk: bytes | None = None
An encoded stream of audio.
client_timestamp_millis
class-attribute
instance-attribute
¶
client_timestamp_millis: int = 0
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: str
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
class-attribute
instance-attribute
¶
event_id: str | None = None
A unique identifier that your application assigns to the event. You can use this to identify events in logs.