aws-sdk-transcribeservice 1.87.0 → 1.88.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: b984bf0034ef5e054624cca729b51674023be3377c012b2cf283417a9efe9254
4
- data.tar.gz: a71b503dbde297664703ef76bc62120185768e08d7e24dce4af021452adec323
3
+ metadata.gz: 92bb961a72ee12c95ffee8eab18e870489364a5d85f381b29c9533d0a35b7bb8
4
+ data.tar.gz: 743f5280ac75c8cd643bf2971cadd5c1d89cd47c6a858eebbd9c3bc39a35878f
5
5
  SHA512:
6
- metadata.gz: 95f5f67ef073a4a13c454e97fcb51debd86a9c1bcac4f53f59554738769b3d900ba9279c88814adf26b84aafaa8a866f7e2948d32b0b26cb8f3f0fc0bf3dabbe
7
- data.tar.gz: 753fa6e9dc140c1be9c889df761691d3c65fa182e385f4d111cf838a9a06ef41425f1b17433e8df8e45b33d49728452736a2b07ec270c1938cc4e4517bdb1e33
6
+ metadata.gz: 0c8e6b52cd8521658d6c2dad34b7ca915c0a625814c63e4efa09e22880f76c8936ed404b4b9b39838c755629f234863bfc959d89cce207150899a337045b5003
7
+ data.tar.gz: f4f5884bce983d5a60b3652cc8ddbe7230bc391bc25a6500b11e0c7483ab35022069943a832b605812f8de1421fb04b26249032ff307f760afced4b21116d4b2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.88.0 (2023-07-20)
5
+ ------------------
6
+
7
+ * Feature - Added API argument --toxicity-detection to startTranscriptionJob API, which allows users to view toxicity scores of submitted audio.
8
+
4
9
  1.87.0 (2023-07-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.87.0
1
+ 1.88.0
@@ -1694,6 +1694,9 @@ module Aws::TranscribeService
1694
1694
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_name #=> String
1695
1695
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_filter_name #=> String
1696
1696
  # resp.transcription_job.language_id_settings["LanguageCode"].language_model_name #=> String
1697
+ # resp.transcription_job.toxicity_detection #=> Array
1698
+ # resp.transcription_job.toxicity_detection[0].toxicity_categories #=> Array
1699
+ # resp.transcription_job.toxicity_detection[0].toxicity_categories[0] #=> String, one of "ALL"
1697
1700
  #
1698
1701
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob AWS API Documentation
1699
1702
  #
@@ -2281,6 +2284,9 @@ module Aws::TranscribeService
2281
2284
  # resp.transcription_job_summaries[0].language_codes #=> Array
2282
2285
  # resp.transcription_job_summaries[0].language_codes[0].language_code #=> String, one of "af-ZA", "ar-AE", "ar-SA", "da-DK", "de-CH", "de-DE", "en-AB", "en-AU", "en-GB", "en-IE", "en-IN", "en-US", "en-WL", "es-ES", "es-US", "fa-IR", "fr-CA", "fr-FR", "he-IL", "hi-IN", "id-ID", "it-IT", "ja-JP", "ko-KR", "ms-MY", "nl-NL", "pt-BR", "pt-PT", "ru-RU", "ta-IN", "te-IN", "tr-TR", "zh-CN", "zh-TW", "th-TH", "en-ZA", "en-NZ", "vi-VN", "sv-SE"
2283
2286
  # resp.transcription_job_summaries[0].language_codes[0].duration_in_seconds #=> Float
2287
+ # resp.transcription_job_summaries[0].toxicity_detection #=> Array
2288
+ # resp.transcription_job_summaries[0].toxicity_detection[0].toxicity_categories #=> Array
2289
+ # resp.transcription_job_summaries[0].toxicity_detection[0].toxicity_categories[0] #=> String, one of "ALL"
2284
2290
  #
2285
2291
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
2286
2292
  #
@@ -3325,6 +3331,18 @@ module Aws::TranscribeService
3325
3331
  # VocabularyFilterName (or both) sub-parameter.</p>
3326
3332
  # `
3327
3333
  #
3334
+ # @option params [Array<Types::ToxicityDetectionSettings>] :toxicity_detection
3335
+ # Enables toxic speech detection in your transcript. If you include
3336
+ # `ToxicityDetection` in your request, you must also include
3337
+ # `ToxicityCategories`.
3338
+ #
3339
+ # For information on the types of toxic speech Amazon Transcribe can
3340
+ # detect, see [Detecting toxic speech][1].
3341
+ #
3342
+ #
3343
+ #
3344
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/toxic-language.html
3345
+ #
3328
3346
  # @return [Types::StartTranscriptionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3329
3347
  #
3330
3348
  # * {Types::StartTranscriptionJobResponse#transcription_job #transcription_job} => Types::TranscriptionJob
@@ -3388,6 +3406,11 @@ module Aws::TranscribeService
3388
3406
  # language_model_name: "ModelName",
3389
3407
  # },
3390
3408
  # },
3409
+ # toxicity_detection: [
3410
+ # {
3411
+ # toxicity_categories: ["ALL"], # required, accepts ALL
3412
+ # },
3413
+ # ],
3391
3414
  # })
3392
3415
  #
3393
3416
  # @example Response structure
@@ -3440,6 +3463,9 @@ module Aws::TranscribeService
3440
3463
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_name #=> String
3441
3464
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_filter_name #=> String
3442
3465
  # resp.transcription_job.language_id_settings["LanguageCode"].language_model_name #=> String
3466
+ # resp.transcription_job.toxicity_detection #=> Array
3467
+ # resp.transcription_job.toxicity_detection[0].toxicity_categories #=> Array
3468
+ # resp.transcription_job.toxicity_detection[0].toxicity_categories[0] #=> String, one of "ALL"
3443
3469
  #
3444
3470
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob AWS API Documentation
3445
3471
  #
@@ -3972,7 +3998,7 @@ module Aws::TranscribeService
3972
3998
  params: params,
3973
3999
  config: config)
