aws-sdk-transcribeservice 1.47.0 → 1.48.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: e576f4cd1d3980af724b8b9410c62fef4a4ca79896f0b3213f2669b4e77a78be
4
- data.tar.gz: '05382b0c712c79441a737278f7c0c8feda5b76cca1971b3462ceea0f60ad5532'
3
+ metadata.gz: e572b77dae237bd045617db948366bfe9281a03ed90f68da5f77430d228bc7f8
4
+ data.tar.gz: 0d5dc69de78f098d99d79aacb93152db6f1caac77fdf1fbf2a2ebba06cb0cda7
5
5
  SHA512:
6
- metadata.gz: 7e624a3f8c66bbc3d773e248540c74e966559f07e882556541f1868d3dbacbcf145838202d1e03c842e032871dd842c3c244a8e3bd88e8005207dce0ca4a3844
7
- data.tar.gz: 262caab18a0594acf92bae806fba2f261ed814935c8b25726f3fa969972f2c7d7eea2d78e4e7855a0b24a6dee4de80d7780f4bd2f47cf54502453ec747f653c0
6
+ metadata.gz: d9d95a6094fb5277416a62aa6a33541f4ba79b91b198a8db30d8983f2de2805bf7190d79e6830f3a5218b18b29cb5143a29e3bb4642481d87eb1709ab990b616
7
+ data.tar.gz: 3ef4184dfb70942e5d402a3a4090db2a4db17f265772afb62296f7e6a5ca86184c064836f596dd0e9f69ae5b43e97e12c857c4d651184fd68f1dae37a88a94b9
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-transcribeservice/customizations'
47
48
  # @!group service
48
49
  module Aws::TranscribeService
49
50
 
50
- GEM_VERSION = '1.47.0'
51
+ GEM_VERSION = '1.48.0'
51
52
 
52
53
  end
@@ -930,6 +930,10 @@ module Aws::TranscribeService
930
930
  # resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
931
931
  # resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
932
932
  # resp.transcription_job.content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
933
+ # resp.transcription_job.identify_language #=> Boolean
934
+ # resp.transcription_job.language_options #=> Array
935
+ # resp.transcription_job.language_options[0] #=> String, one of "af-ZA", "ar-AE", "ar-SA", "cy-GB", "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", "ga-IE", "gd-GB", "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"
936
+ # resp.transcription_job.identified_language_score #=> Float
933
937
  #
934
938
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob AWS API Documentation
935
939
  #
@@ -1255,6 +1259,8 @@ module Aws::TranscribeService
1255
1259
  # resp.transcription_job_summaries[0].content_redaction.redaction_type #=> String, one of "PII"
1256
1260
  # resp.transcription_job_summaries[0].content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
1257
1261
  # resp.transcription_job_summaries[0].model_settings.language_model_name #=> String
1262
+ # resp.transcription_job_summaries[0].identify_language #=> Boolean
1263
+ # resp.transcription_job_summaries[0].identified_language_score #=> Float
1258
1264
  #
1259
1265
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
1260
1266
  #
@@ -1531,7 +1537,7 @@ module Aws::TranscribeService
1531
1537
  # account. If you try to create a transcription job with the same name
1532
1538
  # as a previous transcription job, you get a `ConflictException` error.
1533
1539
  #
1534
- # @option params [required, String] :language_code
1540
+ # @option params [String] :language_code
1535
1541
  # The language code for the language used in the input media file.
1536
1542
  #
1537
1543
  # @option params [Integer] :media_sample_rate_hertz
@@ -1625,6 +1631,17 @@ module Aws::TranscribeService
1625
1631
  # @option params [Types::ContentRedaction] :content_redaction
1626
1632
  # An object that contains the request parameters for content redaction.
1627
1633
  #
1634
+ # @option params [Boolean] :identify_language
1635
+ # Set this field to `true` to enable automatic language identification.
1636
+ # Automatic language identification is disabled by default. You receive
1637
+ # a `BadRequestException` error if you enter a value for a
1638
+ # `LanguageCode`.
1639
+ #
1640
+ # @option params [Array<String>] :language_options
1641
+ # An object containing a list of languages that might be present in your
1642
+ # collection of audio files. Automatic language identification chooses a
1643
+ # language that best matches the source audio from that list.
1644
+ #
1628
1645
  # @return [Types::StartTranscriptionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1629
1646
  #
1630
1647
  # * {Types::StartTranscriptionJobResponse#transcription_job #transcription_job} => Types::TranscriptionJob
@@ -1633,7 +1650,7 @@ module Aws::TranscribeService
1633
1650
  #
1634
1651
  # resp = client.start_transcription_job({
1635
1652
  # transcription_job_name: "TranscriptionJobName", # required
1636
- # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, 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, ga-IE, gd-GB, 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
1653
+ # language_code: "af-ZA", # accepts af-ZA, ar-AE, ar-SA, cy-GB, 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, ga-IE, gd-GB, 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
1637
1654
  # media_sample_rate_hertz: 1,
1638
1655
  # media_format: "mp3", # accepts mp3, mp4, wav, flac
1639
1656
  # media: { # required
@@ -1662,6 +1679,8 @@ module Aws::TranscribeService
1662
1679
  # redaction_type: "PII", # required, accepts PII
1663
1680
  # redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
1664
1681
  # },
1682
+ # identify_language: false,
1683
+ # language_options: ["af-ZA"], # accepts af-ZA, ar-AE, ar-SA, cy-GB, 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, ga-IE, gd-GB, 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
1665
1684
  # })
1666
1685
  #
1667
1686
  # @example Response structure
@@ -1691,6 +1710,10 @@ module Aws::TranscribeService
1691
1710
  # resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
1692
1711
  # resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
1693
1712
  # resp.transcription_job.content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
1713
+ # resp.transcription_job.identify_language #=> Boolean
1714
+ # resp.transcription_job.language_options #=> Array
1715
+ # resp.transcription_job.language_options[0] #=> String, one of "af-ZA", "ar-AE", "ar-SA", "cy-GB", "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", "ga-IE", "gd-GB", "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"
1716
+ # resp.transcription_job.identified_language_score #=> Float
1694
1717
  #
1695
1718
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob AWS API Documentation
1696
1719
  #
@@ -1914,7 +1937,7 @@ module Aws::TranscribeService
1914
1937
  params: params,
1915
1938
  config: config)
1916
1939
  context[:gem_name] = 'aws-sdk-transcribeservice'
1917
- context[:gem_version] = '1.47.0'
1940
+ context[:gem_version] = '1.48.0'
1918
1941
  Seahorse::Client::Request.new(handlers, context)
1919
1942
  end
1920
1943
 
@@ -48,12 +48,14 @@ module Aws::TranscribeService
48
48
  GetVocabularyFilterResponse = Shapes::StructureShape.new(name: 'GetVocabularyFilterResponse')
49
49
  GetVocabularyRequest = Shapes::StructureShape.new(name: 'GetVocabularyRequest')
50
50
  GetVocabularyResponse = Shapes::StructureShape.new(name: 'GetVocabularyResponse')
51
+ IdentifiedLanguageScore = Shapes::FloatShape.new(name: 'IdentifiedLanguageScore')
51
52
  InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
52
53
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
53
54
  JobExecutionSettings = Shapes::StructureShape.new(name: 'JobExecutionSettings')
54
55
  KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
55
56
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
56
57
  LanguageModel = Shapes::StructureShape.new(name: 'LanguageModel')
58
+ LanguageOptions = Shapes::ListShape.new(name: 'LanguageOptions')
57
59
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
58
60
  ListLanguageModelsRequest = Shapes::StructureShape.new(name: 'ListLanguageModelsRequest')
59
61
  ListLanguageModelsResponse = Shapes::StructureShape.new(name: 'ListLanguageModelsResponse')
@@ -271,6 +273,8 @@ module Aws::TranscribeService
271
273
  LanguageModel.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
272
274
  LanguageModel.struct_class = Types::LanguageModel
273
275
 
276
+ LanguageOptions.member = Shapes::ShapeRef.new(shape: LanguageCode)
277
+
274
278
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
275
279
  LimitExceededException.struct_class = Types::LimitExceededException
276
280
 
@@ -417,7 +421,7 @@ module Aws::TranscribeService
417
421
  StartMedicalTranscriptionJobResponse.struct_class = Types::StartMedicalTranscriptionJobResponse
418
422
 
419
423
  StartTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName"))
420
- StartTranscriptionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
424
+ StartTranscriptionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
421
425
  StartTranscriptionJobRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location_name: "MediaSampleRateHertz"))
422
426
  StartTranscriptionJobRequest.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat"))
423
427
  StartTranscriptionJobRequest.add_member(:media, Shapes::ShapeRef.new(shape: Media, required: true, location_name: "Media"))
@@ -427,6 +431,8 @@ module Aws::TranscribeService
427
431
  StartTranscriptionJobRequest.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
428
432
  StartTranscriptionJobRequest.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
429
433
  StartTranscriptionJobRequest.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
434
+ StartTranscriptionJobRequest.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
435
+ StartTranscriptionJobRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location_name: "LanguageOptions"))
430
436
  StartTranscriptionJobRequest.struct_class = Types::StartTranscriptionJobRequest
431
437
 
432
438
  StartTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob"))
@@ -451,6 +457,9 @@ module Aws::TranscribeService
451
457
  TranscriptionJob.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
452
458
  TranscriptionJob.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
453
459
  TranscriptionJob.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
460
+ TranscriptionJob.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
461
+ TranscriptionJob.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location_name: "LanguageOptions"))
462
+ TranscriptionJob.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
454
463
  TranscriptionJob.struct_class = Types::TranscriptionJob
455
464
 
456
465
  TranscriptionJobSummaries.member = Shapes::ShapeRef.new(shape: TranscriptionJobSummary)
@@ -465,6 +474,8 @@ module Aws::TranscribeService
465
474
  TranscriptionJobSummary.add_member(:output_location_type, Shapes::ShapeRef.new(shape: OutputLocationType, location_name: "OutputLocationType"))
466
475
  TranscriptionJobSummary.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
467
476
  TranscriptionJobSummary.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
477
+ TranscriptionJobSummary.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
478
+ TranscriptionJobSummary.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
468
479
  TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
469
480
 
470
481
  UpdateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
@@ -2033,7 +2033,7 @@ module Aws::TranscribeService
2033
2033
  #
2034
2034
  # {
2035
2035
  # transcription_job_name: "TranscriptionJobName", # required
2036
- # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, 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, ga-IE, gd-GB, 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
2036
+ # language_code: "af-ZA", # accepts af-ZA, ar-AE, ar-SA, cy-GB, 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, ga-IE, gd-GB, 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
2037
2037
  # media_sample_rate_hertz: 1,
2038
2038
  # media_format: "mp3", # accepts mp3, mp4, wav, flac
2039
2039
  # media: { # required
@@ -2062,6 +2062,8 @@ module Aws::TranscribeService
2062
2062
  # redaction_type: "PII", # required, accepts PII
2063
2063
  # redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
2064
2064
  # },
2065
+ # identify_language: false,
2066
+ # language_options: ["af-ZA"], # accepts af-ZA, ar-AE, ar-SA, cy-GB, 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, ga-IE, gd-GB, 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
2065
2067
  # }
2066
2068
  #
2067
2069
  # @!attribute [rw] transcription_job_name
@@ -2180,6 +2182,20 @@ module Aws::TranscribeService
2180
2182
  # redaction.
2181
2183
  # @return [Types::ContentRedaction]
2182
2184
  #
2185
+ # @!attribute [rw] identify_language
2186
+ # Set this field to `true` to enable automatic language
2187
+ # identification. Automatic language identification is disabled by
2188
+ # default. You receive a `BadRequestException` error if you enter a
2189
+ # value for a `LanguageCode`.
2190
+ # @return [Boolean]
2191
+ #
2192
+ # @!attribute [rw] language_options
2193
+ # An object containing a list of languages that might be present in
2194
+ # your collection of audio files. Automatic language identification
2195
+ # chooses a language that best matches the source audio from that
2196
+ # list.
2197
+ # @return [Array<String>]
2198
+ #
2183
2199
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJobRequest AWS API Documentation
2184
2200
  #
2185
2201
  class StartTranscriptionJobRequest < Struct.new(
@@ -2193,7 +2209,9 @@ module Aws::TranscribeService
2193
2209
  :settings,
2194
2210
  :model_settings,
2195
2211
  :job_execution_settings,
2196
- :content_redaction)
2212
+ :content_redaction,
2213
+ :identify_language,
2214
+ :language_options)
2197
2215
  SENSITIVE = []
2198
2216
  include Aws::Structure
2199
2217
  end
@@ -2347,6 +2365,23 @@ module Aws::TranscribeService
2347
2365
  # transcription job.
2348
2366
  # @return [Types::ContentRedaction]
2349
2367
  #
2368
+ # @!attribute [rw] identify_language
2369
+ # A value that shows if automatic language identification was enabled
2370
+ # for a transcription job.
2371
+ # @return [Boolean]
2372
+ #
2373
+ # @!attribute [rw] language_options
2374
+ # An object that shows the optional array of languages inputted for
2375
+ # transcription jobs with automatic language identification enabled.
2376
+ # @return [Array<String>]
2377
+ #
2378
+ # @!attribute [rw] identified_language_score
2379
+ # The score that Amazon Transcribe gives for the predominant language
2380
+ # that it identified in your collection of source audio files. This
2381
+ # score reflects the confidence that the language that Amazon
2382
+ # Transcribe identified is the correct language.
2383
+ # @return [Float]
2384
+ #
2350
2385
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJob AWS API Documentation
2351
2386
  #
2352
2387
  class TranscriptionJob < Struct.new(
@@ -2364,7 +2399,10 @@ module Aws::TranscribeService
2364
2399
  :settings,
2365
2400
  :model_settings,
2366
2401
  :job_execution_settings,
2367
- :content_redaction)
2402
+ :content_redaction,
2403
+ :identify_language,
2404
+ :language_options,
2405
+ :identified_language_score)
2368
2406
  SENSITIVE = []
2369
2407
  include Aws::Structure
2370
2408
  end
@@ -2423,6 +2461,18 @@ module Aws::TranscribeService
2423
2461
  # transcription job.
2424
2462
  # @return [Types::ModelSettings]
2425
2463
  #
2464
+ # @!attribute [rw] identify_language
2465
+ # Whether automatic language identification was enabled for a
2466
+ # transcription job.
2467
+ # @return [Boolean]
2468
+ #
2469
+ # @!attribute [rw] identified_language_score
2470
+ # A value between zero and one that Amazon Transcribe assigned to the
2471
+ # language it identified in the source audio. A higher score indicates
2472
+ # that Amazon Transcribe is more confident in the language it
2473
+ # identified.
2474
+ # @return [Float]
2475
+ #
2426
2476
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJobSummary AWS API Documentation
2427
2477
  #
2428
2478
  class TranscriptionJobSummary < Struct.new(
@@ -2435,7 +2485,9 @@ module Aws::TranscribeService
2435
2485
  :failure_reason,
2436
2486
  :output_location_type,
2437
2487
  :content_redaction,
2438
- :model_settings)
2488
+ :model_settings,
2489
+ :identify_language,
2490
+ :identified_language_score)
2439
2491
  SENSITIVE = []
2440
2492
  include Aws::Structure
2441
2493
  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.47.0
4
+ version: 1.48.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: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core