AudioResponseEvent¶
Structure Class¶
AudioResponseEvent
dataclass
¶
An event sent from Amazon Lex V2 to your client application containing audio to play to the user.
Attributes¶
audio_chunk
class-attribute
instance-attribute
¶
audio_chunk: bytes | None = None
A chunk of the audio to play.
content_type
class-attribute
instance-attribute
¶
content_type: str | None = None
The encoding of the audio chunk. This is the same as the encoding
configure in the contentType field of the ConfigurationEvent.
event_id
class-attribute
instance-attribute
¶
event_id: str | None = None
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.