aws-sdk-transcribestreamingservice 1.18.0 → 1.23.0

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
2
  SHA256:
3
- metadata.gz: e3b892780a1b12c2874dcb899f6bcf4c6708a911ae19e7d5e7cd3175e63a2b8a
4
- data.tar.gz: 42907f747be112c6c74b9332a1aecd6d932af2c4c57411cfe916b02f6818b51e
3
+ metadata.gz: a20677881e3bfb3a3b6c5bfd8a67b149867bbead6c0a60e9ddf84ffbbd120708
4
+ data.tar.gz: 97e88c82f7147e1053c0fedb5603310d4edd0bd87b364636a5dd8ba4f09a1771
5
5
  SHA512:
6
- metadata.gz: ec75dbefad6aaac5e8ac2d2a6856a42c7ec8d2670f58bfff906b7f818d346904e9fa82b2442c59e643e254d77f2a6f5bcccbb2034308a6100d3b7ea0d3e22a49
7
- data.tar.gz: 7f393917b5c18ac237be5748a0646e20b6c5382cabfa2a112df79082588f4534afc85fe93486019704a5ebe85b7969d4d4a65b1d4ff957da7c579893b98942cb
6
+ metadata.gz: f10f1f7cab618e0e622f24f5202ca40c629d13ccd7975205eeb88f414fd8da713037b4a5246d236fe4125980beca7112f5ae494d2aee867fddad0b9c82028a29
7
+ data.tar.gz: d4fb5c51f036330585abd36eb4c8ee66616fd1c9298b68e0e40d53adcdbd9e8c4ad6076bbd2009791f73ba22e6c1efa3cc84aec44fa4d2a545c6519b7ee1b2fd
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -46,9 +47,9 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
46
47
  #
47
48
  # See {Errors} for more information.
48
49
  #
49
- # @service
50
+ # @!group service
50
51
  module Aws::TranscribeStreamingService
51
52
 
52
- GEM_VERSION = '1.18.0'
53
+ GEM_VERSION = '1.23.0'
53
54
 
54
55
  end
@@ -68,13 +68,28 @@ module Aws::TranscribeStreamingService
68
68
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
69
69
  # credentials.
70
70
  #
71
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
72
+ # shared file, such as `~/.aws/config`.
73
+ #
74
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
75
+ #
76
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
77
+ # assume a role after providing credentials via the web.
78
+ #
79
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
80
+ # access token generated from `aws login`.
81
+ #
82
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
83
+ # process that outputs to stdout.
84
+ #
71
85
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
72
86
  # from an EC2 IMDS on an EC2 instance.
73
87
  #
74
- # * `Aws::SharedCredentials` - Used for loading credentials from a
75
- # shared file, such as `~/.aws/config`.
88
+ # * `Aws::ECSCredentials` - Used for loading credentials from
89
+ # instances running in ECS.
76
90
  #
77
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
91
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
92
+ # from the Cognito Identity service.
78
93
  #
79
94
  # When `:credentials` are not configured directly, the following
80
95
  # locations will be searched for credentials:
@@ -84,10 +99,10 @@ module Aws::TranscribeStreamingService
84
99
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
85
100
  # * `~/.aws/credentials`
86
101
  # * `~/.aws/config`
87
- # * EC2 IMDS instance profile - When used by default, the timeouts are
88
- # very aggressive. Construct and pass an instance of
89
- # `Aws::InstanceProfileCredentails` to enable retries and extended
90
- # timeouts.
102
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
103
+ # are very aggressive. Construct and pass an instance of
104
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
105
+ # enable retries and extended timeouts.
91
106
  #
92
107
  # @option options [required, String] :region
93
108
  # The AWS region to connect to. The configured `:region` is
@@ -272,6 +287,21 @@ module Aws::TranscribeStreamingService
272
287
  # @option params [Boolean] :show_speaker_label
273
288
  # When `true`, enables speaker identification in your real-time stream.
274
289
  #
