Class: Aws::Polly::EventStreams::StartSpeechSynthesisStreamEventStream
- Inherits:
-
Object
- Object
- Aws::Polly::EventStreams::StartSpeechSynthesisStreamEventStream
- Defined in:
- lib/aws-sdk-polly/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
Instance Method Summary collapse
-
#initialize ⇒ StartSpeechSynthesisStreamEventStream
constructor
A new instance of StartSpeechSynthesisStreamEventStream.
- #on_audio_event_event(&block) ⇒ Object
- #on_error_event(&block) ⇒ Object
- #on_event(&block) ⇒ Object
- #on_initial_response_event(&block) ⇒ Object
- #on_service_failure_exception_event(&block) ⇒ Object
- #on_service_quota_exceeded_exception_event(&block) ⇒ Object
- #on_stream_closed_event_event(&block) ⇒ Object
- #on_throttling_exception_event(&block) ⇒ Object
- #on_unknown_event(&block) ⇒ Object
- #on_validation_exception_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ StartSpeechSynthesisStreamEventStream
Returns a new instance of StartSpeechSynthesisStreamEventStream.
51 52 53 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 51 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.
105 106 107 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 105 def event_emitter @event_emitter end |
Instance Method Details
#on_audio_event_event(&block) ⇒ Object
55 56 57 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 55 def on_audio_event_event(&block) @event_emitter.on(:audio_event, block) if block_given? end |
#on_error_event(&block) ⇒ Object
79 80 81 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 79 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 91 def on_event(&block) on_audio_event_event(&block) on_stream_closed_event_event(&block) on_validation_exception_event(&block) on_service_quota_exceeded_exception_event(&block) on_service_failure_exception_event(&block) on_throttling_exception_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_initial_response_event(&block) ⇒ Object
83 84 85 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 83 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_service_failure_exception_event(&block) ⇒ Object
71 72 73 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 71 def on_service_failure_exception_event(&block) @event_emitter.on(:service_failure_exception, block) if block_given? end |
#on_service_quota_exceeded_exception_event(&block) ⇒ Object
67 68 69 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 67 def on_service_quota_exceeded_exception_event(&block) @event_emitter.on(:service_quota_exceeded_exception, block) if block_given? end |
#on_stream_closed_event_event(&block) ⇒ Object
59 60 61 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 59 def on_stream_closed_event_event(&block) @event_emitter.on(:stream_closed_event, block) if block_given? end |
#on_throttling_exception_event(&block) ⇒ Object
75 76 77 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 75 def on_throttling_exception_event(&block) @event_emitter.on(:throttling_exception, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
87 88 89 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 87 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |
#on_validation_exception_event(&block) ⇒ Object
63 64 65 |
# File 'lib/aws-sdk-polly/event_streams.rb', line 63 def on_validation_exception_event(&block) @event_emitter.on(:validation_exception, block) if block_given? end |