aws-sdk-transcribestreamingservice 1.11.0 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4f5ef52d2d82670a40c0bdabd0983c72caf6df00
4
- data.tar.gz: 41d80ba82ac6dd27f40e179a921a3f8fbb5bb453
2
+ SHA256:
3
+ metadata.gz: 690e695e6e40aa2926019b174e6b51629f8ebedc164b08bd1edb52c4b8e83689
4
+ data.tar.gz: 72f97beabab790f6ef164c72eb2e7b4d9765101b1ec31ceef8355029e6598700
5
5
  SHA512:
6
- metadata.gz: c21c911802cfee7c95c2aa574d0d0824ee4a0f39c1f59f878e12e8cf982a6cb06210611be33319fd2302bd50ec40cef922e0fdf74ca7f827948ad86ad970f127
7
- data.tar.gz: 9dfffaf787a2132265c04804373ecb7a32002f7be511eebdcf4b67e58ca2064b3f91a2a57b46aadd4b7fb819847643242517c12a88e5ad70ef6ec6f474fd6e7f
6
+ metadata.gz: 6d0f8503bf59b611da76270a64c2685b4da32c727e832158f30cb4f775753c30e0b67e6c9970bab57cf3c53850b73cc2406c0107bf0e6dffbb26574c43890d88
7
+ data.tar.gz: b680068a3822e89d722a6987a030a26ba8efb5ab0434fa9312df9346324a8adb6977fec8fa47b80fdbc00e6ef532e8f722ca870272177ac1e51141ae4c281fa5
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
47
47
  # @service
48
48
  module Aws::TranscribeStreamingService
49
49
 
50
- GEM_VERSION = '1.11.0'
50
+ GEM_VERSION = '1.16.1'
51
51
 
52
52
  end
@@ -23,6 +23,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
25
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
+ require 'aws-sdk-core/plugins/http_checksum.rb'
26
27
  require 'aws-sdk-core/plugins/invocation_id.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
@@ -52,6 +53,7 @@ module Aws::TranscribeStreamingService
52
53
  add_plugin(Aws::Plugins::StubResponses)
53
54
  add_plugin(Aws::Plugins::IdempotencyToken)
54
55
  add_plugin(Aws::Plugins::JsonvalueConverter)
56
+ add_plugin(Aws::Plugins::HttpChecksum)
55
57
  add_plugin(Aws::Plugins::InvocationId)
56
58
  add_plugin(Aws::Plugins::SignatureV4)
57
59
  add_plugin(Aws::Plugins::Protocols::RestJson)
@@ -88,7 +90,7 @@ module Aws::TranscribeStreamingService
88
90
  # @option options [required, String] :region
89
91
  # The AWS region to connect to. The configured `:region` is
90
92
  # used to determine the service `:endpoint`. When not passed,
91
- # a default `:region` is search for in the following locations:
93
+ # a default `:region` is searched for in the following locations:
92
94
  #
93
95
  # * `Aws.config[:region]`
94
96
  # * `ENV['AWS_REGION']`
@@ -116,7 +118,7 @@ module Aws::TranscribeStreamingService
116
118
  # @option options [String] :endpoint
117
119
  # The client endpoint is normally constructed from the `:region`
118
120
  # option. You should only configure an `:endpoint` when connecting
119
- # to test endpoints. This should be avalid HTTP(S) URI.
121
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
120
122
  #
121
123
  # @option options [Proc] :event_stream_handler
122
124
  # When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
@@ -178,15 +180,19 @@ module Aws::TranscribeStreamingService
178
180
  #
179
181
  # @option options [String] :retry_mode ("legacy")
180
182
  # Specifies which retry algorithm to use. Values are:
181
- # * `legacy` - The pre-existing retry behavior. This is default value if
182
- # no retry mode is provided.
183
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
184
- # This includes support for retry quotas, which limit the number of
185
- # unsuccessful retries a client can make.
186
- # * `adaptive` - An experimental retry mode that includes all the
187
- # functionality of `standard` mode along with automatic client side
188
- # throttling. This is a provisional mode that may change behavior
189
- # in the future.
183
+ #
184
+ # * `legacy` - The pre-existing retry behavior. This is default value if
185
+ # no retry mode is provided.
186
+ #
187
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
188
+ # This includes support for retry quotas, which limit the number of
189
+ # unsuccessful retries a client can make.
190
+ #
191
+ # * `adaptive` - An experimental retry mode that includes all the
192
+ # functionality of `standard` mode along with automatic client side
193
+ # throttling. This is a provisional mode that may change behavior
194
+ # in the future.
195
+ #
190
196
  #
