Class: Aws::LexRuntimeV2::Types::AudioResponseEvent

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-lexruntimev2/types.rb

Overview

An event sent from Amazon Lex V2 to your client application containing audio to play to the user.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#audio_chunkString

A chunk of the audio to play.

Returns:

  • (String)


148
149
150
151
152
153
154
155
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 148

class AudioResponseEvent < Struct.new(
  :audio_chunk,
  :content_type,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#content_typeString

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

Returns:

  • (String)


148
149
150
151
152
153
154
155
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 148

class AudioResponseEvent < Struct.new(
  :audio_chunk,
  :content_type,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#event_idString

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.

Returns:

  • (String)


148
149
150
151
152
153
154
155
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 148

class AudioResponseEvent < Struct.new(
  :audio_chunk,
  :content_type,
  :event_id,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#event_typeObject

Returns the value of attribute event_type

Returns:

  • (Object)

    the current value of event_type



148
149
150
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 148

def event_type
  @event_type
end