StartConversationRequestEventStream
Represents a stream of events between your application and Amazon Lex V2.
Inheritors
Types
Speech audio sent from your client application to Amazon Lex V2. Audio starts accumulating when Amazon Lex V2 identifies a voice and continues until a natural pause in the speech is found before processing.
Configuration information sent from your client application to Amazon Lex V2
Event sent from the client application to indicate to Amazon Lex V2 that the conversation is over.
DTMF information sent to Amazon Lex V2 by your application. Amazon Lex V2 accumulates the DMTF information from when the user sends the first character and ends
Event sent from the client application to Amazon Lex V2 to indicate that it has finished playing audio and that Amazon Lex V2 should start listening for user input.
Text sent from your client application to Amazon Lex V2. Each TextInputEvent
is processed individually.
Functions
Casts this StartConversationRequestEventStream as a AudioInputEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.AudioInputEvent value. Throws an exception if the StartConversationRequestEventStream is not a AudioInputEvent.
Casts this StartConversationRequestEventStream as a AudioInputEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.AudioInputEvent value. Returns null if the StartConversationRequestEventStream is not a AudioInputEvent.
Casts this StartConversationRequestEventStream as a ConfigurationEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.ConfigurationEvent value. Throws an exception if the StartConversationRequestEventStream is not a ConfigurationEvent.
Casts this StartConversationRequestEventStream as a ConfigurationEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.ConfigurationEvent value. Returns null if the StartConversationRequestEventStream is not a ConfigurationEvent.
Casts this StartConversationRequestEventStream as a DisconnectionEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.DisconnectionEvent value. Throws an exception if the StartConversationRequestEventStream is not a DisconnectionEvent.
Casts this StartConversationRequestEventStream as a DisconnectionEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.DisconnectionEvent value. Returns null if the StartConversationRequestEventStream is not a DisconnectionEvent.
Casts this StartConversationRequestEventStream as a DtmfInputEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.DtmfInputEvent value. Throws an exception if the StartConversationRequestEventStream is not a DtmfInputEvent.
Casts this StartConversationRequestEventStream as a DtmfInputEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.DtmfInputEvent value. Returns null if the StartConversationRequestEventStream is not a DtmfInputEvent.
Casts this StartConversationRequestEventStream as a PlaybackCompletionEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent value. Throws an exception if the StartConversationRequestEventStream is not a PlaybackCompletionEvent.
Casts this StartConversationRequestEventStream as a PlaybackCompletionEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.PlaybackCompletionEvent value. Returns null if the StartConversationRequestEventStream is not a PlaybackCompletionEvent.
Casts this StartConversationRequestEventStream as a TextInputEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.TextInputEvent value. Throws an exception if the StartConversationRequestEventStream is not a TextInputEvent.
Casts this StartConversationRequestEventStream as a TextInputEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.TextInputEvent value. Returns null if the StartConversationRequestEventStream is not a TextInputEvent.