You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::TranscribeStreamingService::Types::AudioEvent

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/types.rb

Overview

Note:

When making an API call, you may pass AudioEvent data as a hash:

{
  audio_chunk: "data",
}

Provides a wrapper for the audio chunks that you are sending.

Instance Attribute Summary collapse

Instance Attribute Details

#audio_chunkString

An audio blob that contains the next part of the audio that you want to transcribe.

Returns:

  • (String)


45
46
47
48
49
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/types.rb', line 45

class AudioEvent < Struct.new(
  :audio_chunk,
  :event_type)
  include Aws::Structure
end

#event_typeObject

Returns the value of attribute event_type

Returns:

  • (Object)

    the current value of event_type



45
46
47
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/types.rb', line 45

def event_type
  @event_type
end