aws-sdk-transcribestreamingservice 1.89.0 → 1.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d65d655e0dbd2df1fba8269c9c653057a8a3d0648c104a8b406494bda9a9262
4
- data.tar.gz: f7233619e280892572a5de08c7aaf3df6704a88d8a7e8e102465d8fdc163e7d3
3
+ metadata.gz: c7be1571742beb92705ba9a18d60a5890a958366ca8dee9305a7b67eb4e288f4
4
+ data.tar.gz: 4a1bc68d9abeee389b88f6c208b1f85c3acc4b6ba41d2bce16384d15b5f72f08
5
5
  SHA512:
6
- metadata.gz: 6576ea33a968b28a0dde299ebb8770d20483dd1138ba1ecde11681c462ed79a7dc172e75cb6e7e829323672f1834a0c587908ca0539c1b80bf9b05559142a70f
7
- data.tar.gz: 7ee295712b863ddf91fc32899b169691b4c38f444df5593f47dd23e78ea98968aca07cd9c6ee5115b7ac90bb6cf79011aefd5d8714c606d0caa9b7351c2ca497
6
+ metadata.gz: 5acb9cfd8cf0a38abaf5ab2154046fbf6380c1ac959532a505dbaa3a446566db3087ac453f1d3a830cfff249f55cd1fa4b77c193294df1e64ee21adbdfc190e7
7
+ data.tar.gz: fef0996e68f94e6ac6380fcf3f74b44e251e6d1f2ac82ac5f0ba75b2f7a78684519e7589d8141480a362291024b360d6dde7366eeedc889d99adcd3d88c241b6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.90.0 (2025-09-03)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for automatic language identification in AWS Transcribe Call Analytics
8
+
4
9
  1.89.0 (2025-08-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
1
+ 1.90.0
@@ -418,7 +418,7 @@ module Aws::TranscribeStreamingService
418
418
  #
419
419
  # The following parameters are required:
420
420
  #
421
- # * `language-code`
421
+ # * `language-code` or `identify-language`
422
422
  #
423
423
  # * `media-encoding`
424
424
  #
@@ -432,7 +432,7 @@ module Aws::TranscribeStreamingService
432
432
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics.html
433
433
  # [2]: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html
434
434
  #
435
- # @option params [required, String] :language_code
435
+ # @option params [String] :language_code
436
436
  # Specify the language code that represents the language spoken in your
437
437
  # audio.
438
438
  #
@@ -527,6 +527,88 @@ module Aws::TranscribeStreamingService
527
527
  #
528
528
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html
529
529
  #
530
+ # @option params [Boolean] :identify_language
531
+ # Enables automatic language identification for your Call Analytics
532
+ # transcription.
533
+ #
534
+ # If you include `IdentifyLanguage`, you must include a list of language
535
+ # codes, using `LanguageOptions`, that you think may be present in your
536
+ # audio stream. You must provide a minimum of two language selections.
537
+ #
538
+ # You can also include a preferred language using `PreferredLanguage`.
539
+ # Adding a preferred language can help Amazon Transcribe identify the
540
+ # language faster than if you omit this parameter.
541
+ #
542
+ # Note that you must include either `LanguageCode` or `IdentifyLanguage`
543
+ # in your request. If you include both parameters, your transcription
544
+ # job fails.
545
+ #
546
+ # @option params [String] :language_options
547
+ # Specify two or more language codes that represent the languages you
548
+ # think may be present in your media.
549
+ #
550
+ # Including language options can improve the accuracy of language
551
+ # identification.
552
+ #
553
+ # If you include `LanguageOptions` in your request, you must also
554
+ # include `IdentifyLanguage`.
555
+ #
556
+ # For a list of languages supported with Call Analytics streaming, refer
557
+ # to the [Supported languages][1] table.
558
+ #
559
+ # You can only include one language dialect per language per stream. For
560
+ # example, you cannot include `en-US` and `en-AU` in the same request.
561
+ #
562
+ #
563
+ #
564
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html
565
+ #
566
+ # @option params [String] :preferred_language
567
+ # Specify a preferred language from the subset of languages codes you
568
+ # specified in `LanguageOptions`.
569
+ #
570
+ # You can only use this parameter if you've included `IdentifyLanguage`
571
+ # and `LanguageOptions` in your request.
572
+ #
573
+ # @option params [String] :vocabulary_names
574
+ # Specify the names of the custom vocabularies that you want to use when
575
+ # processing your Call Analytics transcription. Note that vocabulary
576
+ # names are case sensitive.
577
+ #
578
+ # If the custom vocabulary's language doesn't match the identified
579
+ # media language, it won't be applied to the transcription.
580
+ #
581
+ # This parameter is only intended for use **with** the
582
+ # `IdentifyLanguage` parameter. If you're **not** including
583
+ # `IdentifyLanguage` in your request and want to use a custom vocabulary
584
+ # with your transcription, use the `VocabularyName` parameter instead.
585
+ #
586
+ # For more information, see [Custom vocabularies][1].
587
+ #
588
+ #
589
+ #
590
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html
591
+ #
592
+ # @option params [String] :vocabulary_filter_names
593
+ # Specify the names of the custom vocabulary filters that you want to
594
+ # use when processing your Call Analytics transcription. Note that
595
+ # vocabulary filter names are case sensitive.
596
+ #
597
+ # These filters serve to customize the transcript output.
598
+ #
599
+ # This parameter is only intended for use **with** the
600
+ # `IdentifyLanguage` parameter. If you're **not** including
601
+ # `IdentifyLanguage` in your request and want to use a custom vocabulary
602
+ # filter with your transcription, use the `VocabularyFilterName`
603
+ # parameter instead.
604
+ #
605
+ # For more information, see [Using vocabulary filtering with unwanted
606
+ # words][1].
607
+ #
608
+ #
609
+ #
610
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html
611
+ #
530
612
  # @option params [Boolean] :enable_partial_results_stabilization
531
613
  # Enables partial result stabilization for your transcription. Partial
532
614
  # result stabilization can reduce latency in your output, but may impact
@@ -618,6 +700,11 @@ module Aws::TranscribeStreamingService
618
700
  # * {Types::StartCallAnalyticsStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
619
701
  # * {Types::StartCallAnalyticsStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
620
702
  # * {Types::StartCallAnalyticsStreamTranscriptionResponse#language_model_name #language_model_name} => String
703
+ # * {Types::StartCallAnalyticsStreamTranscriptionResponse#identify_language #identify_language} => Boolean
704
+ # * {Types::StartCallAnalyticsStreamTranscriptionResponse#language_options #language_options} => String
705
+ # * {Types::StartCallAnalyticsStreamTranscriptionResponse#preferred_language #preferred_language} => String
706
+ # * {Types::StartCallAnalyticsStreamTranscriptionResponse#vocabulary_names #vocabulary_names} => String
707
+ # * {Types::StartCallAnalyticsStreamTranscriptionResponse#vocabulary_filter_names #vocabulary_filter_names} => String
621
708
  # * {Types::StartCallAnalyticsStreamTranscriptionResponse#enable_partial_results_stabilization #enable_partial_results_stabilization} => Boolean
622
709
  # * {Types::StartCallAnalyticsStreamTranscriptionResponse#partial_results_stability #partial_results_stability} => String
623
710
  # * {Types::StartCallAnalyticsStreamTranscriptionResponse#content_identification_type #content_identification_type} => String
@@ -730,7 +817,7 @@ module Aws::TranscribeStreamingService
730
817
  # @example Request syntax with placeholder values
731
818
  #
732
819
  # async_resp = async_client.start_call_analytics_stream_transcription({
733
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR
820
+ # language_code: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR
734
821
  # media_sample_rate_hertz: 1, # required
735
822
  # media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
736
823
  # vocabulary_name: "VocabularyName",
@@ -739,6 +826,11 @@ module Aws::TranscribeStreamingService
739
826
  # vocabulary_filter_name: "VocabularyFilterName",
740
827
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
741
828
  # language_model_name: "ModelName",
829
+ # identify_language: false,
830
+ # language_options: "LanguageOptions",
831
+ # preferred_language: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR
832
+ # vocabulary_names: "VocabularyNames",
833
+ # vocabulary_filter_names: "VocabularyFilterNames",
742
834
  # enable_partial_results_stabilization: false,
743
835
  # partial_results_stability: "high", # accepts high, medium, low
744
836
  # content_identification_type: "PII", # accepts PII
@@ -788,6 +880,10 @@ module Aws::TranscribeStreamingService
788
880
  # event.issues_detected #=> Array
789
881
  # event.issues_detected[0].character_offsets.begin #=> Integer
790
882
  # event.issues_detected[0].character_offsets.end #=> Integer
883
+ # event.language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR"
884
+ # event.language_identification #=> Array
885
+ # event.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"
886
+ # event.language_identification[0].score #=> Float
791
887
  #
792
888
  # # For :category_event event available at #on_category_event_event callback and response eventstream enumerator:
793
889
  # event.matched_categories #=> Array
@@ -815,6 +911,11 @@ module Aws::TranscribeStreamingService
815
911
  # resp.vocabulary_filter_name #=> String
816
912
  # resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
817
913
  # resp.language_model_name #=> String
914
+ # resp.identify_language #=> Boolean
915
+ # resp.language_options #=> String
916
+ # resp.preferred_language #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR"
917
+ # resp.vocabulary_names #=> String
918
+ # resp.vocabulary_filter_names #=> String
818
919
  # resp.enable_partial_results_stabilization #=> Boolean
819
920
  # resp.partial_results_stability #=> String, one of "high", "medium", "low"
820
921
  # resp.content_identification_type #=> String, one of "PII"
@@ -2090,7 +2191,7 @@ module Aws::TranscribeStreamingService
2090
2191
  tracer: tracer
2091
2192
  )
