aws-sdk-transcribestreamingservice 1.35.0 → 1.39.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: cab57d9ea500511c5ce899a81279bb7c29da44a7dbd576b0ba778c54044ebd9b
4
- data.tar.gz: 15f079c0e5fc44eaa231d5f20a89a121cbd4996135b6fa1bd5f754a614fa8860
3
+ metadata.gz: adc9a0c83ffdae541a50bbb003d1092bfab7d52e099ead4785c182466d92ed99
4
+ data.tar.gz: 505d8d263a2658590c59d850babbd744a089aeb1691dbab68d4e1ccb1d6dced3
5
5
  SHA512:
6
- metadata.gz: 41c61e4ddc54dd800d47f525eda033c4ad7bd423cb5cd072a206b7df580f428ab25b61e3fa39a6e388f6f4742c62282376f7fe6246d6fd6f55422164de86de16
7
- data.tar.gz: 7ee08f47ca72d41636d9a5c9b0614cf1528d75294ed20a45f1595d09d7e3f21c307a65ddf7da1d22c36bce99f90902e6b8658954acdd4e630c4aaff630117efc
6
+ metadata.gz: 7dcd1952c527759d2d8546d6c0e61e15bcbaf9ef4222c915029eb3e9c95aec8ff4d61ed93c3908a053678cbc420a9b81babbadf64155e21e4d1657c630f1421b
7
+ data.tar.gz: 812b7a8df2b4c3e2090a995e95461166f717452c675750f994bb06f25ced49b07a30368d333ec1e050ce6e8aa7f4086f343b5e71bf6e382977f7959358a79728
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.39.0 (2021-12-21)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.38.0 (2021-11-30)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.37.0 (2021-11-22)
15
+ ------------------
16
+
17
+ * Feature - This release adds language identification support for streaming transcription.
18
+
19
+ 1.36.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.35.0 (2021-10-20)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.35.0
1
+ 1.39.0
@@ -23,6 +23,7 @@ require 'aws-sdk-core/plugins/stub_responses.rb'
23
23
  require 'aws-sdk-core/plugins/idempotency_token.rb'
24
24
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
25
25
  require 'aws-sdk-core/plugins/http_checksum.rb'
26
+ require 'aws-sdk-core/plugins/defaults_mode.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::IdempotencyToken)
53
54
  add_plugin(Aws::Plugins::JsonvalueConverter)
54
55
  add_plugin(Aws::Plugins::HttpChecksum)
56
+ add_plugin(Aws::Plugins::DefaultsMode)
55
57
  add_plugin(Aws::Plugins::InvocationId)
56
58
  add_plugin(Aws::Plugins::SignatureV4)
57
59
  add_plugin(Aws::Plugins::Protocols::RestJson)
@@ -98,7 +100,9 @@ module Aws::TranscribeStreamingService
98
100
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
99
101
  # are very aggressive. Construct and pass an instance of
100
102
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
101
- # enable retries and extended timeouts.
103
+ # enable retries and extended timeouts. Instance profile credential
104
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
105
+ # to true.
102
106
  #
103
107
  # @option options [required, String] :region
104
108
  # The AWS region to connect to. The configured `:region` is
@@ -128,6 +132,10 @@ module Aws::TranscribeStreamingService
128
132
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
129
133
  # a clock skew correction and retry requests with skewed client clocks.
130
134
  #
135
+ # @option options [String] :defaults_mode ("legacy")
136
+ # See {Aws::DefaultsModeConfiguration} for a list of the
137
+ # accepted modes and the configuration defaults that are included.
138
+ #
131
139
  # @option options [String] :endpoint
132
140
  # The client endpoint is normally constructed from the `:region`
133
141
  # option. You should only configure an `:endpoint` when connecting
@@ -220,6 +228,15 @@ module Aws::TranscribeStreamingService
220
228
  # ** Please note ** When response stubbing is enabled, no HTTP
221
229
  # requests are made, and retries are disabled.
222
230
  #
231
+ # @option options [Boolean] :use_dualstack_endpoint
232
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
233
+ # will be used if available.
234
+ #
235
+ # @option options [Boolean] :use_fips_endpoint
236
+ # When set to `true`, fips compatible endpoints will be used if available.
237
+ # When a `fips` region is used, the region is normalized and this config
238
+ # is set to `true`.
239
+ #
223
240
  # @option options [Boolean] :validate_params (true)
224
241
  # When `true`, request parameters are validated before
225
242
  # sending the request.
@@ -522,12 +539,13 @@ module Aws::TranscribeStreamingService
522
539
  #
523
540
  # [1]: https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription
524
541
  #
525
- # @option params [required, String] :language_code
526
- # Indicates the source language used in the input audio stream.
542
+ # @option params [String] :language_code
543
+ # The language code of the input audio stream.
527
544
  #
528
545
  # @option params [required, Integer] :media_sample_rate_hertz
529
- # The sample rate, in Hertz, of the input audio. We suggest that you use
530
- # 8,000 Hz for low quality audio and 16,000 Hz for high quality audio.
546
+ # The sample rate, in Hertz (Hz), of the input audio. We suggest that
547
+ # you use 8,000 Hz for low quality audio and 16,000 Hz or higher for
548
+ # high quality audio.
531
549
  #
532
550
  # @option params [required, String] :media_encoding
533
551
  # The encoding used for the input audio.
@@ -553,15 +571,15 @@ module Aws::TranscribeStreamingService
553
571
  # transcription results. `Mask` masks filtered words with a `***` in
554
572
  # your transcription results. `Tag` keeps the filtered words in your
555
573
  # transcription results and tags them. The tag appears as
556
- # `VocabularyFilterMatch` equal to `True`
574
+ # `VocabularyFilterMatch` equal to `True`.
557
575
  #
558
576
  # @option params [Boolean] :show_speaker_label
559
- # When `true`, enables speaker identification in your real-time stream.
577
+ # When `true`, enables speaker identification in your media stream.
560
578
  #
561
579
  # @option params [Boolean] :enable_channel_identification
562
580
  # When `true`, instructs Amazon Transcribe to process each audio channel
563
- # separately and then merge the transcription output of each channel
564
- # into a single transcription.
581
+ # separately, then merges the transcription output of each channel into
582
+ # a single transcription.
565
583
  #
566
584
  # Amazon Transcribe also produces a transcription of each item. An item
567
585
  # includes the start time, end time, and any alternative transcriptions.
@@ -609,12 +627,42 @@ module Aws::TranscribeStreamingService
609
627
  # specify entity types, you must have either `ContentIdentificationType`
610
628
  # or `ContentRedactionType` enabled.
611
629
  #
630
+ # `PIIEntityTypes` must be comma-separated; the available values are:
631
+ # `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
632
+ # `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`, `ADDRESS`,
633
+ # `NAME`, `PHONE`, `SSN`, and `ALL`.
634
+ #
612
635
  # `PiiEntityTypes` is an optional parameter with a default value of
613
636
  # `ALL`.
614
637
  #
615
638
  # @option params [String] :language_model_name
616
639
  # The name of the language model you want to use.
617
640
  #
641
+ # @option params [Boolean] :identify_language
642
+ # Optional. Set this value to `true` to enable language identification
643
+ # for your media stream.
644
+ #
645
+ # @option params [String] :language_options
646
+ # An object containing a list of languages that might be present in your
647
+ # audio.
648
+ #
649
+ # You must provide two or more language codes to help Amazon Transcribe
650
+ # identify the correct language of your media stream with the highest
651
+ # possible accuracy. You can only select one variant per language; for
652
+ # example, you can't include both `en-US` and `en-UK` in the same
653
+ # request.
654
+ #
655
+ # You can only use this parameter if you've set `IdentifyLanguage` to
656
+ # `true`in your request.
657
+ #
658
+ # @option params [String] :preferred_language
659
+ # Optional. From the subset of languages codes you provided for
660
+ # `LanguageOptions`, you can select one preferred language for your
661
+ # transcription.
662
+ #
663
+ # You can only use this parameter if you've set `IdentifyLanguage` to
664
+ # `true`in your request.
665
+ #
618
666
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
619
667
  #
620
668
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -635,6 +683,9 @@ module Aws::TranscribeStreamingService
635
683
  # * {Types::StartStreamTranscriptionResponse#content_redaction_type #content_redaction_type} => String
636
684
  # * {Types::StartStreamTranscriptionResponse#pii_entity_types #pii_entity_types} => String
637
685
  # * {Types::StartStreamTranscriptionResponse#language_model_name #language_model_name} => String
686
+ # * {Types::StartStreamTranscriptionResponse#identify_language #identify_language} => Boolean
687
+ # * {Types::StartStreamTranscriptionResponse#language_options #language_options} => String
688
+ # * {Types::StartStreamTranscriptionResponse#preferred_language #preferred_language} => String
638
689
  #
639
690
  # @example Bi-directional EventStream Operation Example
640
691
  #
@@ -731,7 +782,7 @@ module Aws::TranscribeStreamingService
731
782
  # @example Request syntax with placeholder values
732
783
  #
733
784
  # async_resp = async_client.start_stream_transcription({
734
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
785
+ # language_code: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
735
786
  # media_sample_rate_hertz: 1, # required
736
787
  # media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
737
788
  # vocabulary_name: "VocabularyName",
@@ -748,6 +799,9 @@ module Aws::TranscribeStreamingService
748
799
  # content_redaction_type: "PII", # accepts PII
749
800
  # pii_entity_types: "PiiEntityTypes",
750
801
  # language_model_name: "ModelName",
802
+ # identify_language: false,
803
+ # language_options: "LanguageOptions",
804
+ # preferred_language: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
751
805
  # })
752
806
  # # => Seahorse::Client::AsyncResponse
753
807
  # async_resp.wait
@@ -791,6 +845,10 @@ module Aws::TranscribeStreamingService
791
845
  # event.transcript.results[0].alternatives[0].entities[0].content #=> String
792
846
  # event.transcript.results[0].alternatives[0].entities[0].confidence #=> Float
793
847
  # event.transcript.results[0].channel_id #=> String
848
+ # event.transcript.results[0].language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR", "zh-CN"
849
+ # event.transcript.results[0].language_identification #=> Array
850
+ # event.transcript.results[0].language_identification[0].language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR", "zh-CN"
851
+ # event.transcript.results[0].language_identification[0].score #=> Float
794
852
  #
795
853
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
796
854
  # event.message #=> String
@@ -818,6 +876,9 @@ module Aws::TranscribeStreamingService
818
876
  # resp.content_redaction_type #=> String, one of "PII"
819
877
  # resp.pii_entity_types #=> String
820
878
  # resp.language_model_name #=> String
879
+ # resp.identify_language #=> Boolean
880
+ # resp.language_options #=> String
881
+ # resp.preferred_language #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR", "zh-CN"
821
882
  #
822
883
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
823
884
  #
@@ -862,7 +923,7 @@ module Aws::TranscribeStreamingService
862
923
  http_response: Seahorse::Client::Http::AsyncResponse.new,
863
924
  config: config)
864
925
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
865
- context[:gem_version] = '1.35.0'
926
+ context[:gem_version] = '1.39.0'
866
927
  Seahorse::Client::Request.new(handlers, context)
867
928
  end
868
929
 
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
33
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -74,6 +75,7 @@ module Aws::TranscribeStreamingService
74
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
76
  add_plugin(Aws::Plugins::TransferEncoding)
76
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
77
79
  add_plugin(Aws::Plugins::SignatureV4)
78
80
  add_plugin(Aws::Plugins::Protocols::RestJson)
79
81
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -121,7 +123,9 @@ module Aws::TranscribeStreamingService
121
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
122
124
  # are very aggressive. Construct and pass an instance of
123
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
124
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
125
129
  #
126
130
  # @option options [required, String] :region
127
131
  # The AWS region to connect to. The configured `:region` is
@@ -175,6 +179,10 @@ module Aws::TranscribeStreamingService
175
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
176
180
  # a clock skew correction and retry requests with skewed client clocks.
177
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
178
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
179
187
  # Set to true to disable SDK automatically adding host prefix
180
188
  # to default service endpoint when available.
@@ -286,6 +294,15 @@ module Aws::TranscribeStreamingService
286
294
  # ** Please note ** When response stubbing is enabled, no HTTP
287
295
  # requests are made, and retries are disabled.
288
296
  #
297
+ # @option options [Boolean] :use_dualstack_endpoint
298
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
299
+ # will be used if available.
300
+ #
301
+ # @option options [Boolean] :use_fips_endpoint
302
+ # When set to `true`, fips compatible endpoints will be used if available.
303
+ # When a `fips` region is used, the region is normalized and this config
304
+ # is set to `true`.
305
+ #
289
306
  # @option options [Boolean] :validate_params (true)
290
307
  # When `true`, request parameters are validated before
291
308
  # sending the request.
@@ -297,7 +314,7 @@ module Aws::TranscribeStreamingService
297
314
  # seconds to wait when opening a HTTP session before raising a
298
315
  # `Timeout::Error`.
299
316
  #
300
- # @option options [Integer] :http_read_timeout (60) The default
317
+ # @option options [Float] :http_read_timeout (60) The default
301
318
  # number of seconds to wait for response data. This value can
302
319
  # safely be set per-request on the session.
303
320
  #
@@ -313,6 +330,9 @@ module Aws::TranscribeStreamingService
313
330
  # disables this behaviour. This value can safely be set per
314
331
  # request on the session.
315
332
  #
333
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
334
+ # in seconds.
335
+ #
316
336
  # @option options [Boolean] :http_wire_trace (false) When `true`,
317
337
  # HTTP debug output will be sent to the `:logger`.
318
338
  #
@@ -351,7 +371,7 @@ module Aws::TranscribeStreamingService
351
371
  params: params,
352
372
  config: config)
353
373
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
354
- context[:gem_version] = '1.35.0'
374
+ context[:gem_version] = '1.39.0'
355
375
  Seahorse::Client::Request.new(handlers, context)
356
376
  end
357
377
 
@@ -32,6 +32,9 @@ module Aws::TranscribeStreamingService
32
32
  ItemList = Shapes::ListShape.new(name: 'ItemList')
33
33
  ItemType = Shapes::StringShape.new(name: 'ItemType')
34
34
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
35
+ LanguageIdentification = Shapes::ListShape.new(name: 'LanguageIdentification')
36
+ LanguageOptions = Shapes::StringShape.new(name: 'LanguageOptions')
37
+ LanguageWithScore = Shapes::StructureShape.new(name: 'LanguageWithScore')
35
38
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
36
39
  MediaEncoding = Shapes::StringShape.new(name: 'MediaEncoding')
37
40
  MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
@@ -115,6 +118,12 @@ module Aws::TranscribeStreamingService
115
118
 
116
119
  ItemList.member = Shapes::ShapeRef.new(shape: Item)
117
120
 
121
+ LanguageIdentification.member = Shapes::ShapeRef.new(shape: LanguageWithScore)
122
+
123
+ LanguageWithScore.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
124
+ LanguageWithScore.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "Score"))
125
+ LanguageWithScore.struct_class = Types::LanguageWithScore
126
+
118
127
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
119
128
  LimitExceededException.struct_class = Types::LimitExceededException
120
129
 
@@ -174,6 +183,8 @@ module Aws::TranscribeStreamingService
174
183
  Result.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
175
184
  Result.add_member(:alternatives, Shapes::ShapeRef.new(shape: AlternativeList, location_name: "Alternatives"))
176
185
  Result.add_member(:channel_id, Shapes::ShapeRef.new(shape: String, location_name: "ChannelId"))
186
+ Result.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
187
+ Result.add_member(:language_identification, Shapes::ShapeRef.new(shape: LanguageIdentification, location_name: "LanguageIdentification"))
177
188
  Result.struct_class = Types::Result
178
189
 
179
190
  ResultList.member = Shapes::ShapeRef.new(shape: Result)
@@ -214,7 +225,7 @@ module Aws::TranscribeStreamingService
214
225
  StartMedicalStreamTranscriptionResponse[:payload] = :transcript_result_stream
215
226
  StartMedicalStreamTranscriptionResponse[:payload_member] = StartMedicalStreamTranscriptionResponse.member(:transcript_result_stream)
216
227
 
217
- StartStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
228
+ StartStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location: "header", location_name: "x-amzn-transcribe-language-code"))
218
229
  StartStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
219
230
  StartStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
220
231
  StartStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
@@ -231,6 +242,9 @@ module Aws::TranscribeStreamingService
231
242
  StartStreamTranscriptionRequest.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
232
243
  StartStreamTranscriptionRequest.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
233
244
  StartStreamTranscriptionRequest.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
245
+ StartStreamTranscriptionRequest.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-identify-language"))
246
+ StartStreamTranscriptionRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location: "header", location_name: "x-amzn-transcribe-language-options"))
247
+ StartStreamTranscriptionRequest.add_member(:preferred_language, Shapes::ShapeRef.new(shape: LanguageCode, location: "header", location_name: "x-amzn-transcribe-preferred-language"))
234
248
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
235
249
  StartStreamTranscriptionRequest[:payload] = :audio_stream
236
250
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -253,6 +267,9 @@ module Aws::TranscribeStreamingService
253
267
  StartStreamTranscriptionResponse.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
254
268
  StartStreamTranscriptionResponse.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
255
269
  StartStreamTranscriptionResponse.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
270
+ StartStreamTranscriptionResponse.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-identify-language"))
271
+ StartStreamTranscriptionResponse.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location: "header", location_name: "x-amzn-transcribe-language-options"))
272
+ StartStreamTranscriptionResponse.add_member(:preferred_language, Shapes::ShapeRef.new(shape: LanguageCode, location: "header", location_name: "x-amzn-transcribe-preferred-language"))
256
273
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
257
274
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
258
275
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
@@ -111,8 +111,8 @@ module Aws::TranscribeStreamingService
111
111
  # @return [Float]
112
112
  #
113
113
  # @!attribute [rw] category
114
- # The category of of information identified in this entity; for
115
- # example, PII.
114
+ # The category of information identified in this entity; for example,
115
+ # PII.
116
116
  # @return [String]
117
117
  #
118
118
  # @!attribute [rw] type
@@ -185,18 +185,18 @@ module Aws::TranscribeStreamingService
185
185
  #
186
186
  # @!attribute [rw] vocabulary_filter_match
187
187
  # Indicates whether a word in the item matches a word in the
188
- # vocabulary filter you've chosen for your real-time stream. If
189
- # `true` then a word in the item matches your vocabulary filter.
188
+ # vocabulary filter you've chosen for your media stream. If `true`
189
+ # then a word in the item matches your vocabulary filter.
190
190
  # @return [Boolean]
191
191
  #
192
192
  # @!attribute [rw] speaker
193
193
  # If speaker identification is enabled, shows the speakers identified
194
- # in the real-time stream.
194
+ # in the media stream.
195
195
  # @return [String]
196
196
  #
197
197
  # @!attribute [rw] confidence
198
- # A value between 0 and 1 for an item that is a confidence score that
199
- # Amazon Transcribe assigns to each word or phrase that it
198
+ # A value between zero and one for an item that is a confidence score
199
+ # that Amazon Transcribe assigns to each word or phrase that it
200
200
  # transcribes.
201
201
  # @return [Float]
202
202
  #
@@ -221,6 +221,30 @@ module Aws::TranscribeStreamingService
221
221
  include Aws::Structure
222
222
  end
223
223
 
224
+ # The language codes of the identified languages and their associated
225
+ # confidence scores. The confidence score is a value between zero and
226
+ # one; a larger value indicates a higher confidence in the identified
227
+ # language.
228
+ #
229
+ # @!attribute [rw] language_code
230
+ # The language code of the language identified by Amazon Transcribe.
231
+ # @return [String]
232
+ #
233
+ # @!attribute [rw] score
234
+ # The confidence score for the associated language code. Confidence
235
+ # scores are values between zero and one; larger values indicate a
236
+ # higher confidence in the identified language.
237
+ # @return [Float]
238
+ #
239
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/LanguageWithScore AWS API Documentation
240
+ #
241
+ class LanguageWithScore < Struct.new(
242
+ :language_code,
243
+ :score)
244
+ SENSITIVE = []
245
+ include Aws::Structure
246
+ end
247
+
224
248
  # You have exceeded the maximum number of concurrent transcription
225
249
  # streams, are starting transcription streams too quickly, or the
226
250
  # maximum audio length of 4 hours. Wait until a stream has finished
@@ -482,6 +506,14 @@ module Aws::TranscribeStreamingService
482
506
  # single channel in your audio stream.
483
507
  # @return [String]
484
508
  #
509
+ # @!attribute [rw] language_code
510
+ # The language code of the identified language in your media stream.
511
+ # @return [String]
512
+ #
513
+ # @!attribute [rw] language_identification
514
+ # The language code of the dominant language identified in your media.
515
+ # @return [Array<Types::LanguageWithScore>]
516
+ #
485
517
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Result AWS API Documentation
486
518
  #
487
519
  class Result < Struct.new(
@@ -490,7 +522,9 @@ module Aws::TranscribeStreamingService
490
522
  :end_time,
491
523
  :is_partial,
492
524
  :alternatives,
493
- :channel_id)
525
+ :channel_id,
526
+ :language_code,
527
+ :language_identification)
494
528
  SENSITIVE = []
495
529
  include Aws::Structure
496
530
  end
@@ -694,7 +728,7 @@ module Aws::TranscribeStreamingService
694
728
  # data as a hash:
695
729
  #
696
730
  # {
697
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
731
+ # language_code: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
698
732
  # media_sample_rate_hertz: 1, # required
699
733
  # media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
700
734
  # vocabulary_name: "VocabularyName",
@@ -711,16 +745,19 @@ module Aws::TranscribeStreamingService
711
745
  # content_redaction_type: "PII", # accepts PII
712
746
  # pii_entity_types: "PiiEntityTypes",
713
747
  # language_model_name: "ModelName",
748
+ # identify_language: false,
749
+ # language_options: "LanguageOptions",
750
+ # preferred_language: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
714
751
  # }
715
752
  #
716
753
  # @!attribute [rw] language_code
717
- # Indicates the source language used in the input audio stream.
754
+ # The language code of the input audio stream.
718
755
  # @return [String]
719
756
  #
720
757
  # @!attribute [rw] media_sample_rate_hertz
721
- # The sample rate, in Hertz, of the input audio. We suggest that you
722
- # use 8,000 Hz for low quality audio and 16,000 Hz for high quality
723
- # audio.
758
+ # The sample rate, in Hertz (Hz), of the input audio. We suggest that
759
+ # you use 8,000 Hz for low quality audio and 16,000 Hz or higher for
760
+ # high quality audio.
724
761
  # @return [Integer]
725
762
  #
726
763
  # @!attribute [rw] media_encoding
@@ -756,17 +793,16 @@ module Aws::TranscribeStreamingService
756
793
  # transcription results. `Mask` masks filtered words with a `***` in
757
794
  # your transcription results. `Tag` keeps the filtered words in your
758
795
  # transcription results and tags them. The tag appears as
759
- # `VocabularyFilterMatch` equal to `True`
796
+ # `VocabularyFilterMatch` equal to `True`.
760
797
  # @return [String]
761
798
  #
762
799
  # @!attribute [rw] show_speaker_label
763
- # When `true`, enables speaker identification in your real-time
764
- # stream.
800
+ # When `true`, enables speaker identification in your media stream.
765
801
  # @return [Boolean]
766
802
  #
767
803
  # @!attribute [rw] enable_channel_identification
768
804
  # When `true`, instructs Amazon Transcribe to process each audio
769
- # channel separately and then merge the transcription output of each
805
+ # channel separately, then merges the transcription output of each
770
806
  # channel into a single transcription.
771
807
  #
772
808
  # Amazon Transcribe also produces a transcription of each item. An
@@ -824,6 +860,11 @@ module Aws::TranscribeStreamingService
824
860
  # to specify entity types, you must have either
825
861
  # `ContentIdentificationType` or `ContentRedactionType` enabled.
826
862
  #
863
+ # `PIIEntityTypes` must be comma-separated; the available values are:
864
+ # `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
865
+ # `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`,
866
+ # `ADDRESS`, `NAME`, `PHONE`, `SSN`, and `ALL`.
867
+ #
827
868
  # `PiiEntityTypes` is an optional parameter with a default value of
828
869
  # `ALL`.
829
870
  # @return [String]
@@ -832,6 +873,34 @@ module Aws::TranscribeStreamingService
832
873
  # The name of the language model you want to use.
833
874
  # @return [String]
834
875
  #
876
+ # @!attribute [rw] identify_language
877
+ # Optional. Set this value to `true` to enable language identification
878
+ # for your media stream.
879
+ # @return [Boolean]
880
+ #
881
+ # @!attribute [rw] language_options
882
+ # An object containing a list of languages that might be present in
883
+ # your audio.
884
+ #
885
+ # You must provide two or more language codes to help Amazon
886
+ # Transcribe identify the correct language of your media stream with
887
+ # the highest possible accuracy. You can only select one variant per
888
+ # language; for example, you can't include both `en-US` and `en-UK`
889
+ # in the same request.
890
+ #
891
+ # You can only use this parameter if you've set `IdentifyLanguage` to
892
+ # `true`in your request.
893
+ # @return [String]
894
+ #
895
+ # @!attribute [rw] preferred_language
896
+ # Optional. From the subset of languages codes you provided for
897
+ # `LanguageOptions`, you can select one preferred language for your
898
+ # transcription.
899
+ #
900
+ # You can only use this parameter if you've set `IdentifyLanguage` to
901
+ # `true`in your request.
902
+ # @return [String]
903
+ #
835
904
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
836
905
  #
837
906
  class StartStreamTranscriptionRequest < Struct.new(
@@ -851,7 +920,10 @@ module Aws::TranscribeStreamingService
851
920
  :content_identification_type,
852
921
  :content_redaction_type,
853
922
  :pii_entity_types,
854
- :language_model_name)
923
+ :language_model_name,
924
+ :identify_language,
925
+ :language_options,
926
+ :preferred_language)
855
927
  SENSITIVE = []
856
928
  include Aws::Structure
857
929
  end
@@ -861,12 +933,13 @@ module Aws::TranscribeStreamingService
861
933
  # @return [String]
862
934
  #
863
935
  # @!attribute [rw] language_code
864
- # The language code for the input audio stream.
936
+ # The language code of the input audio stream.
865
937
  # @return [String]
866
938
  #
867
939
  # @!attribute [rw] media_sample_rate_hertz
868
- # The sample rate for the input audio stream. Use 8,000 Hz for low
869
- # quality audio and 16,000 Hz for high quality audio.
940
+ # The sample rate, in Hertz (Hz), for the input audio stream. Use
941
+ # 8,000 Hz for low quality audio and 16,000 Hz or higher for high
942
+ # quality audio.
870
943
  # @return [Integer]
871
944
  #
872
945
  # @!attribute [rw] media_encoding
@@ -887,11 +960,11 @@ module Aws::TranscribeStreamingService
887
960
  # @return [Types::TranscriptResultStream]
888
961
  #
889
962
  # @!attribute [rw] vocabulary_filter_name
890
- # The name of the vocabulary filter used in your real-time stream.
963
+ # The name of the vocabulary filter used in your media stream.
891
964
  # @return [String]
892
965
  #
893
966
  # @!attribute [rw] vocabulary_filter_method
894
- # The vocabulary filtering method used in the real-time stream.
967
+ # The vocabulary filtering method used in the media stream.
895
968
  # @return [String]
896
969
  #
897
970
  # @!attribute [rw] show_speaker_label
@@ -929,6 +1002,20 @@ module Aws::TranscribeStreamingService
929
1002
  # @return [String]
930
1003
  #
931
1004
  # @!attribute [rw] language_model_name
1005
+ # The name of the language model used in your media stream.
1006
+ # @return [String]
1007
+ #
1008
+ # @!attribute [rw] identify_language
1009
+ # The language code of the language identified in your media stream.
1010
+ # @return [Boolean]
1011
+ #
1012
+ # @!attribute [rw] language_options
1013
+ # The language codes used in the identification of your media
1014
+ # stream's predominant language.
1015
+ # @return [String]
1016
+ #
1017
+ # @!attribute [rw] preferred_language
1018
+ # The preferred language you specified in your request.
932
1019
  # @return [String]
933
1020
  #
934
1021
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
@@ -951,7 +1038,10 @@ module Aws::TranscribeStreamingService
951
1038
  :content_identification_type,
952
1039
  :content_redaction_type,
953
1040
  :pii_entity_types,
954
- :language_model_name)
1041
+ :language_model_name,
1042
+ :identify_language,
1043
+ :language_options,
1044
+ :preferred_language)
955
1045
  SENSITIVE = []
956
1046
  include Aws::Structure
957
1047
  end
@@ -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.35.0'
53
+ GEM_VERSION = '1.39.0'
54
54
 
55
55
  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.35.0
4
+ version: 1.39.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: 2021-10-20 00:00:00.000000000 Z
11
+ date: 2021-12-21 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.121.2
22
+ version: 3.125.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.121.2
32
+ version: 3.125.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement