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

Class: Aws::TranscribeStreamingService::EventStreams::AudioStream

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

Instance Method Summary collapse

Constructor Details

#initializeAudioStream

Returns a new instance of AudioStream



12
13
14
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 12

def initialize
  @event_emitter = Aws::EventEmitter.new
end

Instance Method Details

#signal_audio_event_event(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :audio_chunk (String, IO)

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



20
21
22
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 20

def signal_audio_event_event(params = {})
  @event_emitter.emit(:audio_event, params)
end

#signal_end_streamObject



24
25
26
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 24

def signal_end_stream
  @event_emitter.emit(:end_stream, {})
end