aws-sdk-transcribestreamingservice 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e9a6ef9fb878069b18b366b7ad948afe0a8830ddffd930fd614354fa3184c7f
4
- data.tar.gz: 546423c7c0c10e0208dab08732d6e3035c5ec73716635b1602ecdcb6be7bb9ed
3
+ metadata.gz: d98293ed110ac182fd1ddd8921ec0502a00ad12a0e62fbf8e3ef832da9a77adc
4
+ data.tar.gz: '018bb294617b4fe429c9a1e6802378b6a84557cd5ad5681ab0af6d2b47e21d19'
5
5
  SHA512:
6
- metadata.gz: 19d7777faf2918e2de1251ec543dfed8d5d64fc72a6998b10e012eb19e29f0139db76966faff177edc7a65a39d2d8bd14df9f0577867e5427624e3036aed1dc2
7
- data.tar.gz: 74803e9db449ab82637dbb51b762d1c6318c45d315ea51c0d81d64da23eecc35e026e6271eb785c4b34856c3c0b4928791abec41555ef70f5f4de750d871f75d
6
+ metadata.gz: b477700de7d54abfdf2ea390c7b5d479a3eaa6e76ce2ad9eabc4937886d700ee1fe1189d369bf68a17dbda9c32b0377c826008ae17ef7ac49119dfba9c1499a1
7
+ data.tar.gz: c8d1968e3513856304bd1ce0e2ec18cdc4ccb7928175bfbd080ea8719ef3755f74884e56edcd19587dab87a8314edce56883e4c9018b20a4a27cf631bc6d99c7
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
50
50
  # @!group service
51
51
  module Aws::TranscribeStreamingService
52
52
 
53
- GEM_VERSION = '1.20.0'
53
+ GEM_VERSION = '1.21.0'
54
54
 
55
55
  end
@@ -287,6 +287,21 @@ module Aws::TranscribeStreamingService
287
287
  # @option params [Boolean] :show_speaker_label
288
288
  # When `true`, enables speaker identification in your real-time stream.
289
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
+ #
290
305
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
291
306
  #
292
307
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -299,6 +314,8 @@ module Aws::TranscribeStreamingService
299
314
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
300
315
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
301
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
302
319
  #
303
320
  # @example Bi-directional EventStream Operation Example
304
321
  #
@@ -404,6 +421,8 @@ module Aws::TranscribeStreamingService
404
421
  # vocabulary_filter_name: "VocabularyFilterName",
405
422
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
406
423
  # show_speaker_label: false,
424
+ # enable_channel_identification: false,
425
+ # number_of_channels: 1,
407
426
  # })
408
427
  # # => Seahorse::Client::AsyncResponse
409
428
  # async_resp.wait
@@ -437,6 +456,7 @@ module Aws::TranscribeStreamingService
437
456
  # event.transcript.results[0].alternatives[0].items[0].content #=> String
438
457
  # event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
439
458
  # event.transcript.results[0].alternatives[0].items[0].speaker #=> String
459
+ # event.transcript.results[0].channel_id #=> String
440
460
  #
441
461
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
442
462
  # event.message #=> String
@@ -456,6 +476,8 @@ module Aws::TranscribeStreamingService
456
476
  # resp.vocabulary_filter_name #=> String
457
477
  # resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
458
478
  # resp.show_speaker_label #=> Boolean
479
+ # resp.enable_channel_identification #=> Boolean
480
+ # resp.number_of_channels #=> Integer
459
481
  #
460
482
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
461
483
  #
@@ -500,7 +522,7 @@ module Aws::TranscribeStreamingService
500
522
  http_response: Seahorse::Client::Http::AsyncResponse.new,
501
523
  config: config)
502
524
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
503
- context[:gem_version] = '1.20.0'
525
+ context[:gem_version] = '1.21.0'
504
526
  Seahorse::Client::Request.new(handlers, context)
505
527
  end
506
528
 
@@ -351,7 +351,7 @@ module Aws::TranscribeStreamingService
351
351
  params: params,
352
352
  config: config)
353
353
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
354
- context[:gem_version] = '1.20.0'
354
+ context[:gem_version] = '1.21.0'
355
355
  Seahorse::Client::Request.new(handlers, context)
356
356
  end
357
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
@@ -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.20.0
4
+ version: 1.21.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-09-15 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core