aws-sdk-transcribestreamingservice 1.17.0 → 1.18.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: d45c27af3966cad5f1aa4af3291cb14c1d236d60f178bdf5022f609f3379d6ba
4
- data.tar.gz: '09169d66c278cfd10b98059b2374dc9df5ce5d9e402f7e9f87c32e04d8fd32e2'
3
+ metadata.gz: e3b892780a1b12c2874dcb899f6bcf4c6708a911ae19e7d5e7cd3175e63a2b8a
4
+ data.tar.gz: 42907f747be112c6c74b9332a1aecd6d932af2c4c57411cfe916b02f6818b51e
5
5
  SHA512:
6
- metadata.gz: 2a8ae2e44789be8c85b43bee6856647f8803fe160aad3305b7a1d06f65bfcc204a8136111926c76a0984a41119fa4a69b33e61e4b2dcd4a8e52759a0b861ad3c
7
- data.tar.gz: 8202739354a7c96fdedc6527409a1e43fcd11f0c01c8e1b1c2d8a5b7fb7a860bc3c5d1068cd2fe843d00e241f2425d7e55c6c07aea174b43536e13be1477ed12
6
+ metadata.gz: ec75dbefad6aaac5e8ac2d2a6856a42c7ec8d2670f58bfff906b7f818d346904e9fa82b2442c59e643e254d77f2a6f5bcccbb2034308a6100d3b7ea0d3e22a49
7
+ data.tar.gz: 7f393917b5c18ac237be5748a0646e20b6c5382cabfa2a112df79082588f4534afc85fe93486019704a5ebe85b7969d4d4a65b1d4ff957da7c579893b98942cb
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
49
49
  # @service
50
50
  module Aws::TranscribeStreamingService
51
51
 
52
- GEM_VERSION = '1.17.0'
52
+ GEM_VERSION = '1.18.0'
53
53
 
54
54
  end
@@ -244,7 +244,7 @@ module Aws::TranscribeStreamingService
244
244
  # 8000 Hz for low quality audio and 16000 Hz for high quality audio.
245
245
  #
246
246
  # @option params [required, String] :media_encoding
247
- # The encoding used for the input audio.
247
+ # The encoding used for the input audio. `pcm` is the only valid value.
248
248
  #
249
249
  # @option params [String] :vocabulary_name
250
250
  # The name of the vocabulary to use when processing the transcription
@@ -258,7 +258,7 @@ module Aws::TranscribeStreamingService
258
258
  #
259
259
  # @option params [String] :vocabulary_filter_name
260
260
  # The name of the vocabulary filter you've created that is unique to
261
- # your AWS accountf. Provide the name in this field to successfully use
261
+ # your AWS account. Provide the name in this field to successfully use
262
262
  # it in a stream.
263
263
  #
264
264
  # @option params [String] :vocabulary_filter_method
@@ -269,6 +269,9 @@ module Aws::TranscribeStreamingService
269
269
  # transcription results and tags them. The tag appears as
270
270
  # `VocabularyFilterMatch` equal to `True`
271
271
  #
272
+ # @option params [Boolean] :show_speaker_label
273
+ # When `true`, enables speaker identification in your real-time stream.
274
+ #
272
275
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
273
276
  #
274
277
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -280,6 +283,7 @@ module Aws::TranscribeStreamingService
280
283
  # * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
281
284
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
282
285
  # * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
286
+ # * {Types::StartStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
283
287
  #
284
288
  # @example Bi-directional EventStream Operation Example
285
289
  #
@@ -384,6 +388,7 @@ module Aws::TranscribeStreamingService
384
388
  # input_event_stream_hander: EventStreams::AudioStream.new,
385
389
  # vocabulary_filter_name: "VocabularyFilterName",
386
390
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
391
+ # show_speaker_label: false,
387
392
  # })
388
393
  # # => Seahorse::Client::AsyncResponse
389
394
  # async_resp.wait
@@ -416,6 +421,7 @@ module Aws::TranscribeStreamingService
416
421
  # event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
417
422
  # event.transcript.results[0].alternatives[0].items[0].content #=> String
418
423
  # event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
424
+ # event.transcript.results[0].alternatives[0].items[0].speaker #=> String
419
425
  #
420
426
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
421
427
  # event.message #=> String
@@ -434,6 +440,7 @@ module Aws::TranscribeStreamingService
434
440
  #
435
441
  # resp.vocabulary_filter_name #=> String
436
442
  # resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
443
+ # resp.show_speaker_label #=> Boolean
437
444
  #
438
445
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
439
446
  #
@@ -478,7 +485,7 @@ module Aws::TranscribeStreamingService
478
485
  http_response: Seahorse::Client::Http::AsyncResponse.new,
479
486
  config: config)
480
487
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
481
- context[:gem_version] = '1.17.0'
488
+ context[:gem_version] = '1.18.0'
482
489
  Seahorse::Client::Request.new(handlers, context)
483
490
  end
484
491
 
@@ -336,7 +336,7 @@ module Aws::TranscribeStreamingService
336
336
  params: params,
337
337
  config: config)
338
338
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
339
- context[:gem_version] = '1.17.0'
339
+ context[:gem_version] = '1.18.0'
340
340
  Seahorse::Client::Request.new(handlers, context)
341
341
  end
342
342
 
@@ -71,6 +71,7 @@ module Aws::TranscribeStreamingService
71
71
  Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
72
72
  Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
73
73
  Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
74
+ Item.add_member(:speaker, Shapes::ShapeRef.new(shape: String, location_name: "Speaker"))
74
75
  Item.struct_class = Types::Item
75
76
 
76
77
  ItemList.member = Shapes::ShapeRef.new(shape: Item)
@@ -98,6 +99,7 @@ module Aws::TranscribeStreamingService
98
99
  StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
99
100
  StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
100
101
  StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
102
+ StartStreamTranscriptionRequest.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
101
103
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
102
104
  StartStreamTranscriptionRequest[:payload] = :audio_stream
103
105
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -111,6 +113,7 @@ module Aws::TranscribeStreamingService
111
113
  StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
112
114
  StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
113
115
  StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
116
+ StartStreamTranscriptionResponse.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
114
117
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
115
118
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
116
119
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
@@ -15,7 +15,7 @@ module Aws::TranscribeStreamingService
15
15
  @event_emitter = Aws::EventEmitter.new
16
16
  end
17
17
 
18
- # @option params [String, IO] :audio_chunk
18
+ # @option params [String, StringIO, File] :audio_chunk
19
19
  # An audio blob that contains the next part of the audio that you want
20
20
  # to transcribe.
21
21
  #
@@ -127,6 +127,11 @@ module Aws::TranscribeStreamingService
127
127
  # `true` then a word in the item matches your vocabulary filter.
128
128
  # @return [Boolean]
129
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
+ #
130
135
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
131
136
  #
132
137
  class Item < Struct.new(
@@ -134,7 +139,8 @@ module Aws::TranscribeStreamingService
134
139
  :end_time,
135
140
  :type,
136
141
  :content,
137
- :vocabulary_filter_match)
142
+ :vocabulary_filter_match,
143
+ :speaker)
138
144
  SENSITIVE = []
139
145
  include Aws::Structure
140
146
  end
@@ -227,6 +233,7 @@ module Aws::TranscribeStreamingService
227
233
  # input_event_stream_hander: EventStreams::AudioStream.new,
228
234
  # vocabulary_filter_name: "VocabularyFilterName",
229
235
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
236
+ # show_speaker_label: false,
230
237
  # }
231
238
  #
232
239
  # @!attribute [rw] language_code
@@ -240,7 +247,8 @@ module Aws::TranscribeStreamingService
240
247
  # @return [Integer]
241
248
  #
242
249
  # @!attribute [rw] media_encoding
243
- # The encoding used for the input audio.
250
+ # The encoding used for the input audio. `pcm` is the only valid
251
+ # value.
244
252
  # @return [String]
245
253
  #
246
254
  # @!attribute [rw] vocabulary_name
@@ -262,8 +270,8 @@ module Aws::TranscribeStreamingService
262
270
  #
263
271
  # @!attribute [rw] vocabulary_filter_name
264
272
  # The name of the vocabulary filter you've created that is unique to
265
- # your AWS accountf. Provide the name in this field to successfully
266
- # use it in a stream.
273
+ # your AWS account. Provide the name in this field to successfully use
274
+ # it in a stream.
267
275
  # @return [String]
268
276
  #
269
277
  # @!attribute [rw] vocabulary_filter_method
@@ -275,6 +283,11 @@ module Aws::TranscribeStreamingService
275
283
  # `VocabularyFilterMatch` equal to `True`
276
284
  # @return [String]
277
285
  #
286
+ # @!attribute [rw] show_speaker_label
287
+ # When `true`, enables speaker identification in your real-time
288
+ # stream.
289
+ # @return [Boolean]
290
+ #
278
291
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
279
292
  #
280
293
  class StartStreamTranscriptionRequest < Struct.new(
@@ -285,7 +298,8 @@ module Aws::TranscribeStreamingService
285
298
  :session_id,
286
299
  :audio_stream,
287
300
  :vocabulary_filter_name,
288
- :vocabulary_filter_method)
301
+ :vocabulary_filter_method,
302
+ :show_speaker_label)
289
303
  SENSITIVE = []
290
304
  include Aws::Structure
291
305
  end
@@ -328,6 +342,10 @@ module Aws::TranscribeStreamingService
328
342
  # The vocabulary filtering method used in the real-time stream.
329
343
  # @return [String]
330
344
  #
345
+ # @!attribute [rw] show_speaker_label
346
+ # Shows whether speaker identification was enabled in the stream.
347
+ # @return [Boolean]
348
+ #
331
349
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
332
350
  #
333
351
  class StartStreamTranscriptionResponse < Struct.new(
@@ -339,7 +357,8 @@ module Aws::TranscribeStreamingService
339
357
  :session_id,
340
358
  :transcript_result_stream,
341
359
  :vocabulary_filter_name,
342
- :vocabulary_filter_method)
360
+ :vocabulary_filter_method,
361
+ :show_speaker_label)
343
362
  SENSITIVE = []
344
363
  include Aws::Structure
345
364
  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.17.0
4
+ version: 1.18.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-23 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core