class Aws::TranscribeStreamingService::EventStreams::AudioStream

Attributes

event_emitter[R]

@api private @return Aws::EventEmitter

Public Class Methods

new() click to toggle source
# File lib/aws-sdk-transcribestreamingservice/event_streams.rb, line 14
def initialize
  @event_emitter = Aws::EventEmitter.new
end

Public Instance Methods

signal_audio_event_event(params = {}) click to toggle source

@option params [String, StringIO, File] :audio_chunk

An audio blob that contains the next part of the audio that you want
to transcribe. The maximum audio chunk size is 32 KB.
# File lib/aws-sdk-transcribestreamingservice/event_streams.rb, line 22
def signal_audio_event_event(params = {})
  @event_emitter.emit(:audio_event, params)
end
signal_end_stream() click to toggle source
# File lib/aws-sdk-transcribestreamingservice/event_streams.rb, line 26
def signal_end_stream
  @event_emitter.emit(:end_stream, {})
end