2092
2193
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
2093
- context[:gem_version] = '1.89.0'
2194
+ context[:gem_version] = '1.90.0'
2094
2195
  Seahorse::Client::Request.new(handlers, context)
2095
2196
  end
2096
2197
 
@@ -561,7 +561,7 @@ module Aws::TranscribeStreamingService
561
561
  tracer: tracer
562
562
  )
563
563
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
564
- context[:gem_version] = '1.89.0'
564
+ context[:gem_version] = '1.90.0'
565
565
  Seahorse::Client::Request.new(handlers, context)
566
566
  end
567
567
 
@@ -27,6 +27,8 @@ module Aws::TranscribeStreamingService
27
27
  CallAnalyticsItem = Shapes::StructureShape.new(name: 'CallAnalyticsItem')
28
28
  CallAnalyticsItemList = Shapes::ListShape.new(name: 'CallAnalyticsItemList')
29
29
  CallAnalyticsLanguageCode = Shapes::StringShape.new(name: 'CallAnalyticsLanguageCode')
30
+ CallAnalyticsLanguageIdentification = Shapes::ListShape.new(name: 'CallAnalyticsLanguageIdentification')
31
+ CallAnalyticsLanguageWithScore = Shapes::StructureShape.new(name: 'CallAnalyticsLanguageWithScore')
30
32
  CallAnalyticsTranscriptResultStream = Shapes::StructureShape.new(name: 'CallAnalyticsTranscriptResultStream')