290
+ # @option params [Boolean] :enable_channel_identification
291
+ # When `true`, instructs Amazon Transcribe to process each audio channel
292
+ # separately and then merge the transcription output of each channel
293
+ # into a single transcription.
294
+ #
295
+ # Amazon Transcribe also produces a transcription of each item. An item
296
+ # includes the start time, end time, and any alternative transcriptions.
297
+ #
298
+ # You can't set both `ShowSpeakerLabel` and
299
+ # `EnableChannelIdentification` in the same request. If you set both,
300
+ # your request returns a `BadRequestException`.
301
+ #
302
+ # @option params [Integer] :number_of_channels
303
+ # The number of channels that are in your audio stream.
304
+ #
275
305
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
276
306
  #
277
307
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -284,6 +314,8 @@ module Aws::TranscribeStreamingService
284
314
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
285
315
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
286
316
  # * {Types::StartStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
317
+ # * {Types::StartStreamTranscriptionResponse#enable_channel_identification #enable_channel_identification} => Boolean
318
+ # * {Types::StartStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
287
319
  #
288
320
  # @example Bi-directional EventStream Operation Example
289
321
  #
@@ -380,7 +412,7 @@ module Aws::TranscribeStreamingService
380
412
  # @example Request syntax with placeholder values
381
413
  #
382
414
  # async_resp = async_client.start_stream_transcription({
383
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU
415
+ # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE
384
416
  # media_sample_rate_hertz: 1, # required
385
417
  # media_encoding: "pcm", # required, accepts pcm
386
418
  # vocabulary_name: "VocabularyName",
@@ -389,6 +421,8 @@ module Aws::TranscribeStreamingService
389
421
  # vocabulary_filter_name: "VocabularyFilterName",
390
422
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
391
423
  # show_speaker_label: false,
424
+ # enable_channel_identification: false,
425
+ # number_of_channels: 1,
392
426
  # })
393
427
  # # => Seahorse::Client::AsyncResponse
394
428
  # async_resp.wait
@@ -398,7 +432,7 @@ module Aws::TranscribeStreamingService
398
432
  # @example Response structure
399
433
  #
400
434
  # resp.request_id #=> String
401
- # resp.language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU"
435
+ # resp.language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE"
402
436
  # resp.media_sample_rate_hertz #=> Integer
403
437
  # resp.media_encoding #=> String, one of "pcm"
404
438
  # resp.vocabulary_name #=> String
@@ -422,6 +456,7 @@ module Aws::TranscribeStreamingService
422
456
  # event.transcript.results[0].alternatives[0].items[0].content #=> String
423
457
  # event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
424
458
  # event.transcript.results[0].alternatives[0].items[0].speaker #=> String
459
+ # event.transcript.results[0].channel_id #=> String
425
460
  #
426
461
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
427
462
  # event.message #=> String
@@ -441,6 +476,8 @@ module Aws::TranscribeStreamingService
441
476
  # resp.vocabulary_filter_name #=> String
442
477
  # resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
443
478
  # resp.show_speaker_label #=> Boolean
479
+ # resp.enable_channel_identification #=> Boolean
480
+ # resp.number_of_channels #=> Integer
444
481
  #
445
482
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
446
483
  #
@@ -485,7 +522,7 @@ module Aws::TranscribeStreamingService
485
522
  http_response: Seahorse::Client::Http::AsyncResponse.new,
486
523
  config: config)
487
524
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
488
- context[:gem_version] = '1.18.0'
525
+ context[:gem_version] = '1.23.0'
489
526
  Seahorse::Client::Request.new(handlers, context)
490
527
  end
491
528
 
@@ -87,13 +87,28 @@ module Aws::TranscribeStreamingService
87
87
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
88
88
  # credentials.
89
89
  #
