aws-sdk-transcribestreamingservice 1.16.1 → 1.21.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: 690e695e6e40aa2926019b174e6b51629f8ebedc164b08bd1edb52c4b8e83689
4
- data.tar.gz: 72f97beabab790f6ef164c72eb2e7b4d9765101b1ec31ceef8355029e6598700
3
+ metadata.gz: d98293ed110ac182fd1ddd8921ec0502a00ad12a0e62fbf8e3ef832da9a77adc
4
+ data.tar.gz: '018bb294617b4fe429c9a1e6802378b6a84557cd5ad5681ab0af6d2b47e21d19'
5
5
  SHA512:
6
- metadata.gz: 6d0f8503bf59b611da76270a64c2685b4da32c727e832158f30cb4f775753c30e0b67e6c9970bab57cf3c53850b73cc2406c0107bf0e6dffbb26574c43890d88
7
- data.tar.gz: b680068a3822e89d722a6987a030a26ba8efb5ab0434fa9312df9346324a8adb6977fec8fa47b80fdbc00e6ef532e8f722ca870272177ac1e51141ae4c281fa5
6
+ metadata.gz: b477700de7d54abfdf2ea390c7b5d479a3eaa6e76ce2ad9eabc4937886d700ee1fe1189d369bf68a17dbda9c32b0377c826008ae17ef7ac49119dfba9c1499a1
7
+ data.tar.gz: c8d1968e3513856304bd1ce0e2ec18cdc4ccb7928175bfbd080ea8719ef3755f74884e56edcd19587dab87a8314edce56883e4c9018b20a4a27cf631bc6d99c7
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -44,9 +47,9 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
44
47
  #
45
48
  # See {Errors} for more information.
46
49
  #
47
- # @service
50
+ # @!group service
48
51
  module Aws::TranscribeStreamingService
49
52
 
50
- GEM_VERSION = '1.16.1'
53
+ GEM_VERSION = '1.21.0'
51
54
 
52
55
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -66,13 +68,28 @@ module Aws::TranscribeStreamingService
66
68
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
67
69
  # credentials.
68
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
+ #
69
85
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
70
86
  # from an EC2 IMDS on an EC2 instance.
71
87
  #
72
- # * `Aws::SharedCredentials` - Used for loading credentials from a
73
- # shared file, such as `~/.aws/config`.
88
+ # * `Aws::ECSCredentials` - Used for loading credentials from
89
+ # instances running in ECS.
74
90
  #
75
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
91
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
92
+ # from the Cognito Identity service.
76
93
  #
77
94
  # When `:credentials` are not configured directly, the following
78
95
  # locations will be searched for credentials:
@@ -82,10 +99,10 @@ module Aws::TranscribeStreamingService
82
99
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
83
100
  # * `~/.aws/credentials`
84
101
  # * `~/.aws/config`
85
- # * EC2 IMDS instance profile - When used by default, the timeouts are
86
- # very aggressive. Construct and pass an instance of
87
- # `Aws::InstanceProfileCredentails` to enable retries and extended
88
- # 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.
89
106
  #
90
107
  # @option options [required, String] :region
91
108
  # The AWS region to connect to. The configured `:region` is
@@ -242,7 +259,7 @@ module Aws::TranscribeStreamingService
242
259
  # 8000 Hz for low quality audio and 16000 Hz for high quality audio.
243
260
  #
244
261
  # @option params [required, String] :media_encoding
245
- # The encoding used for the input audio.
262
+ # The encoding used for the input audio. `pcm` is the only valid value.
246
263
  #
247
264
  # @option params [String] :vocabulary_name
248
265
  # The name of the vocabulary to use when processing the transcription
@@ -256,7 +273,7 @@ module Aws::TranscribeStreamingService
256
273
  #
257
274
  # @option params [String] :vocabulary_filter_name
258
275
  # 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
276
+ # your AWS account. Provide the name in this field to successfully use
260
277
  # it in a stream.
261
278
  #
262
279
  # @option params [String] :vocabulary_filter_method
@@ -267,6 +284,24 @@ module Aws::TranscribeStreamingService
267
284
  # transcription results and tags them. The tag appears as
268
285
  # `VocabularyFilterMatch` equal to `True`
269
286
  #
287
+ # @option params [Boolean] :show_speaker_label
288
+ # When `true`, enables speaker identification in your real-time stream.
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
+ #
270
305
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
271
306
  #
272
307
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -278,6 +313,9 @@ module Aws::TranscribeStreamingService
278
313
  # * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
279
314
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
280
315
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
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
281
319
  #
282
320
  # @example Bi-directional EventStream Operation Example
283
321
  #
@@ -382,6 +420,9 @@ module Aws::TranscribeStreamingService
382
420
  # input_event_stream_hander: EventStreams::AudioStream.new,
383
421
  # vocabulary_filter_name: "VocabularyFilterName",
384
422
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
423
+ # show_speaker_label: false,
424
+ # enable_channel_identification: false,
425
+ # number_of_channels: 1,
385
426
  # })
386
427
  # # => Seahorse::Client::AsyncResponse
387
428
  # async_resp.wait
@@ -414,6 +455,8 @@ module Aws::TranscribeStreamingService
414
455
  # event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
415
456
  # event.transcript.results[0].alternatives[0].items[0].content #=> String
416
457
  # event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
458
+ # event.transcript.results[0].alternatives[0].items[0].speaker #=> String
459
+ # event.transcript.results[0].channel_id #=> String
417
460
  #
418
461
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
419
462
  # event.message #=> String
@@ -432,6 +475,9 @@ module Aws::TranscribeStreamingService
432
475
  #
433
476
  # resp.vocabulary_filter_name #=> String
434
477
  # resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
478
+ # resp.show_speaker_label #=> Boolean
479
+ # resp.enable_channel_identification #=> Boolean
480
+ # resp.number_of_channels #=> Integer
435
481
  #
436
482
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
437
483
  #
@@ -476,7 +522,7 @@ module Aws::TranscribeStreamingService
476
522
  http_response: Seahorse::Client::Http::AsyncResponse.new,
477
523
  config: config)
478
524
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
479
- context[:gem_version] = '1.16.1'
525
+ context[:gem_version] = '1.21.0'
480
526
  Seahorse::Client::Request.new(handlers, context)
481
527
  end
482
528
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -85,13 +87,28 @@ module Aws::TranscribeStreamingService
85
87
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
88
  # credentials.
87
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
+ #
88
104
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
105
  # from an EC2 IMDS on an EC2 instance.
90
106
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
107
+ # * `Aws::ECSCredentials` - Used for loading credentials from
108
+ # instances running in ECS.
93
109
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
110
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
111
+ # from the Cognito Identity service.
95
112
  #
96
113
  # When `:credentials` are not configured directly, the following
97
114
  # locations will be searched for credentials:
@@ -101,10 +118,10 @@ module Aws::TranscribeStreamingService
101
118
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
119
  # * `~/.aws/credentials`
103
120
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # 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.
108
125
  #
109
126
  # @option options [required, String] :region
110
127
  # The AWS region to connect to. The configured `:region` is
@@ -334,7 +351,7 @@ module Aws::TranscribeStreamingService
334
351
  params: params,
335
352
  config: config)
336
353
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
337
- context[:gem_version] = '1.16.1'
354
+ context[:gem_version] = '1.21.0'
338
355
  Seahorse::Client::Request.new(handlers, context)
339
356
  end
340
357
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -28,6 +30,7 @@ module Aws::TranscribeStreamingService
28
30
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
29
31
  MediaEncoding = Shapes::StringShape.new(name: 'MediaEncoding')
30
32
  MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
33
+ NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
31
34
  RequestId = Shapes::StringShape.new(name: 'RequestId')
32
35
  Result = Shapes::StructureShape.new(name: 'Result')
33
36
  ResultList = Shapes::ListShape.new(name: 'ResultList')
@@ -69,6 +72,7 @@ module Aws::TranscribeStreamingService
69
72
  Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
70
73
  Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
71
74
  Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
75
+ Item.add_member(:speaker, Shapes::ShapeRef.new(shape: String, location_name: "Speaker"))
72
76
  Item.struct_class = Types::Item
73
77
 
74
78
  ItemList.member = Shapes::ShapeRef.new(shape: Item)