31
33
  CategoryEvent = Shapes::StructureShape.new(name: 'CategoryEvent')
32
34
  ChannelDefinition = Shapes::StructureShape.new(name: 'ChannelDefinition')
@@ -187,6 +189,12 @@ module Aws::TranscribeStreamingService
187
189
 
188
190
  CallAnalyticsItemList.member = Shapes::ShapeRef.new(shape: CallAnalyticsItem)
189
191
 
192
+ CallAnalyticsLanguageIdentification.member = Shapes::ShapeRef.new(shape: CallAnalyticsLanguageWithScore)
193
+
194
+ CallAnalyticsLanguageWithScore.add_member(:language_code, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, location_name: "LanguageCode"))
195
+ CallAnalyticsLanguageWithScore.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "Score"))
196
+ CallAnalyticsLanguageWithScore.struct_class = Types::CallAnalyticsLanguageWithScore
197
+
190
198
  CallAnalyticsTranscriptResultStream.add_member(:utterance_event, Shapes::ShapeRef.new(shape: UtteranceEvent, event: true, location_name: "UtteranceEvent"))
191
199
  CallAnalyticsTranscriptResultStream.add_member(:category_event, Shapes::ShapeRef.new(shape: CategoryEvent, event: true, location_name: "CategoryEvent"))
192
200
  CallAnalyticsTranscriptResultStream.add_member(:bad_request_exception, Shapes::ShapeRef.new(shape: BadRequestException, event: true, location_name: "BadRequestException"))
@@ -446,7 +454,7 @@ module Aws::TranscribeStreamingService
446
454
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
447
455
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
448
456
 
449
- StartCallAnalyticsStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
457
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, location: "header", location_name: "x-amzn-transcribe-language-code"))
450
458
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
451
459
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
452
460
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
@@ -455,6 +463,11 @@ module Aws::TranscribeStreamingService
455
463
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
456
464
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
457
465
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
466
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-identify-language"))
467
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location: "header", location_name: "x-amzn-transcribe-language-options"))
468
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:preferred_language, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, location: "header", location_name: "x-amzn-transcribe-preferred-language"))
469
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_names, Shapes::ShapeRef.new(shape: VocabularyNames, location: "header", location_name: "x-amzn-transcribe-vocabulary-names"))
470
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_filter_names, Shapes::ShapeRef.new(shape: VocabularyFilterNames, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-names"))
458
471
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
459
472
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
460
473
  StartCallAnalyticsStreamTranscriptionRequest.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
@@ -474,6 +487,11 @@ module Aws::TranscribeStreamingService
474
487
  StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
475
488
  StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
476
489
  StartCallAnalyticsStreamTranscriptionResponse.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
490
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-identify-language"))
491
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location: "header", location_name: "x-amzn-transcribe-language-options"))
492
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:preferred_language, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, location: "header", location_name: "x-amzn-transcribe-preferred-language"))
493
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_names, Shapes::ShapeRef.new(shape: VocabularyNames, location: "header", location_name: "x-amzn-transcribe-vocabulary-names"))
494
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_filter_names, Shapes::ShapeRef.new(shape: VocabularyFilterNames, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-names"))
477
495
  StartCallAnalyticsStreamTranscriptionResponse.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
478
496
  StartCallAnalyticsStreamTranscriptionResponse.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
479
497
  StartCallAnalyticsStreamTranscriptionResponse.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
@@ -622,6 +640,8 @@ module Aws::TranscribeStreamingService
622
640
  UtteranceEvent.add_member(:entities, Shapes::ShapeRef.new(shape: CallAnalyticsEntityList, location_name: "Entities"))
623
641
  UtteranceEvent.add_member(:sentiment, Shapes::ShapeRef.new(shape: Sentiment, location_name: "Sentiment"))
624
642
  UtteranceEvent.add_member(:issues_detected, Shapes::ShapeRef.new(shape: IssuesDetected, location_name: "IssuesDetected"))
643
+ UtteranceEvent.add_member(:language_code, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, location_name: "LanguageCode"))
644
+ UtteranceEvent.add_member(:language_identification, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageIdentification, location_name: "LanguageIdentification"))
625
645
  UtteranceEvent.struct_class = Types::UtteranceEvent
626
646
 
627
647
 
@@ -203,6 +203,28 @@ module Aws::TranscribeStreamingService
203
203
  include Aws::Structure
204
204
  end
205
205
 
206
+ # The language code that represents the language identified in your
207
+ # audio, including the associated confidence score.
208
+ #
209
+ # @!attribute [rw] language_code
210
+ # The language code of the identified language.
211
+ # @return [String]
212
+ #
213
+ # @!attribute [rw] score
214
+ # The confidence score associated with the identified language code.
215
+ # Confidence scores are values between zero and one; larger values
216
+ # indicate a higher confidence in the identified language.
217
+ # @return [Float]
218
+ #
219
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/CallAnalyticsLanguageWithScore AWS API Documentation
220
+ #
221
+ class CallAnalyticsLanguageWithScore < Struct.new(
222
+ :language_code,
223
+ :score)
224
+ SENSITIVE = []
225
+ include Aws::Structure
226
+ end
227
+
206
228
  # Provides information on any `TranscriptFilterType` categories that
207
229
  # matched your transcription output. Matches are identified for each
208
230
  # segment upon completion of that segment.
@@ -1736,6 +1758,96 @@ module Aws::TranscribeStreamingService
1736
1758
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html
1737
1759
  # @return [String]
1738
1760
  #
1761
+ # @!attribute [rw] identify_language
1762
+ # Enables automatic language identification for your Call Analytics
1763
+ # transcription.
1764
+ #
1765
+ # If you include `IdentifyLanguage`, you must include a list of
1766
+ # language codes, using `LanguageOptions`, that you think may be
1767
+ # present in your audio stream. You must provide a minimum of two
1768
+ # language selections.
1769
+ #
1770
+ # You can also include a preferred language using `PreferredLanguage`.
1771
+ # Adding a preferred language can help Amazon Transcribe identify the
1772
+ # language faster than if you omit this parameter.
1773
+ #
1774
+ # Note that you must include either `LanguageCode` or
1775
+ # `IdentifyLanguage` in your request. If you include both parameters,
1776
+ # your transcription job fails.
1777
+ # @return [Boolean]
1778
+ #
1779
+ # @!attribute [rw] language_options
1780
+ # Specify two or more language codes that represent the languages you
1781
+ # think may be present in your media.
1782
+ #
1783
+ # Including language options can improve the accuracy of language
1784
+ # identification.
1785
+ #
1786
+ # If you include `LanguageOptions` in your request, you must also
1787
+ # include `IdentifyLanguage`.
1788
+ #
1789
+ # For a list of languages supported with Call Analytics streaming,
1790
+ # refer to the [Supported languages][1] table.
1791
+ #
1792
+ # You can only include one language dialect per language per stream.
1793
+ # For example, you cannot include `en-US` and `en-AU` in the same
1794
+ # request.
1795
+ #
1796
+ #
1797
+ #
1798
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html
1799
+ # @return [String]
1800
+ #
1801
+ # @!attribute [rw] preferred_language
1802
+ # Specify a preferred language from the subset of languages codes you
1803
+ # specified in `LanguageOptions`.
1804
+ #
1805
+ # You can only use this parameter if you've included
1806
+ # `IdentifyLanguage` and `LanguageOptions` in your request.
1807
+ # @return [String]
1808
+ #
1809
+ # @!attribute [rw] vocabulary_names
1810
+ # Specify the names of the custom vocabularies that you want to use
1811
+ # when processing your Call Analytics transcription. Note that
1812
+ # vocabulary names are case sensitive.
1813
+ #
1814
+ # If the custom vocabulary's language doesn't match the identified
1815
+ # media language, it won't be applied to the transcription.
1816
+ #
1817
+ # This parameter is only intended for use **with** the
1818
+ # `IdentifyLanguage` parameter. If you're **not** including
1819
+ # `IdentifyLanguage` in your request and want to use a custom
1820
+ # vocabulary with your transcription, use the `VocabularyName`
1821
+ # parameter instead.
1822
+ #
1823
+ # For more information, see [Custom vocabularies][1].
1824
+ #
1825
+ #
1826
+ #
1827
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html
1828
+ # @return [String]
1829
+ #
1830
+ # @!attribute [rw] vocabulary_filter_names
1831
+ # Specify the names of the custom vocabulary filters that you want to
1832
+ # use when processing your Call Analytics transcription. Note that
1833
+ # vocabulary filter names are case sensitive.
1834
+ #
1835
+ # These filters serve to customize the transcript output.
1836
+ #
1837
+ # This parameter is only intended for use **with** the
1838
+ # `IdentifyLanguage` parameter. If you're **not** including
1839
+ # `IdentifyLanguage` in your request and want to use a custom
1840
+ # vocabulary filter with your transcription, use the
1841
+ # `VocabularyFilterName` parameter instead.
1842
+ #
1843
+ # For more information, see [Using vocabulary filtering with unwanted
1844
+ # words][1].
1845
+ #
1846
+ #
1847
+ #
1848
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html
1849
+ # @return [String]
1850
+ #
1739
1851
  # @!attribute [rw] enable_partial_results_stabilization
1740
1852
  # Enables partial result stabilization for your transcription. Partial
1741
1853
  # result stabilization can reduce latency in your output, but may
@@ -1833,6 +1945,11 @@ module Aws::TranscribeStreamingService
1833
1945
  :vocabulary_filter_name,
1834
1946
  :vocabulary_filter_method,
1835
1947
  :language_model_name,
1948
+ :identify_language,
1949
+ :language_options,
1950
+ :preferred_language,
1951
+ :vocabulary_names,
1952
+ :vocabulary_filter_names,
1836
1953
  :enable_partial_results_stabilization,
1837
1954
  :partial_results_stability,
1838
1955
  :content_identification_type,
@@ -1891,6 +2008,31 @@ module Aws::TranscribeStreamingService
1891
2008
  # your Call Analytics request.
1892
2009
  # @return [String]
1893
2010
  #
2011
+ # @!attribute [rw] identify_language
2012
+ # Shows whether automatic language identification was enabled for your
2013
+ # Call Analytics transcription.
2014
+ # @return [Boolean]
2015
+ #
2016
+ # @!attribute [rw] language_options
2017
+ # Provides the language codes that you specified in your Call
2018
+ # Analytics request.
2019
+ # @return [String]
2020
+ #
2021
+ # @!attribute [rw] preferred_language
2022
+ # Provides the preferred language that you specified in your Call
2023
+ # Analytics request.
2024
+ # @return [String]
2025
+ #
2026
+ # @!attribute [rw] vocabulary_names
2027
+ # Provides the names of the custom vocabularies that you specified in
2028
+ # your Call Analytics request.
2029
+ # @return [String]
2030
+ #
2031
+ # @!attribute [rw] vocabulary_filter_names
2032
+ # Provides the names of the custom vocabulary filters that you
2033
+ # specified in your Call Analytics request.
2034
+ # @return [String]
2035
+ #
1894
2036
  # @!attribute [rw] enable_partial_results_stabilization
1895
2037
  # Shows whether partial results stabilization was enabled for your
1896
2038
  # Call Analytics transcription.
@@ -1928,6 +2070,11 @@ module Aws::TranscribeStreamingService
1928
2070
  :vocabulary_filter_name,
1929
2071
  :vocabulary_filter_method,
1930
2072
  :language_model_name,
2073
+ :identify_language,
2074
+ :language_options,
2075
+ :preferred_language,
2076
+ :vocabulary_names,
2077
+ :vocabulary_filter_names,
1931
2078
  :enable_partial_results_stabilization,
1932
2079
  :partial_results_stability,
1933
2080
  :content_identification_type,
@@ -2919,6 +3066,16 @@ module Aws::TranscribeStreamingService
2919
3066
  # Provides the issue that was detected in the specified segment.
2920
3067
  # @return [Array<Types::IssueDetected>]
2921
3068
  #
3069
+ # @!attribute [rw] language_code
3070
+ # The language code that represents the language spoken in your audio
3071
+ # stream.
3072
+ # @return [String]
3073
+ #
3074
+ # @!attribute [rw] language_identification
3075
+ # The language code of the dominant language identified in your
3076
+ # stream.
3077
+ # @return [Array<Types::CallAnalyticsLanguageWithScore>]
3078
+ #
2922
3079
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/UtteranceEvent AWS API Documentation
2923
3080
  #
2924
3081
  class UtteranceEvent < Struct.new(
@@ -2932,6 +3089,8 @@ module Aws::TranscribeStreamingService
2932
3089
  :entities,
2933
3090
  :sentiment,
2934
3091
  :issues_detected,
3092
+ :language_code,
3093
+ :language_identification,
2935
3094
  :event_type)
2936
3095
  SENSITIVE = []
2937
3096
  include Aws::Structure
@@ -56,7 +56,7 @@ module Aws::TranscribeStreamingService
56
56
  autoload :AsyncClient, 'aws-sdk-transcribestreamingservice/async_client'
57
57
  autoload :EventStreams, 'aws-sdk-transcribestreamingservice/event_streams'
58
58
 
59
- GEM_VERSION = '1.89.0'
59
+ GEM_VERSION = '1.90.0'
60
60
 
61
61
  end
62
62
 
data/sig/async_client.rbs CHANGED
@@ -79,6 +79,11 @@ module Aws
79
79
  def vocabulary_filter_name: () -> ::String
80
80
  def vocabulary_filter_method: () -> ("remove" | "mask" | "tag")
81
81
  def language_model_name: () -> ::String
82
+ def identify_language: () -> bool
83
+ def language_options: () -> ::String
84
+ def preferred_language: () -> ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR")
85
+ def vocabulary_names: () -> ::String
86
+ def vocabulary_filter_names: () -> ::String
82
87
  def enable_partial_results_stabilization: () -> bool
83
88
  def partial_results_stability: () -> ("high" | "medium" | "low")
84
89
  def content_identification_type: () -> ("PII")
@@ -87,7 +92,7 @@ module Aws
87
92
  end
88
93
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TranscribeStreamingService/AsyncClient.html#start_call_analytics_stream_transcription-instance_method
89
94
  def start_call_analytics_stream_transcription: (
90
- language_code: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR"),
95
+ ?language_code: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR"),
91
96
  media_sample_rate_hertz: ::Integer,
92
97
  media_encoding: ("pcm" | "ogg-opus" | "flac"),
93
98
  ?vocabulary_name: ::String,
@@ -97,6 +102,11 @@ module Aws
97
102
  ?vocabulary_filter_name: ::String,
98
103
  ?vocabulary_filter_method: ("remove" | "mask" | "tag"),
99
104
  ?language_model_name: ::String,
105
+ ?identify_language: bool,
106
+ ?language_options: ::String,
107
+ ?preferred_language: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR"),
108
+ ?vocabulary_names: ::String,
109
+ ?vocabulary_filter_names: ::String,
100
110
  ?enable_partial_results_stabilization: bool,
101
111
  ?partial_results_stability: ("high" | "medium" | "low"),
102
112
  ?content_identification_type: ("PII"),
data/sig/types.rbs CHANGED
@@ -48,6 +48,12 @@ module Aws::TranscribeStreamingService
48
48
  SENSITIVE: []
49
49
  end
50
50
 
51
+ class CallAnalyticsLanguageWithScore
52
+ attr_accessor language_code: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR")
53
+ attr_accessor score: ::Float
54
+ SENSITIVE: []
55
+ end
56
+
51
57
  class CategoryEvent
52
58
  attr_accessor matched_categories: ::Array[::String]
53
59
  attr_accessor matched_details: ::Hash[::String, Types::PointsOfInterest]
@@ -346,6 +352,11 @@ module Aws::TranscribeStreamingService
346
352
  attr_accessor vocabulary_filter_name: ::String
347
353
  attr_accessor vocabulary_filter_method: ("remove" | "mask" | "tag")
348
354
  attr_accessor language_model_name: ::String
355
+ attr_accessor identify_language: bool
356
+ attr_accessor language_options: ::String
357
+ attr_accessor preferred_language: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR")
358
+ attr_accessor vocabulary_names: ::String
359
+ attr_accessor vocabulary_filter_names: ::String
349
360
  attr_accessor enable_partial_results_stabilization: bool
350
361
  attr_accessor partial_results_stability: ("high" | "medium" | "low")
351
362
  attr_accessor content_identification_type: ("PII")
@@ -365,6 +376,11 @@ module Aws::TranscribeStreamingService
365
376
  attr_accessor vocabulary_filter_name: ::String
366
377
  attr_accessor vocabulary_filter_method: ("remove" | "mask" | "tag")
367
378
  attr_accessor language_model_name: ::String
379
+ attr_accessor identify_language: bool
380
+ attr_accessor language_options: ::String
381
+ attr_accessor preferred_language: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR")
382
+ attr_accessor vocabulary_names: ::String
383
+ attr_accessor vocabulary_filter_names: ::String
368
384
  attr_accessor enable_partial_results_stabilization: bool
369
385
  attr_accessor partial_results_stability: ("high" | "medium" | "low")
370
386
  attr_accessor content_identification_type: ("PII")
@@ -508,6 +524,8 @@ module Aws::TranscribeStreamingService
508
524
  attr_accessor entities: ::Array[Types::CallAnalyticsEntity]
509
525
  attr_accessor sentiment: ("POSITIVE" | "NEGATIVE" | "MIXED" | "NEUTRAL")
510
526
  attr_accessor issues_detected: ::Array[Types::IssueDetected]
527
+ attr_accessor language_code: ("en-US" | "en-GB" | "es-US" | "fr-CA" | "fr-FR" | "en-AU" | "it-IT" | "de-DE" | "pt-BR")
528
+ attr_accessor language_identification: ::Array[Types::CallAnalyticsLanguageWithScore]
511
529
  attr_accessor event_type: untyped
512
530
  SENSITIVE: []
513
531
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-transcribestreamingservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.89.0
4
+ version: 1.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services