aws-sdk-transcribestreamingservice 1.36.0 → 1.37.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: 92f43b48e2abbe132143ddc1a6144763fb0c59aefc1e1393bdca3532d09837db
4
- data.tar.gz: 7bb1df3ed3cbe2fcbd770ca3e3c906e981b0113a2baa26fbccede98b20365c98
3
+ metadata.gz: 833697cf9ef72da8a35387c1658670c6dc57ac25ee72a7e58cbc08d6060950c9
4
+ data.tar.gz: ca81a308ff36bdbd4a0cbf161832ff6cc0b16040a0be89bad60f4acf54e7effb
5
5
  SHA512:
6
- metadata.gz: 7559244058b5541ade0aacd77f9fe92d921620b57da6d1ee2e08e099417b0ad824abae46a82c24e60e506e06a5a079eb7ae084be52226b28c32e6c62d760c5b0
7
- data.tar.gz: 78d859fd76b26ad23ac5ce59fedc1553c93026dada31959ef9a0f135cfaa79ee867ed76e3e4fabe61c83d09cc04e1ccc50317b82f01c0d50e4ee066f83c92dc6
6
+ metadata.gz: 6deacd3f0803fc143b1854724669898a86a3babc9ba98359dc11f916d1a7fa6fd21696feef42fd9643a1fc67ba7aee84dbbb8f19abaf12f1b183400beaa3ec3a
7
+ data.tar.gz: 396f4865b44db9b640ae246208ebda12582d7c38926513e5e7f29c865801a11446f9966dfaa1d9c00e2f3f8681b50ff65db62c253bf867c4c877ef8809e6a830
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.37.0 (2021-11-22)
5
+ ------------------
6
+
7
+ * Feature - This release adds language identification support for streaming transcription.
8
+
4
9
  1.36.0 (2021-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.36.0
1
+ 1.37.0
@@ -531,12 +531,13 @@ module Aws::TranscribeStreamingService
531
531
  #
532
532
  # [1]: https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription
533
533
  #
534
- # @option params [required, String] :language_code
535
- # Indicates the source language used in the input audio stream.
534
+ # @option params [String] :language_code
535
+ # The language code of the input audio stream.
536
536
  #
537
537
  # @option params [required, Integer] :media_sample_rate_hertz
538
- # The sample rate, in Hertz, of the input audio. We suggest that you use
539
- # 8,000 Hz for low quality audio and 16,000 Hz for high quality audio.
538
+ # The sample rate, in Hertz (Hz), of the input audio. We suggest that
539
+ # you use 8,000 Hz for low quality audio and 16,000 Hz or higher for
540
+ # high quality audio.
540
541
  #
541
542
  # @option params [required, String] :media_encoding
542
543
  # The encoding used for the input audio.
@@ -562,15 +563,15 @@ module Aws::TranscribeStreamingService
562
563
  # transcription results. `Mask` masks filtered words with a `***` in
563
564
  # your transcription results. `Tag` keeps the filtered words in your
564
565
  # transcription results and tags them. The tag appears as
565
- # `VocabularyFilterMatch` equal to `True`
566
+ # `VocabularyFilterMatch` equal to `True`.
566
567
  #
567
568
  # @option params [Boolean] :show_speaker_label
568
- # When `true`, enables speaker identification in your real-time stream.
569
+ # When `true`, enables speaker identification in your media stream.
569
570
  #
570
571
  # @option params [Boolean] :enable_channel_identification
571
572
  # When `true`, instructs Amazon Transcribe to process each audio channel
572
- # separately and then merge the transcription output of each channel
573
- # into a single transcription.
573
+ # separately, then merges the transcription output of each channel into
574
+ # a single transcription.
574
575
  #
575
576
  # Amazon Transcribe also produces a transcription of each item. An item
576
577
  # includes the start time, end time, and any alternative transcriptions.
@@ -618,12 +619,42 @@ module Aws::TranscribeStreamingService
618
619
  # specify entity types, you must have either `ContentIdentificationType`
619
620
  # or `ContentRedactionType` enabled.
620
621
  #
622
+ # `PIIEntityTypes` must be comma-separated; the available values are:
623
+ # `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
624
+ # `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`, `ADDRESS`,
625
+ # `NAME`, `PHONE`, `SSN`, and `ALL`.
626
+ #
621
627
  # `PiiEntityTypes` is an optional parameter with a default value of
622
628
  # `ALL`.
623
629
  #
624
630
  # @option params [String] :language_model_name
625
631
  # The name of the language model you want to use.
626
632
  #
633
+ # @option params [Boolean] :identify_language
634
+ # Optional. Set this value to `true` to enable language identification
635
+ # for your media stream.
636
+ #
637
+ # @option params [String] :language_options
638
+ # An object containing a list of languages that might be present in your
639
+ # audio.
640
+ #
641
+ # You must provide two or more language codes to help Amazon Transcribe
642
+ # identify the correct language of your media stream with the highest
643
+ # possible accuracy. You can only select one variant per language; for
644
+ # example, you can't include both `en-US` and `en-UK` in the same
645
+ # request.
646
+ #
647
+ # You can only use this parameter if you've set `IdentifyLanguage` to
648
+ # `true`in your request.
649
+ #
650
+ # @option params [String] :preferred_language
651
+ # Optional. From the subset of languages codes you provided for
652
+ # `LanguageOptions`, you can select one preferred language for your
653
+ # transcription.
654
+ #
655
+ # You can only use this parameter if you've set `IdentifyLanguage` to
656
+ # `true`in your request.
657
+ #
627
658
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
628
659
  #
629
660
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -644,6 +675,9 @@ module Aws::TranscribeStreamingService
644
675
  # * {Types::StartStreamTranscriptionResponse#content_redaction_type #content_redaction_type} => String
645
676
  # * {Types::StartStreamTranscriptionResponse#pii_entity_types #pii_entity_types} => String
646
677
  # * {Types::StartStreamTranscriptionResponse#language_model_name #language_model_name} => String
678
+ # * {Types::StartStreamTranscriptionResponse#identify_language #identify_language} => Boolean
679
+ # * {Types::StartStreamTranscriptionResponse#language_options #language_options} => String
680
+ # * {Types::StartStreamTranscriptionResponse#preferred_language #preferred_language} => String
647
681
  #
648
682
  # @example Bi-directional EventStream Operation Example
649
683
  #
@@ -740,7 +774,7 @@ module Aws::TranscribeStreamingService
740
774
  # @example Request syntax with placeholder values
741
775
  #
742
776
  # async_resp = async_client.start_stream_transcription({
743
- # 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
777
+ # 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
744
778
  # media_sample_rate_hertz: 1, # required
745
779
  # media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
746
780
  # vocabulary_name: "VocabularyName",
@@ -757,6 +791,9 @@ module Aws::TranscribeStreamingService
757
791
  # content_redaction_type: "PII", # accepts PII
758
792
  # pii_entity_types: "PiiEntityTypes",
759
793
  # language_model_name: "ModelName",
794
+ # identify_language: false,
795
+ # language_options: "LanguageOptions",
796
+ # 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
760
797
  # })
761
798
  # # => Seahorse::Client::AsyncResponse
762
799
  # async_resp.wait
@@ -800,6 +837,10 @@ module Aws::TranscribeStreamingService
800
837
  # event.transcript.results[0].alternatives[0].entities[0].content #=> String
801
838
  # event.transcript.results[0].alternatives[0].entities[0].confidence #=> Float
802
839
  # event.transcript.results[0].channel_id #=> String
840
+ # 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"
841
+ # event.transcript.results[0].language_identification #=> Array
842
+ # 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"
843
+ # event.transcript.results[0].language_identification[0].score #=> Float
803
844
  #
804
845
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
805
846
  # event.message #=> String
@@ -827,6 +868,9 @@ module Aws::TranscribeStreamingService
827
868
  # resp.content_redaction_type #=> String, one of "PII"
828
869
  # resp.pii_entity_types #=> String
829
870
  # resp.language_model_name #=> String
871
+ # resp.identify_language #=> Boolean
872
+ # resp.language_options #=> String
873
+ # 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"
830
874
  #
831
875
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
832
876
  #
@@ -871,7 +915,7 @@ module Aws::TranscribeStreamingService
871
915
  http_response: Seahorse::Client::Http::AsyncResponse.new,
872
916
  config: config)
873
917
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
874
- context[:gem_version] = '1.36.0'
918
+ context[:gem_version] = '1.37.0'
875
919
  Seahorse::Client::Request.new(handlers, context)
876
920
  end
877
921
 
@@ -360,7 +360,7 @@ module Aws::TranscribeStreamingService
360
360
  params: params,
361
361
  config: config)
362
362
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
363
- context[:gem_version] = '1.36.0'
363
+ context[:gem_version] = '1.37.0'
364
364
  Seahorse::Client::Request.new(handlers, context)
365
365
  end
366
366
 
@@ -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.36.0'
53
+ GEM_VERSION = '1.37.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.36.0
4
+ version: 1.37.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-11-04 00:00:00.000000000 Z
11
+ date: 2021-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core