Class: Aws::LexRuntimeV2::Types::AudioInputEvent
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexRuntimeV2::Types::AudioInputEvent
- Defined in:
- gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#audio_chunk ⇒ String
An encoded stream of audio.
-
#client_timestamp_millis ⇒ Integer
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
-
#content_type ⇒ String
The encoding used for the audio chunk.
-
#event_id ⇒ String
A unique identifier that your application assigns to the event.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
Instance Attribute Details
#audio_chunk ⇒ String
An encoded stream of audio.
117 118 119 120 121 122 123 124 125 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 117 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#client_timestamp_millis ⇒ Integer
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
117 118 119 120 121 122 123 124 125 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 117 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#content_type ⇒ String
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
117 118 119 120 121 122 123 124 125 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 117 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#event_id ⇒ String
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
117 118 119 120 121 122 123 124 125 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 117 class AudioInputEvent < Struct.new( :audio_chunk, :content_type, :event_id, :client_timestamp_millis, :event_type) SENSITIVE = [] include Aws::Structure end |
#event_type ⇒ Object
Returns the value of attribute event_type
117 118 119 |
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 117 def event_type @event_type end |