Class: Aws::TranscribeStreamingService::EventStreams::AudioStream
- Inherits:
-
Object
- Object
- Aws::TranscribeStreamingService::EventStreams::AudioStream
- Defined in:
- lib/aws-sdk-transcribestreamingservice/event_streams.rb,
lib/aws-sdk-transcribestreamingservice/event_streams.rb,
lib/aws-sdk-transcribestreamingservice/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
Instance Method Summary collapse
-
#initialize ⇒ AudioStream
constructor
A new instance of AudioStream.
- #signal_audio_event_event(params = {}) ⇒ Object
- #signal_configuration_event_event(params = {}) ⇒ Object
- #signal_end_stream ⇒ Object
Constructor Details
#initialize ⇒ AudioStream
Returns a new instance of AudioStream.
14 15 16 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 14 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Attribute Details
#event_emitter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Aws::EventEmitter.
44 45 46 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 44 def event_emitter @event_emitter end |
Instance Method Details
#signal_audio_event_event(params = {}) ⇒ Object
22 23 24 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 22 def signal_audio_event_event(params = {}) @event_emitter.emit(:audio_event, params) end |
#signal_configuration_event_event(params = {}) ⇒ Object
34 35 36 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 34 def signal_configuration_event_event(params = {}) @event_emitter.emit(:configuration_event, params) end |
#signal_end_stream ⇒ Object
38 39 40 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 38 def signal_end_stream @event_emitter.emit(:end_stream, {}) end |