aws-sdk-transcribeservice 1.86.0 → 1.88.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: 9fc9ee9e451f3c22d8563d11f7fe9125960f61e7b3857e6db5d4fb2154d21100
4
- data.tar.gz: 98798e005068a31e98317aec6c49a9501e3e945f1ed5999479b912313ca2e782
3
+ metadata.gz: 92bb961a72ee12c95ffee8eab18e870489364a5d85f381b29c9533d0a35b7bb8
4
+ data.tar.gz: 743f5280ac75c8cd643bf2971cadd5c1d89cd47c6a858eebbd9c3bc39a35878f
5
5
  SHA512:
6
- metadata.gz: a57dc39a96a6f9f20cb691ace5ba91762a6f9a8afb916ff194eff521841e702a1f050054fb9255b73bedb4cab2147836ed2ef1cccea3ae12cfc3ea63f6ec987b
7
- data.tar.gz: a85306ec20963d0647dd2be3720d50ceb139cb66dd04d51edac1cff8ee85348fa4a7562d77563c30a794d6cbdee04153c5052cda0db09d12846bd153b8b998ad
6
+ metadata.gz: 0c8e6b52cd8521658d6c2dad34b7ca915c0a625814c63e4efa09e22880f76c8936ed404b4b9b39838c755629f234863bfc959d89cce207150899a337045b5003
7
+ data.tar.gz: f4f5884bce983d5a60b3652cc8ddbe7230bc391bc25a6500b11e0c7483ab35022069943a832b605812f8de1421fb04b26249032ff307f760afced4b21116d4b2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.87.0 (2023-07-11)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.86.0 (2023-07-06)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.86.0
1
+ 1.88.0
@@ -216,6 +216,10 @@ module Aws::TranscribeService
216
216
  # @option options [Boolean] :endpoint_discovery (false)
217
217
  # When set to `true`, endpoint discovery will be enabled for operations when available.
218
218
  #
219
+ # @option options [Boolean] :ignore_configured_endpoint_urls
220
+ # Setting to true disables use of endpoint URLs provided via environment
221
+ # variables and the shared configuration file.
222
+ #
219
223
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
220
224
  # The log formatter.
221
225
  #
@@ -1690,6 +1694,9 @@ module Aws::TranscribeService
1690
1694
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_name #=> String
1691
1695
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_filter_name #=> String
1692
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"
1693
1700
  #
1694
1701
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob AWS API Documentation
1695
1702
  #
@@ -2277,6 +2284,9 @@ module Aws::TranscribeService
2277
2284
  # resp.transcription_job_summaries[0].language_codes #=> Array
2278
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"
2279
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"
2280
2290
  #
2281
2291
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
2282
2292
  #
@@ -3321,6 +3331,18 @@ module Aws::TranscribeService
3321
3331
  # VocabularyFilterName (or both) sub-parameter.</p>
3322
3332
  # `
3323
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
+ #
3324
3346
  # @return [Types::StartTranscriptionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3325
3347
  #
3326
3348
  # * {Types::StartTranscriptionJobResponse#transcription_job #transcription_job} => Types::TranscriptionJob
@@ -3384,6 +3406,11 @@ module Aws::TranscribeService
3384
3406
  # language_model_name: "ModelName",
3385
3407
  # },
3386
3408
  # },
3409
+ # toxicity_detection: [
3410
+ # {
3411
+ # toxicity_categories: ["ALL"], # required, accepts ALL
3412
+ # },
3413
+ # ],
3387
3414
  # })
3388
3415
  #
3389
3416
  # @example Response structure
@@ -3436,6 +3463,9 @@ module Aws::TranscribeService
3436
3463
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_name #=> String
3437
3464
  # resp.transcription_job.language_id_settings["LanguageCode"].vocabulary_filter_name #=> String
3438
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"
3439
3469
  #
3440
3470
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob AWS API Documentation
3441
3471
  #
@@ -3968,7 +3998,7 @@ module Aws::TranscribeService
3968
3998
  params: params,
3969
3999
  config: config)
3970
4000
  context[:gem_name] = 'aws-sdk-transcribeservice'
3971
- context[:gem_version] = '1.86.0'
4001
+ context[:gem_version] = '1.88.0'
3972
4002
  Seahorse::Client::Request.new(handlers, context)
3973
4003
  end
3974
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.86.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.86.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-06 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