191
197
  # @option options [String] :secret_access_key
192
198
  #
@@ -248,6 +254,19 @@ module Aws::TranscribeStreamingService
248
254
  # Amazon Transcribe will generate one for you and return it in the
249
255
  # response.
250
256
  #
257
+ # @option params [String] :vocabulary_filter_name
258
+ # The name of the vocabulary filter you've created that is unique to
259
+ # your AWS accountf. Provide the name in this field to successfully use
260
+ # it in a stream.
261
+ #
262
+ # @option params [String] :vocabulary_filter_method
263
+ # The manner in which you use your vocabulary filter to filter words in
264
+ # your transcript. `Remove` removes filtered words from your
265
+ # transcription results. `Mask` masks those words with a `***` in your
266
+ # transcription results. `Tag` keeps the filtered words in your
267
+ # transcription results and tags them. The tag appears as
268
+ # `VocabularyFilterMatch` equal to `True`
269
+ #
251
270
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
252
271
  #
253
272
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -257,6 +276,8 @@ module Aws::TranscribeStreamingService
257
276
  # * {Types::StartStreamTranscriptionResponse#vocabulary_name #vocabulary_name} => String
258
277
  # * {Types::StartStreamTranscriptionResponse#session_id #session_id} => String
259
278
  # * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
279
+ # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
280
+ # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
260
281
  #
261
282
  # @example Bi-directional EventStream Operation Example
262
283
  #
@@ -288,6 +309,9 @@ module Aws::TranscribeStreamingService
288
309
  # out_stream.on_conflict_exception_event do |event|
289
310
  # event # => Aws::TranscribeStreamingService::Types::ConflictException
290
311
  # end
312
+ # out_stream.on_service_unavailable_exception_event do |event|
313
+ # event # => Aws::TranscribeStreamingService::Types::ServiceUnavailableException
314
+ # end
291
315
  #
292
316
  # end
293
317
  # # => returns Aws::Seahorse::Client::AsyncResponse
@@ -323,6 +347,9 @@ module Aws::TranscribeStreamingService
323
347
  # output_stream.on_conflict_exception_event do |event|
324
348
  # event # => Aws::TranscribeStreamingService::Types::ConflictException
325
349
  # end
350
+ # output_stream.on_service_unavailable_exception_event do |event|
351
+ # event # => Aws::TranscribeStreamingService::Types::ServiceUnavailableException
352
+ # end
326
353
  # output_stream.on_error_event do |event|
327
354
  # # catch unmodeled error event in the stream
328
355
  # raise event
@@ -353,6 +380,8 @@ module Aws::TranscribeStreamingService
353
380
  # vocabulary_name: "VocabularyName",
354
381
  # session_id: "SessionId",
355
382
  # input_event_stream_hander: EventStreams::AudioStream.new,
383
+ # vocabulary_filter_name: "VocabularyFilterName",
384
+ # vocabulary_filter_method: "remove", # accepts remove, mask, tag
356
385
  # })
357
386
  # # => Seahorse::Client::AsyncResponse
358
387
  # async_resp.wait
@@ -369,7 +398,7 @@ module Aws::TranscribeStreamingService
369
398
  # resp.session_id #=> String
370
399
  # All events are available at resp.transcript_result_stream:
371
400
  # resp.transcript_result_stream #=> Enumerator
372
- # resp.transcript_result_stream.event_types #=> [:transcript_event, :bad_request_exception, :limit_exceeded_exception, :internal_failure_exception, :conflict_exception]
401
+ # resp.transcript_result_stream.event_types #=> [:transcript_event, :bad_request_exception, :limit_exceeded_exception, :internal_failure_exception, :conflict_exception, :service_unavailable_exception]
373
402
  #
374
403
  # For :transcript_event event available at #on_transcript_event_event callback and response eventstream enumerator:
375
404
  # event.transcript.results #=> Array
@@ -384,6 +413,7 @@ module Aws::TranscribeStreamingService
384
413
  # event.transcript.results[0].alternatives[0].items[0].end_time #=> Float
385
414
  # event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
386
415
  # event.transcript.results[0].alternatives[0].items[0].content #=> String
416
+ # event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
387
417
  #
388
418
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
389
419
  # event.message #=> String
@@ -397,6 +427,12 @@ module Aws::TranscribeStreamingService
397
427
  # For :conflict_exception event available at #on_conflict_exception_event callback and response eventstream enumerator:
398
428
  # event.message #=> String
399
429
  #
430
+ # For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
431
+ # event.message #=> String
432
+ #
433
+ # resp.vocabulary_filter_name #=> String
434
+ # resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
435
+ #
400
436
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
401
437
  #
402
438
  # @overload start_stream_transcription(params = {})
@@ -440,7 +476,7 @@ module Aws::TranscribeStreamingService
440
476
  http_response: Seahorse::Client::Http::AsyncResponse.new,
441
477
  config: config)
442
478
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
443
- context[:gem_version] = '1.11.0'
479
+ context[:gem_version] = '1.16.1'
444
480
  Seahorse::Client::Request.new(handlers, context)
445
481
  end
446
482
 
@@ -453,8 +489,8 @@ module Aws::TranscribeStreamingService
453
489
  when nil then event_stream_class.new
454
490
  else
455
491
  msg = "expected #{type}_event_stream_handler to be a block or "\
456
- "instance of Aws::TranscribeStreamingService::#{event_stream_class}"\
457
- ", got `#{handler.inspect}` instead"
492
+ "instance of Aws::TranscribeStreamingService::#{event_stream_class}"\
493
+ ", got `#{handler.inspect}` instead"
458
494
  raise ArgumentError, msg
459
495
  end
460
496
  end
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
30
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -33,11 +34,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:transcribestreamingservice)
33
34
  module Aws::TranscribeStreamingService
34
35
  # An API client for TranscribeStreamingService. To construct a client, you need to configure a `:region` and `:credentials`.
35
36
  #
36
- # client = Aws::TranscribeStreamingService::Client.new(
37
- # region: region_name,
38
- # credentials: credentials,
39
- # # ...
40
- # )
37
+ # client = Aws::TranscribeStreamingService::Client.new(
38
+ # region: region_name,
39
+ # credentials: credentials,
40
+ # # ...
41
+ # )
41
42
  #
42
43
  # For details on configuring region and credentials see
43
44
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -70,6 +71,7 @@ module Aws::TranscribeStreamingService
70
71
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
71
72
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
72
73
  add_plugin(Aws::Plugins::TransferEncoding)
74
+ add_plugin(Aws::Plugins::HttpChecksum)
73
75
  add_plugin(Aws::Plugins::SignatureV4)
74
76
  add_plugin(Aws::Plugins::Protocols::RestJson)
75
77
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -107,7 +109,7 @@ module Aws::TranscribeStreamingService
107
109
  # @option options [required, String] :region
108
110
  # The AWS region to connect to. The configured `:region` is
109
111
  # used to determine the service `:endpoint`. When not passed,
110
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
111
113
  #
112
114
  # * `Aws.config[:region]`
113
115
  # * `ENV['AWS_REGION']`
@@ -163,7 +165,7 @@ module Aws::TranscribeStreamingService
163
165
  # @option options [String] :endpoint
164
166
  # The client endpoint is normally constructed from the `:region`
165
167
  # option. You should only configure an `:endpoint` when connecting
166
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
167
169
  #
168
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
169
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -178,7 +180,7 @@ module Aws::TranscribeStreamingService
178
180
  # requests fetching endpoints information. Defaults to 60 sec.
179
181
  #
180
182
  # @option options [Boolean] :endpoint_discovery (false)
181
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
182
184
  #
183
185
  # @option options [Proc] :event_stream_handler
184
186
  # When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
@@ -240,15 +242,19 @@ module Aws::TranscribeStreamingService
240
242
  #
241
243
  # @option options [String] :retry_mode ("legacy")
242
244
  # Specifies which retry algorithm to use. Values are:
243
- # * `legacy` - The pre-existing retry behavior. This is default value if
244
- # no retry mode is provided.
245
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
246
- # This includes support for retry quotas, which limit the number of
247
- # unsuccessful retries a client can make.
248
- # * `adaptive` - An experimental retry mode that includes all the
249
- # functionality of `standard` mode along with automatic client side
250
- # throttling. This is a provisional mode that may change behavior
251
- # in the future.
245
+ #
246
+ # * `legacy` - The pre-existing retry behavior. This is default value if
247
+ # no retry mode is provided.
248
+ #
249
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
250
+ # This includes support for retry quotas, which limit the number of
251
+ # unsuccessful retries a client can make.
252
+ #
253
+ # * `adaptive` - An experimental retry mode that includes all the
254
+ # functionality of `standard` mode along with automatic client side
255
+ # throttling. This is a provisional mode that may change behavior
256
+ # in the future.
257
+ #
252
258
  #
253
259
  # @option options [String] :secret_access_key
254
260
  #
@@ -276,8 +282,7 @@ module Aws::TranscribeStreamingService
276
282
  #
277
283
  # @option options [Integer] :http_read_timeout (60) The default
278
284
  # number of seconds to wait for response data. This value can
279
- # safely be set
280
- # per-request on the session yielded by {#session_for}.
285
+ # safely be set per-request on the session.
281
286
  #
282
287
  # @option options [Float] :http_idle_timeout (5) The number of
283
288
  # seconds a connection is allowed to sit idle before it is
@@ -289,7 +294,7 @@ module Aws::TranscribeStreamingService
289
294
  # request body. This option has no effect unless the request has
290
295
  # "Expect" header set to "100-continue". Defaults to `nil` which
291
296
  # disables this behaviour. This value can safely be set per
292
- # request on the session yielded by {#session_for}.
297
+ # request on the session.
293
298
  #
294
299
  # @option options [Boolean] :http_wire_trace (false) When `true`,
295
300
  # HTTP debug output will be sent to the `:logger`.
@@ -329,7 +334,7 @@ module Aws::TranscribeStreamingService
329
334
  params: params,
330
335
  config: config)
331
336
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
332
- context[:gem_version] = '1.11.0'
337
+ context[:gem_version] = '1.16.1'
333
338
  Seahorse::Client::Request.new(handlers, context)
334
339
  end
335
340
 
@@ -31,6 +31,7 @@ module Aws::TranscribeStreamingService
31
31
  RequestId = Shapes::StringShape.new(name: 'RequestId')
32
32
  Result = Shapes::StructureShape.new(name: 'Result')
33
33
  ResultList = Shapes::ListShape.new(name: 'ResultList')
34
+ ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
34
35
  SessionId = Shapes::StringShape.new(name: 'SessionId')
35
36
  StartStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartStreamTranscriptionRequest')
36
37
  StartStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartStreamTranscriptionResponse')
@@ -38,6 +39,8 @@ module Aws::TranscribeStreamingService
38
39
  Transcript = Shapes::StructureShape.new(name: 'Transcript')
39
40
  TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
40
41
  TranscriptResultStream = Shapes::StructureShape.new(name: 'TranscriptResultStream')
42
+ VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
43
+ VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
41
44
  VocabularyName = Shapes::StringShape.new(name: 'VocabularyName')
42
45
 
43
46
  Alternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
@@ -65,6 +68,7 @@ module Aws::TranscribeStreamingService
65
68
  Item.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
66
69
  Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
67
70
  Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
71
+ Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
68
72
  Item.struct_class = Types::Item
69
73
 
70
74
  ItemList.member = Shapes::ShapeRef.new(shape: Item)
@@ -81,12 +85,17 @@ module Aws::TranscribeStreamingService
81
85
 
82
86
  ResultList.member = Shapes::ShapeRef.new(shape: Result)
83
87
 
88
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
89
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
90
+
84
91
  StartStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
85
92
  StartStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
86
93
  StartStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
87
94
  StartStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
88
95
  StartStreamTranscriptionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
89
96
  StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
97
+ StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
98
+ StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
90
99
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
91
100
  StartStreamTranscriptionRequest[:payload] = :audio_stream
92
101
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -98,6 +107,8 @@ module Aws::TranscribeStreamingService
98
107
  StartStreamTranscriptionResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
99
108
  StartStreamTranscriptionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
100
109
  StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
110
+ StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
111
+ StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
101
112
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
102
113
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
103
114
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
@@ -113,6 +124,7 @@ module Aws::TranscribeStreamingService
113
124
  TranscriptResultStream.add_member(:limit_exceeded_exception, Shapes::ShapeRef.new(shape: LimitExceededException, event: true, location_name: "LimitExceededException"))
114
125
  TranscriptResultStream.add_member(:internal_failure_exception, Shapes::ShapeRef.new(shape: InternalFailureException, event: true, location_name: "InternalFailureException"))
115
126
  TranscriptResultStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, event: true, location_name: "ConflictException"))
127
+ TranscriptResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
116
128
  TranscriptResultStream.struct_class = Types::TranscriptResultStream
117
129
 
118
130
 
@@ -143,6 +155,7 @@ module Aws::TranscribeStreamingService
143
155
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
144
156
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
145
157
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
158
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
146
159
  o.async = true
147
160
  end)
148
161
  end
@@ -57,6 +57,10 @@ module Aws::TranscribeStreamingService
57
57
  @event_emitter.on(:conflict_exception, block) if block_given?
58
58
  end
59
59
 
60
+ def on_service_unavailable_exception_event(&block)
61
+ @event_emitter.on(:service_unavailable_exception, block) if block_given?
62
+ end
63
+
60
64
  def on_error_event(&block)
61
65
  @event_emitter.on(:error, block) if block_given?
62
66
  end
@@ -65,14 +69,20 @@ module Aws::TranscribeStreamingService
65
69
  @event_emitter.on(:initial_response, block) if block_given?
66
70
  end
67
71
 
72
+ def on_unknown_event(&block)
73
+ @event_emitter.on(:unknown_event, block) if block_given?
74
+ end
75
+
68
76
  def on_event(&block)
69
77
  on_transcript_event_event(&block)
70
78
  on_bad_request_exception_event(&block)
71
79
  on_limit_exceeded_exception_event(&block)
72
80
  on_internal_failure_exception_event(&block)
73
81
  on_conflict_exception_event(&block)
82
+ on_service_unavailable_exception_event(&block)
74
83
  on_error_event(&block)
75
84
  on_initial_response_event(&block)
85
+ on_unknown_event(&block)
76
86
  end
77
87
 
78
88
  # @api private
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::TranscribeStreamingService
9
- # This class provides a resource oriented interface for TranscribeStreamingService.
10
- # To create a resource object:
11
- # resource = Aws::TranscribeStreamingService::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::TranscribeStreamingService::Client.new(region: 'us-west-2')
15
- # resource = Aws::TranscribeStreamingService::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -114,13 +114,20 @@ module Aws::TranscribeStreamingService
114
114
  # The word or punctuation that was recognized in the input audio.
115
115
  # @return [String]
116
116
  #
117
+ # @!attribute [rw] vocabulary_filter_match
118
+ # Indicates whether a word in the item matches a word in the
119
+ # vocabulary filter you've chosen for your real-time stream. If
120
+ # `true` then a word in the item matches your vocabulary filter.
121
+ # @return [Boolean]
122
+ #
117
123
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
118
124
  #
119
125
  class Item < Struct.new(
120
126
  :start_time,
121
127
  :end_time,
122
128
  :type,
123
- :content)
129
+ :content,
130
+ :vocabulary_filter_match)
124
131
  include Aws::Structure
125
132
  end
126
133
 
@@ -184,6 +191,19 @@ module Aws::TranscribeStreamingService
184
191
  include Aws::Structure
185
192
  end
186
193
 
194
+ # Service is currently unavailable. Try your request later.
195
+ #
196
+ # @!attribute [rw] message
197
+ # @return [String]
198
+ #
199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/ServiceUnavailableException AWS API Documentation
200
+ #
201
+ class ServiceUnavailableException < Struct.new(
202
+ :message,
203
+ :event_type)
204
+ include Aws::Structure
205
+ end
206
+
187
207
  # @note When making an API call, you may pass StartStreamTranscriptionRequest
188
208
  # data as a hash:
189
209
  #
@@ -194,6 +214,8 @@ module Aws::TranscribeStreamingService
194
214
  # vocabulary_name: "VocabularyName",
195
215
  # session_id: "SessionId",
196
216
  # input_event_stream_hander: EventStreams::AudioStream.new,
217
+ # vocabulary_filter_name: "VocabularyFilterName",
218
+ # vocabulary_filter_method: "remove", # accepts remove, mask, tag
197
219
  # }
198
220
  #
199
221
  # @!attribute [rw] language_code
@@ -227,6 +249,21 @@ module Aws::TranscribeStreamingService
227
249
  # HTTP2 data frame.
228
250
  # @return [Types::AudioStream]
229
251
  #
252
+ # @!attribute [rw] vocabulary_filter_name
253
+ # The name of the vocabulary filter you've created that is unique to
254
+ # your AWS accountf. Provide the name in this field to successfully
255
+ # use it in a stream.
256
+ # @return [String]
257
+ #
258
+ # @!attribute [rw] vocabulary_filter_method
259
+ # The manner in which you use your vocabulary filter to filter words
260
+ # in your transcript. `Remove` removes filtered words from your
261
+ # transcription results. `Mask` masks those words with a `***` in your
262
+ # transcription results. `Tag` keeps the filtered words in your
263
+ # transcription results and tags them. The tag appears as
264
+ # `VocabularyFilterMatch` equal to `True`
265
+ # @return [String]
266
+ #
230
267
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
231
268
  #
232
269
  class StartStreamTranscriptionRequest < Struct.new(
@@ -235,7 +272,9 @@ module Aws::TranscribeStreamingService
235
272
  :media_encoding,
236
273
  :vocabulary_name,
237
274
  :session_id,
238
- :audio_stream)
275
+ :audio_stream,
276
+ :vocabulary_filter_name,
277
+ :vocabulary_filter_method)
239
278
  include Aws::Structure
240
279
  end
241
280
 
@@ -257,7 +296,7 @@ module Aws::TranscribeStreamingService
257
296
  # @return [String]
258
297
  #
259
298
  # @!attribute [rw] vocabulary_name
260
- # The name of the vocabulary used when processing the job.
299
+ # The name of the vocabulary used when processing the stream.
261
300
  # @return [String]
262
301
  #
263
302
  # @!attribute [rw] session_id
@@ -269,6 +308,14 @@ module Aws::TranscribeStreamingService
269
308
  # to your application.
270
309
  # @return [Types::TranscriptResultStream]
271
310
  #
311
+ # @!attribute [rw] vocabulary_filter_name
312
+ # The name of the vocabulary filter used in your real-time stream.
313
+ # @return [String]
314
+ #
315
+ # @!attribute [rw] vocabulary_filter_method
316
+ # The vocabulary filtering method used in the real-time stream.
317
+ # @return [String]
318
+ #
272
319
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
273
320
  #
274
321
  class StartStreamTranscriptionResponse < Struct.new(
@@ -278,7 +325,9 @@ module Aws::TranscribeStreamingService
278
325
  :media_encoding,
279
326
  :vocabulary_name,
280
327
  :session_id,
281
- :transcript_result_stream)
328
+ :transcript_result_stream,
329
+ :vocabulary_filter_name,
330
+ :vocabulary_filter_method)
282
331
  include Aws::Structure
283
332
  end
284
333
 
@@ -355,7 +404,8 @@ module Aws::TranscribeStreamingService
355
404
  :bad_request_exception,
356
405
  :limit_exceeded_exception,
357
406
  :internal_failure_exception,
358
- :conflict_exception
407
+ :conflict_exception,
408
+ :service_unavailable_exception
359
409
  ]
360
410
  end
361
411
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-transcribestreamingservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.5.2.3
86
+ rubygems_version: 2.7.6.2
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: AWS SDK for Ruby - Amazon Transcribe Streaming Service