3974
4000
  context[:gem_name] = 'aws-sdk-transcribeservice'
3975
- context[:gem_version] = '1.87.0'
4001
+ context[:gem_version] = '1.88.0'
3976
4002
  Seahorse::Client::Request.new(handlers, context)
3977
4003
  end
3978
4004
 
@@ -168,6 +168,10 @@ module Aws::TranscribeService
168
168
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
169
169
  TagValue = Shapes::StringShape.new(name: 'TagValue')
170
170
  TimestampMilliseconds = Shapes::IntegerShape.new(name: 'TimestampMilliseconds')
171
+ ToxicityCategories = Shapes::ListShape.new(name: 'ToxicityCategories')
172
+ ToxicityCategory = Shapes::StringShape.new(name: 'ToxicityCategory')
173
+ ToxicityDetection = Shapes::ListShape.new(name: 'ToxicityDetection')
174
+ ToxicityDetectionSettings = Shapes::StructureShape.new(name: 'ToxicityDetectionSettings')
171
175
  TranscribeArn = Shapes::StringShape.new(name: 'TranscribeArn')
172
176
  Transcript = Shapes::StructureShape.new(name: 'Transcript')
173
177
  TranscriptFilter = Shapes::StructureShape.new(name: 'TranscriptFilter')
@@ -717,6 +721,7 @@ module Aws::TranscribeService
717
721
  StartTranscriptionJobRequest.add_member(:subtitles, Shapes::ShapeRef.new(shape: Subtitles, location_name: "Subtitles"))
718
722
  StartTranscriptionJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
719
723
  StartTranscriptionJobRequest.add_member(:language_id_settings, Shapes::ShapeRef.new(shape: LanguageIdSettingsMap, location_name: "LanguageIdSettings"))
724
+ StartTranscriptionJobRequest.add_member(:toxicity_detection, Shapes::ShapeRef.new(shape: ToxicityDetection, location_name: "ToxicityDetection"))
720
725
  StartTranscriptionJobRequest.struct_class = Types::StartTranscriptionJobRequest
721
726
 
722
727
  StartTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob"))
@@ -751,6 +756,13 @@ module Aws::TranscribeService
751
756
 
752
757
  TagResourceResponse.struct_class = Types::TagResourceResponse
753
758
 
759
+ ToxicityCategories.member = Shapes::ShapeRef.new(shape: ToxicityCategory)
760
+
761
+ ToxicityDetection.member = Shapes::ShapeRef.new(shape: ToxicityDetectionSettings)
762
+
763
+ ToxicityDetectionSettings.add_member(:toxicity_categories, Shapes::ShapeRef.new(shape: ToxicityCategories, required: true, location_name: "ToxicityCategories"))
764
+ ToxicityDetectionSettings.struct_class = Types::ToxicityDetectionSettings
765
+
754
766
  Transcript.add_member(:transcript_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "TranscriptFileUri"))
755
767
  Transcript.add_member(:redacted_transcript_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "RedactedTranscriptFileUri"))
756
768
  Transcript.struct_class = Types::Transcript
@@ -786,6 +798,7 @@ module Aws::TranscribeService
786
798
  TranscriptionJob.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
787
799
  TranscriptionJob.add_member(:subtitles, Shapes::ShapeRef.new(shape: SubtitlesOutput, location_name: "Subtitles"))
788
800
  TranscriptionJob.add_member(:language_id_settings, Shapes::ShapeRef.new(shape: LanguageIdSettingsMap, location_name: "LanguageIdSettings"))
801
+ TranscriptionJob.add_member(:toxicity_detection, Shapes::ShapeRef.new(shape: ToxicityDetection, location_name: "ToxicityDetection"))
789
802
  TranscriptionJob.struct_class = Types::TranscriptionJob
790
803
 
791
804
  TranscriptionJobSummaries.member = Shapes::ShapeRef.new(shape: TranscriptionJobSummary)
@@ -804,6 +817,7 @@ module Aws::TranscribeService
804
817
  TranscriptionJobSummary.add_member(:identify_multiple_languages, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyMultipleLanguages"))
805
818
  TranscriptionJobSummary.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
806
819
  TranscriptionJobSummary.add_member(:language_codes, Shapes::ShapeRef.new(shape: LanguageCodeList, location_name: "LanguageCodes"))
820
+ TranscriptionJobSummary.add_member(:toxicity_detection, Shapes::ShapeRef.new(shape: ToxicityDetection, location_name: "ToxicityDetection"))
807
821
  TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
808
822
 
809
823
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TranscribeArn, required: true, location_name: "ResourceArn"))
@@ -4104,6 +4104,19 @@ module Aws::TranscribeService
4104
4104
  # `
4105
4105
  # @return [Hash<String,Types::LanguageIdSettings>]
4106
4106
  #
4107
+ # @!attribute [rw] toxicity_detection
4108
+ # Enables toxic speech detection in your transcript. If you include
4109
+ # `ToxicityDetection` in your request, you must also include
4110
+ # `ToxicityCategories`.
4111
+ #
4112
+ # For information on the types of toxic speech Amazon Transcribe can
4113
+ # detect, see [Detecting toxic speech][1].
4114
+ #
4115
+ #
4116
+ #
4117
+ # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/toxic-language.html
4118
+ # @return [Array<Types::ToxicityDetectionSettings>]
4119
+ #
4107
4120
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJobRequest AWS API Documentation
4108
4121
  #
4109
4122
  class StartTranscriptionJobRequest < Struct.new(
@@ -4125,7 +4138,8 @@ module Aws::TranscribeService
4125
4138
  :language_options,
4126
4139
  :subtitles,
4127
4140
  :tags,
4128
- :language_id_settings)
4141
+ :language_id_settings,
4142
+ :toxicity_detection)
4129
4143
  SENSITIVE = []
4130
4144
  include Aws::Structure
4131
4145
  end
@@ -4302,6 +4316,24 @@ module Aws::TranscribeService
4302
4316
  #
4303
4317
  class TagResourceResponse < Aws::EmptyStructure; end
4304
4318
 
4319
+ # Contains `ToxicityCategories`, which is a required parameter if you
4320
+ # want to enable toxicity detection (`ToxicityDetection`) in your
4321
+ # transcription request.
4322
+ #
4323
+ # @!attribute [rw] toxicity_categories
4324
+ # If you include `ToxicityDetection` in your transcription request,
4325
+ # you must also include `ToxicityCategories`. The only accepted value
4326
+ # for this parameter is `ALL`.
4327
+ # @return [Array<String>]
4328
+ #
4329
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ToxicityDetectionSettings AWS API Documentation
4330
+ #
4331
+ class ToxicityDetectionSettings < Struct.new(
4332
+ :toxicity_categories)
4333
+ SENSITIVE = []
4334
+ include Aws::Structure
4335
+ end
4336
+
4305
4337
  # Provides you with the Amazon S3 URI you can use to access your
4306
4338
  # transcript.
4307
4339
  #
@@ -4623,6 +4655,11 @@ module Aws::TranscribeService
4623
4655
  # your request.
4624
4656
  # @return [Hash<String,Types::LanguageIdSettings>]
4625
4657
  #
4658
+ # @!attribute [rw] toxicity_detection
4659
+ # Provides information about the toxicity detection settings applied
4660
+ # to your transcription.
4661
+ # @return [Array<Types::ToxicityDetectionSettings>]
4662
+ #
4626
4663
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJob AWS API Documentation
4627
4664
  #
4628
4665
  class TranscriptionJob < Struct.new(
@@ -4648,7 +4685,8 @@ module Aws::TranscribeService
4648
4685
  :language_codes,
4649
4686
  :tags,
4650
4687
  :subtitles,
4651
- :language_id_settings)
4688
+ :language_id_settings,
4689
+ :toxicity_detection)
4652
4690
  SENSITIVE = []
4653
4691
  include Aws::Structure
4654
4692
  end
@@ -4767,6 +4805,11 @@ module Aws::TranscribeService
4767
4805
  # parameter, `LanguageCode`, is present.
4768
4806
  # @return [Array<Types::LanguageCodeItem>]
4769
4807
  #
4808
+ # @!attribute [rw] toxicity_detection
4809
+ # Indicates whether toxicity detection was enabled for the specified
4810
+ # transcription job.
4811
+ # @return [Array<Types::ToxicityDetectionSettings>]
4812
+ #
4770
4813
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJobSummary AWS API Documentation
4771
4814
  #
4772
4815
  class TranscriptionJobSummary < Struct.new(
@@ -4783,7 +4826,8 @@ module Aws::TranscribeService
4783
4826
  :identify_language,
4784
4827
  :identify_multiple_languages,
4785
4828
  :identified_language_score,
4786
- :language_codes)
4829
+ :language_codes,
4830
+ :toxicity_detection)
4787
4831
  SENSITIVE = []
4788
4832
  include Aws::Structure
4789
4833
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-transcribeservice/customizations'
52
52
  # @!group service
53
53
  module Aws::TranscribeService
54
54
 
55
- GEM_VERSION = '1.87.0'
55
+ GEM_VERSION = '1.88.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-transcribeservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.87.0
4
+ version: 1.88.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: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core