90
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
91
+ # shared file, such as `~/.aws/config`.
92
+ #
93
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
94
+ #
95
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
96
+ # assume a role after providing credentials via the web.
97
+ #
98
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
99
+ # access token generated from `aws login`.
100
+ #
101
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
102
+ # process that outputs to stdout.
103
+ #
90
104
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
91
105
  # from an EC2 IMDS on an EC2 instance.
92
106
  #
93
- # * `Aws::SharedCredentials` - Used for loading credentials from a
94
- # shared file, such as `~/.aws/config`.
107
+ # * `Aws::ECSCredentials` - Used for loading credentials from
108
+ # instances running in ECS.
95
109
  #
96
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
110
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
111
+ # from the Cognito Identity service.
97
112
  #
98
113
  # When `:credentials` are not configured directly, the following
99
114
  # locations will be searched for credentials:
@@ -103,10 +118,10 @@ module Aws::TranscribeStreamingService
103
118
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
104
119
  # * `~/.aws/credentials`
105
120
  # * `~/.aws/config`
106
- # * EC2 IMDS instance profile - When used by default, the timeouts are
107
- # very aggressive. Construct and pass an instance of
108
- # `Aws::InstanceProfileCredentails` to enable retries and extended
109
- # timeouts.
121
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
122
+ # are very aggressive. Construct and pass an instance of
123
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
124
+ # enable retries and extended timeouts.
110
125
  #
111
126
  # @option options [required, String] :region
112
127
  # The AWS region to connect to. The configured `:region` is
@@ -336,7 +351,7 @@ module Aws::TranscribeStreamingService
336
351
  params: params,
337
352
  config: config)
338
353
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
339
- context[:gem_version] = '1.18.0'
354
+ context[:gem_version] = '1.23.0'
340
355
  Seahorse::Client::Request.new(handlers, context)
341
356
  end
342
357
 
@@ -30,6 +30,7 @@ module Aws::TranscribeStreamingService
30
30
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
31
31
  MediaEncoding = Shapes::StringShape.new(name: 'MediaEncoding')
32
32
  MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
33
+ NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
33
34
  RequestId = Shapes::StringShape.new(name: 'RequestId')
34
35
  Result = Shapes::StructureShape.new(name: 'Result')
35
36
  ResultList = Shapes::ListShape.new(name: 'ResultList')
@@ -84,6 +85,7 @@ module Aws::TranscribeStreamingService
84
85
  Result.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
85
86
  Result.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
86
87
  Result.add_member(:alternatives, Shapes::ShapeRef.new(shape: AlternativeList, location_name: "Alternatives"))
88
+ Result.add_member(:channel_id, Shapes::ShapeRef.new(shape: String, location_name: "ChannelId"))
87
89
  Result.struct_class = Types::Result
88
90
 
89
91
  ResultList.member = Shapes::ShapeRef.new(shape: Result)
@@ -100,6 +102,8 @@ module Aws::TranscribeStreamingService
100
102
  StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
101
103
  StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
102
104
  StartStreamTranscriptionRequest.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
105
+ StartStreamTranscriptionRequest.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
106
+ StartStreamTranscriptionRequest.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
103
107
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
104
108
  StartStreamTranscriptionRequest[:payload] = :audio_stream
105
109
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -114,6 +118,8 @@ module Aws::TranscribeStreamingService
114
118
  StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
115
119
  StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
116
120
  StartStreamTranscriptionResponse.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
121
+ StartStreamTranscriptionResponse.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
122
+ StartStreamTranscriptionResponse.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
117
123
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
118
124
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
119
125
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
@@ -195,6 +195,14 @@ module Aws::TranscribeStreamingService
195
195
  # transcription.
196
196
  # @return [Array<Types::Alternative>]
197
197
  #
198
+ # @!attribute [rw] channel_id
199
+ # When channel identification is enabled, Amazon Transcribe
200
+ # transcribes the speech from each audio channel separately.
201
+ #
202
+ # You can use `ChannelId` to retrieve the transcription results for a
203
+ # single channel in your audio stream.
204
+ # @return [String]
205
+ #
198
206
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Result AWS API Documentation
199
207
  #