@@ -81,6 +85,7 @@ module Aws::TranscribeStreamingService
81
85
  Result.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
82
86
  Result.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
83
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"))
84
89
  Result.struct_class = Types::Result
85
90
 
86
91
  ResultList.member = Shapes::ShapeRef.new(shape: Result)
@@ -96,6 +101,9 @@ module Aws::TranscribeStreamingService
96
101
  StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
97
102
  StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
98
103
  StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
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"))
99
107
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
100
108
  StartStreamTranscriptionRequest[:payload] = :audio_stream
101
109
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -109,6 +117,9 @@ module Aws::TranscribeStreamingService
109
117
  StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
110
118
  StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
111
119
  StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
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"))
112
123
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
113
124
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
114
125
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -13,7 +15,7 @@ module Aws::TranscribeStreamingService
13
15
  @event_emitter = Aws::EventEmitter.new
14
16
  end
15
17
 
16
- # @option params [String, IO] :audio_chunk
18
+ # @option params [String, StringIO, File] :audio_chunk
17
19
  # An audio blob that contains the next part of the audio that you want
18
20
  # to transcribe.
19
21
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -23,6 +25,7 @@ module Aws::TranscribeStreamingService
23
25
  class Alternative < Struct.new(
24
26
  :transcript,
25
27
  :items)
28
+ SENSITIVE = []
26
29
  include Aws::Structure
27
30
  end
28
31
 
@@ -45,6 +48,7 @@ module Aws::TranscribeStreamingService
45
48
  class AudioEvent < Struct.new(
46
49
  :audio_chunk,
47
50
  :event_type)
51
+ SENSITIVE = []
48
52
  include Aws::Structure
49
53
  end
50
54
 
@@ -61,6 +65,7 @@ module Aws::TranscribeStreamingService
61
65
  class BadRequestException < Struct.new(
62
66
  :message,
63
67
  :event_type)
68
+ SENSITIVE = []
64
69
  include Aws::Structure
65
70
  end
66
71
 
@@ -75,6 +80,7 @@ module Aws::TranscribeStreamingService
75
80
  class ConflictException < Struct.new(
76
81
  :message,
77
82
  :event_type)
83
+ SENSITIVE = []
78
84
  include Aws::Structure
79
85
  end
80
86
 
@@ -89,6 +95,7 @@ module Aws::TranscribeStreamingService
89
95
  class InternalFailureException < Struct.new(
90
96
  :message,
91
97
  :event_type)
98
+ SENSITIVE = []
92
99
  include Aws::Structure
93
100
  end
94
101
 
@@ -120,6 +127,11 @@ module Aws::TranscribeStreamingService
120
127
  # `true` then a word in the item matches your vocabulary filter.
121
128
  # @return [Boolean]
122
129
  #
130
+ # @!attribute [rw] speaker
131
+ # If speaker identification is enabled, shows the speakers identified
132
+ # in the real-time stream.
133
+ # @return [String]
134
+ #
123
135
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
124
136
  #
125
137
  class Item < Struct.new(
@@ -127,7 +139,9 @@ module Aws::TranscribeStreamingService
127
139
  :end_time,
128
140
  :type,
129
141
  :content,
130
- :vocabulary_filter_match)
142
+ :vocabulary_filter_match,
143
+ :speaker)
144
+ SENSITIVE = []
131
145
  include Aws::Structure
132
146
  end
133
147
 
@@ -145,6 +159,7 @@ module Aws::TranscribeStreamingService
145
159
  class LimitExceededException < Struct.new(
146
160
  :message,
147
161
  :event_type)
162
+ SENSITIVE = []
148
163
  include Aws::Structure
149
164
  end
150
165
 
@@ -180,6 +195,14 @@ module Aws::TranscribeStreamingService
180
195
  # transcription.
181
196
  # @return [Array<Types::Alternative>]
182
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
+ #
183
206
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Result AWS API Documentation
184
207
  #
185
208
  class Result < Struct.new(
@@ -187,7 +210,9 @@ module Aws::TranscribeStreamingService
187
210
  :start_time,
188
211
  :end_time,
189
212
  :is_partial,
190
- :alternatives)
213
+ :alternatives,
214
+ :channel_id)
215
+ SENSITIVE = []
191
216
  include Aws::Structure
192
217
  end
193
218
 
@@ -201,6 +226,7 @@ module Aws::TranscribeStreamingService
201
226
  class ServiceUnavailableException < Struct.new(
202
227
  :message,
203
228
  :event_type)
229
+ SENSITIVE = []
204
230
  include Aws::Structure
205
231
  end
206
232
 
@@ -216,6 +242,9 @@ module Aws::TranscribeStreamingService
216
242
  # input_event_stream_hander: EventStreams::AudioStream.new,
217
243
  # vocabulary_filter_name: "VocabularyFilterName",
218
244
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
245
+ # show_speaker_label: false,
246
+ # enable_channel_identification: false,
247
+ # number_of_channels: 1,
219
248
  # }
220
249
  #
221
250
  # @!attribute [rw] language_code
@@ -229,7 +258,8 @@ module Aws::TranscribeStreamingService
229
258
  # @return [Integer]
230
259
  #
231
260
  # @!attribute [rw] media_encoding
232
- # The encoding used for the input audio.
261
+ # The encoding used for the input audio. `pcm` is the only valid
262
+ # value.
233
263
  # @return [String]
234
264
  #
235
265
  # @!attribute [rw] vocabulary_name
@@ -251,8 +281,8 @@ module Aws::TranscribeStreamingService
251
281
  #
252
282
  # @!attribute [rw] vocabulary_filter_name
253
283
  # 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.
284
+ # your AWS account. Provide the name in this field to successfully use
285
+ # it in a stream.
256
286
  # @return [String]
257
287
  #
258
288
  # @!attribute [rw] vocabulary_filter_method
@@ -264,6 +294,29 @@ module Aws::TranscribeStreamingService
264
294
  # `VocabularyFilterMatch` equal to `True`
265
295
  # @return [String]
266
296
  #
297
+ # @!attribute [rw] show_speaker_label
298
+ # When `true`, enables speaker identification in your real-time
299
+ # stream.
300
+ # @return [Boolean]
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
+ #
267
320
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
268
321
  #
269
322
  class StartStreamTranscriptionRequest < Struct.new(
@@ -274,7 +327,11 @@ module Aws::TranscribeStreamingService
274
327
  :session_id,
275
328
  :audio_stream,
276
329
  :vocabulary_filter_name,
277
- :vocabulary_filter_method)
330
+ :vocabulary_filter_method,
331
+ :show_speaker_label,
332
+ :enable_channel_identification,
333
+ :number_of_channels)
334
+ SENSITIVE = []
278
335
  include Aws::Structure
279
336
  end
280
337
 
@@ -316,6 +373,18 @@ module Aws::TranscribeStreamingService
316
373
  # The vocabulary filtering method used in the real-time stream.
317
374
  # @return [String]
318
375
  #
376
+ # @!attribute [rw] show_speaker_label
377
+ # Shows whether speaker identification was enabled in the stream.
378
+ # @return [Boolean]
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
+ #
319
388
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
320
389
  #
321
390
  class StartStreamTranscriptionResponse < Struct.new(
@@ -327,7 +396,11 @@ module Aws::TranscribeStreamingService
327
396
  :session_id,
328
397
  :transcript_result_stream,
329
398
  :vocabulary_filter_name,
330
- :vocabulary_filter_method)
399
+ :vocabulary_filter_method,
400
+ :show_speaker_label,
401
+ :enable_channel_identification,
402
+ :number_of_channels)
403
+ SENSITIVE = []
331
404
  include Aws::Structure
332
405
  end
333
406
 
@@ -342,6 +415,7 @@ module Aws::TranscribeStreamingService
342
415
  #
343
416
  class Transcript < Struct.new(
344
417
  :results)
418
+ SENSITIVE = []
345
419
  include Aws::Structure
346
420
  end
347
421
 
@@ -358,6 +432,7 @@ module Aws::TranscribeStreamingService
358
432
  class TranscriptEvent < Struct.new(
359
433
  :transcript,
360
434
  :event_type)
435
+ SENSITIVE = []
361
436
  include Aws::Structure
362
437
  end
363
438
 
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.16.1
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-06-11 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