200
208
  class Result < Struct.new(
@@ -202,7 +210,8 @@ module Aws::TranscribeStreamingService
202
210
  :start_time,
203
211
  :end_time,
204
212
  :is_partial,
205
- :alternatives)
213
+ :alternatives,
214
+ :channel_id)
206
215
  SENSITIVE = []
207
216
  include Aws::Structure
208
217
  end
@@ -225,7 +234,7 @@ module Aws::TranscribeStreamingService
225
234
  # data as a hash:
226
235
  #
227
236
  # {
228
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU
237
+ # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE
229
238
  # media_sample_rate_hertz: 1, # required
230
239
  # media_encoding: "pcm", # required, accepts pcm
231
240
  # vocabulary_name: "VocabularyName",
@@ -234,6 +243,8 @@ module Aws::TranscribeStreamingService
234
243
  # vocabulary_filter_name: "VocabularyFilterName",
235
244
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
236
245
  # show_speaker_label: false,
246
+ # enable_channel_identification: false,
247
+ # number_of_channels: 1,
237
248
  # }
238
249
  #
239
250
  # @!attribute [rw] language_code
@@ -288,6 +299,24 @@ module Aws::TranscribeStreamingService
288
299
  # stream.
289
300
  # @return [Boolean]
290
301
  #
302
+ # @!attribute [rw] enable_channel_identification
303
+ # When `true`, instructs Amazon Transcribe to process each audio
304
+ # channel separately and then merge the transcription output of each
305
+ # channel into a single transcription.
306
+ #
307
+ # Amazon Transcribe also produces a transcription of each item. An
308
+ # item includes the start time, end time, and any alternative
309
+ # transcriptions.
310
+ #
311
+ # You can't set both `ShowSpeakerLabel` and
312
+ # `EnableChannelIdentification` in the same request. If you set both,
313
+ # your request returns a `BadRequestException`.
314
+ # @return [Boolean]
315
+ #
316
+ # @!attribute [rw] number_of_channels
317
+ # The number of channels that are in your audio stream.
318
+ # @return [Integer]
319
+ #
291
320
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
292
321
  #
293
322
  class StartStreamTranscriptionRequest < Struct.new(
@@ -299,7 +328,9 @@ module Aws::TranscribeStreamingService
299
328
  :audio_stream,
300
329
  :vocabulary_filter_name,
301
330
  :vocabulary_filter_method,
302
- :show_speaker_label)
331
+ :show_speaker_label,
332
+ :enable_channel_identification,
333
+ :number_of_channels)
303
334
  SENSITIVE = []
304
335
  include Aws::Structure
305
336
  end
@@ -346,6 +377,14 @@ module Aws::TranscribeStreamingService
346
377
  # Shows whether speaker identification was enabled in the stream.
347
378
  # @return [Boolean]
348
379
  #
380
+ # @!attribute [rw] enable_channel_identification
381
+ # Shows whether channel identification has been enabled in the stream.
382
+ # @return [Boolean]
383
+ #
384
+ # @!attribute [rw] number_of_channels
385
+ # The number of channels identified in the stream.
386
+ # @return [Integer]
387
+ #
349
388
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
350
389
  #
351
390
  class StartStreamTranscriptionResponse < Struct.new(
@@ -358,7 +397,9 @@ module Aws::TranscribeStreamingService
358
397
  :transcript_result_stream,
359
398
  :vocabulary_filter_name,
360
399
  :vocabulary_filter_method,
361
- :show_speaker_label)
400
+ :show_speaker_label,
401
+ :enable_channel_identification,
402
+ :number_of_channels)
362
403
  SENSITIVE = []
363
404
  include Aws::Structure
364
405
  end
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.18.0
4
+ version: 1.23.0
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-08-19 00:00:00.000000000 Z
11
+ date: 2020-11-04 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.99.0
22
+ version: 3.109.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.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement