aws-sdk-transcribeservice 1.46.0 → 1.51.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: 5f00bfa5bfcc0cc19d4a1e29976e7fff72e42f0cebfdfec4ddb2c777cdb08f27
4
- data.tar.gz: 70ab5451741ff8ef53356611f4c7b09cc0b3aef0d8579ee087eaa3ef49b8efa4
3
+ metadata.gz: 24e155f7e3aed7caf01600cde2fbd7aaa3a0c66a7873baf00bc898b33880bf6f
4
+ data.tar.gz: df324b60135f847b383188926a54e47f399c7067317b25b9894d28425274aea2
5
5
  SHA512:
6
- metadata.gz: e3a15bd596caa649019ab61ab4c536740b2bcb6cf26ee52f1ebcdab0e1277d5997b1303fab86c7510dc7278cb0f2e1b914e0ebda58e8c4c2e56ab1fa8d44bec8
7
- data.tar.gz: ff939fcf18a1fc06c9abd34bea598ad1aedb0cd827092b53c32052674cf2c3b037b82fd679b0f2e7ecd4198ef43f8b524a15705a59caffdeb0736dfdd11244a6
6
+ metadata.gz: aecab6c5f6143cdda0ffd713a1de9f0b0d911851148cb550e55760c75b62e054eac0ea01a131f9a3a9f5ad378c95592cb5461775371f4e9b15e87e9086a863c7
7
+ data.tar.gz: cbbcfc77a6ff61defe68a3b2a269588a7a1041e859bb66c1d5b655c946b2d01f9cbcf2de8926d16ebfe4754eaf5216760bba035aa41918cc40de31e823d77a18
@@ -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
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-transcribeservice/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::TranscribeService
49
50
 
50
- GEM_VERSION = '1.46.0'
51
+ GEM_VERSION = '1.51.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::TranscribeService
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::TranscribeService
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -804,7 +819,7 @@ module Aws::TranscribeService
804
819
  # resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
805
820
  # resp.medical_transcription_job.language_code #=> 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"
806
821
  # resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
807
- # resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
822
+ # resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac", "ogg", "amr", "webm"
808
823
  # resp.medical_transcription_job.media.media_file_uri #=> String
809
824
  # resp.medical_transcription_job.transcript.transcript_file_uri #=> String
810
825
  # resp.medical_transcription_job.start_time #=> Time
@@ -894,7 +909,7 @@ module Aws::TranscribeService
894
909
  # resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
895
910
  # resp.transcription_job.language_code #=> 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"
896
911
  # resp.transcription_job.media_sample_rate_hertz #=> Integer
897
- # resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
912
+ # resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac", "ogg", "amr", "webm"
898
913
  # resp.transcription_job.media.media_file_uri #=> String
899
914
  # resp.transcription_job.transcript.transcript_file_uri #=> String
900
915
  # resp.transcription_job.transcript.redacted_transcript_file_uri #=> String
@@ -915,6 +930,10 @@ module Aws::TranscribeService
915
930
  # resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
916
931
  # resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
917
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
918
937
  #
919
938
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob AWS API Documentation
920
939
  #
@@ -1240,6 +1259,8 @@ module Aws::TranscribeService
1240
1259
  # resp.transcription_job_summaries[0].content_redaction.redaction_type #=> String, one of "PII"
1241
1260
  # resp.transcription_job_summaries[0].content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
1242
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
1243
1264
  #
1244
1265
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
1245
1266
  #
@@ -1407,6 +1428,28 @@ module Aws::TranscribeService
1407
1428
  #
1408
1429
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user
1409
1430
  #
1431
+ # @option params [String] :output_key
1432
+ # You can specify a location in an Amazon S3 bucket to store the output
1433
+ # of your medical transcription job.
1434
+ #
1435
+ # If you don't specify an output key, Amazon Transcribe Medical stores
1436
+ # the output of your transcription job in the Amazon S3 bucket you
1437
+ # specified. By default, the object key is
1438
+ # "your-transcription-job-name.json".
1439
+ #
1440
+ # You can use output keys to specify the Amazon S3 prefix and file name
1441
+ # of the transcription output. For example, specifying the Amazon S3
1442
+ # prefix, "folder1/folder2/", as an output key would lead to the
1443
+ # output being stored as
1444
+ # "folder1/folder2/your-transcription-job-name.json". If you specify
1445
+ # "my-other-job-name.json" as the output key, the object key is
1446
+ # changed to "my-other-job-name.json". You can use an output key to
1447
+ # change both the prefix and the file name, for example
1448
+ # "folder/my-other-job-name.json".
1449
+ #
1450
+ # If you specify an output key, you must also specify an S3 bucket in
1451
+ # the `OutputBucketName` parameter.
1452
+ #
1410
1453
  # @option params [String] :output_encryption_kms_key_id
1411
1454
  # The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS)
1412
1455
  # key used to encrypt the output of the transcription job. The user
@@ -1459,11 +1502,12 @@ module Aws::TranscribeService
1459
1502
  # medical_transcription_job_name: "TranscriptionJobName", # required
1460
1503
  # 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
1461
1504
  # media_sample_rate_hertz: 1,
1462
- # media_format: "mp3", # accepts mp3, mp4, wav, flac
1505
+ # media_format: "mp3", # accepts mp3, mp4, wav, flac, ogg, amr, webm
1463
1506
  # media: { # required
1464
1507
  # media_file_uri: "Uri",
1465
1508
  # },
1466
1509
  # output_bucket_name: "OutputBucketName", # required
1510
+ # output_key: "OutputKey",
1467
1511
  # output_encryption_kms_key_id: "KMSKeyId",
1468
1512
  # settings: {
1469
1513
  # show_speaker_labels: false,
@@ -1483,7 +1527,7 @@ module Aws::TranscribeService
1483
1527
  # resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
1484
1528
  # resp.medical_transcription_job.language_code #=> 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"
1485
1529
  # resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
1486
- # resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
1530
+ # resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac", "ogg", "amr", "webm"
1487
1531
  # resp.medical_transcription_job.media.media_file_uri #=> String
1488
1532
  # resp.medical_transcription_job.transcript.transcript_file_uri #=> String
1489
1533
  # resp.medical_transcription_job.start_time #=> Time
@@ -1516,7 +1560,7 @@ module Aws::TranscribeService
1516
1560
  # account. If you try to create a transcription job with the same name
1517
1561
  # as a previous transcription job, you get a `ConflictException` error.
1518
1562
  #
1519
- # @option params [required, String] :language_code
1563
+ # @option params [String] :language_code
1520
1564
  # The language code for the language used in the input media file.
1521
1565
  #
1522
1566
  # @option params [Integer] :media_sample_rate_hertz
@@ -1563,6 +1607,28 @@ module Aws::TranscribeService
1563
1607
  #
1564
1608
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user
1565
1609
  #
1610
+ # @option params [String] :output_key
1611
+ # You can specify a location in an Amazon S3 bucket to store the output
1612
+ # of your transcription job.
1613
+ #
1614
+ # If you don't specify an output key, Amazon Transcribe stores the
1615
+ # output of your transcription job in the Amazon S3 bucket you
1616
+ # specified. By default, the object key is
1617
+ # "your-transcription-job-name.json".
1618
+ #
1619
+ # You can use output keys to specify the Amazon S3 prefix and file name
1620
+ # of the transcription output. For example, specifying the Amazon S3
1621
+ # prefix, "folder1/folder2/", as an output key would lead to the
1622
+ # output being stored as
1623
+ # "folder1/folder2/your-transcription-job-name.json". If you specify
1624
+ # "my-other-job-name.json" as the output key, the object key is
1625
+ # changed to "my-other-job-name.json". You can use an output key to
1626
+ # change both the prefix and the file name, for example
1627
+ # "folder/my-other-job-name.json".
1628
+ #
1629
+ # If you specify an output key, you must also specify an S3 bucket in
1630
+ # the `OutputBucketName` parameter.
1631
+ #
1566
1632
  # @option params [String] :output_encryption_kms_key_id
1567
1633
  # The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS)
1568
1634
  # key used to encrypt the output of the transcription job. The user
@@ -1610,6 +1676,17 @@ module Aws::TranscribeService
1610
1676
  # @option params [Types::ContentRedaction] :content_redaction
1611
1677
  # An object that contains the request parameters for content redaction.
1612
1678
  #
1679
+ # @option params [Boolean] :identify_language
1680
+ # Set this field to `true` to enable automatic language identification.
1681
+ # Automatic language identification is disabled by default. You receive
1682
+ # a `BadRequestException` error if you enter a value for a
1683
+ # `LanguageCode`.
1684
+ #
1685
+ # @option params [Array<String>] :language_options
1686
+ # An object containing a list of languages that might be present in your
1687
+ # collection of audio files. Automatic language identification chooses a
1688
+ # language that best matches the source audio from that list.
1689
+ #
1613
1690
  # @return [Types::StartTranscriptionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1614
1691
  #
1615
1692
  # * {Types::StartTranscriptionJobResponse#transcription_job #transcription_job} => Types::TranscriptionJob
@@ -1618,13 +1695,14 @@ module Aws::TranscribeService
1618
1695
  #
1619
1696
  # resp = client.start_transcription_job({
1620
1697
  # transcription_job_name: "TranscriptionJobName", # required
1621
- # 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
1698
+ # 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
1622
1699
  # media_sample_rate_hertz: 1,
1623
- # media_format: "mp3", # accepts mp3, mp4, wav, flac
1700
+ # media_format: "mp3", # accepts mp3, mp4, wav, flac, ogg, amr, webm
1624
1701
  # media: { # required
1625
1702
  # media_file_uri: "Uri",
1626
1703
  # },
1627
1704
  # output_bucket_name: "OutputBucketName",
1705
+ # output_key: "OutputKey",
1628
1706
  # output_encryption_kms_key_id: "KMSKeyId",
1629
1707
  # settings: {
1630
1708
  # vocabulary_name: "VocabularyName",
@@ -1647,6 +1725,8 @@ module Aws::TranscribeService
1647
1725
  # redaction_type: "PII", # required, accepts PII
1648
1726
  # redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
1649
1727
  # },
1728
+ # identify_language: false,
1729
+ # 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
1650
1730
  # })
1651
1731
  #
1652
1732
  # @example Response structure
@@ -1655,7 +1735,7 @@ module Aws::TranscribeService
1655
1735
  # resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
1656
1736
  # resp.transcription_job.language_code #=> 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"
1657
1737
  # resp.transcription_job.media_sample_rate_hertz #=> Integer
1658
- # resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
1738
+ # resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac", "ogg", "amr", "webm"
1659
1739
  # resp.transcription_job.media.media_file_uri #=> String
1660
1740
  # resp.transcription_job.transcript.transcript_file_uri #=> String
1661
1741
  # resp.transcription_job.transcript.redacted_transcript_file_uri #=> String
@@ -1676,6 +1756,10 @@ module Aws::TranscribeService
1676
1756
  # resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
1677
1757
  # resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
1678
1758
  # resp.transcription_job.content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
1759
+ # resp.transcription_job.identify_language #=> Boolean
1760
+ # resp.transcription_job.language_options #=> Array
1761
+ # 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"
1762
+ # resp.transcription_job.identified_language_score #=> Float
1679
1763
  #
1680
1764
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob AWS API Documentation
1681
1765
  #
@@ -1899,7 +1983,7 @@ module Aws::TranscribeService
1899
1983
  params: params,
1900
1984
  config: config)
1901
1985
  context[:gem_name] = 'aws-sdk-transcribeservice'
1902
- context[:gem_version] = '1.46.0'
1986
+ context[:gem_version] = '1.51.0'
1903
1987
  Seahorse::Client::Request.new(handlers, context)
1904
1988
  end
1905
1989
 
@@ -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')
@@ -85,6 +87,7 @@ module Aws::TranscribeService
85
87
  NextToken = Shapes::StringShape.new(name: 'NextToken')
86
88
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
87
89
  OutputBucketName = Shapes::StringShape.new(name: 'OutputBucketName')
90
+ OutputKey = Shapes::StringShape.new(name: 'OutputKey')
88
91
  OutputLocationType = Shapes::StringShape.new(name: 'OutputLocationType')
89
92
  Phrase = Shapes::StringShape.new(name: 'Phrase')
90
93
  Phrases = Shapes::ListShape.new(name: 'Phrases')
@@ -271,6 +274,8 @@ module Aws::TranscribeService
271
274
  LanguageModel.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
272
275
  LanguageModel.struct_class = Types::LanguageModel
273
276
 
277
+ LanguageOptions.member = Shapes::ShapeRef.new(shape: LanguageCode)
278
+
274
279
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
275
280
  LimitExceededException.struct_class = Types::LimitExceededException
276
281
 
@@ -407,6 +412,7 @@ module Aws::TranscribeService
407
412
  StartMedicalTranscriptionJobRequest.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat"))
408
413
  StartMedicalTranscriptionJobRequest.add_member(:media, Shapes::ShapeRef.new(shape: Media, required: true, location_name: "Media"))
409
414
  StartMedicalTranscriptionJobRequest.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: OutputBucketName, required: true, location_name: "OutputBucketName"))
415
+ StartMedicalTranscriptionJobRequest.add_member(:output_key, Shapes::ShapeRef.new(shape: OutputKey, location_name: "OutputKey"))
410
416
  StartMedicalTranscriptionJobRequest.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "OutputEncryptionKMSKeyId"))
411
417
  StartMedicalTranscriptionJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: MedicalTranscriptionSetting, location_name: "Settings"))
412
418
  StartMedicalTranscriptionJobRequest.add_member(:specialty, Shapes::ShapeRef.new(shape: Specialty, required: true, location_name: "Specialty"))
@@ -417,16 +423,19 @@ module Aws::TranscribeService
417
423
  StartMedicalTranscriptionJobResponse.struct_class = Types::StartMedicalTranscriptionJobResponse
418
424
 
419
425
  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"))
426
+ StartTranscriptionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
421
427
  StartTranscriptionJobRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location_name: "MediaSampleRateHertz"))
422
428
  StartTranscriptionJobRequest.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat"))
423
429
  StartTranscriptionJobRequest.add_member(:media, Shapes::ShapeRef.new(shape: Media, required: true, location_name: "Media"))
424
430
  StartTranscriptionJobRequest.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: OutputBucketName, location_name: "OutputBucketName"))
431
+ StartTranscriptionJobRequest.add_member(:output_key, Shapes::ShapeRef.new(shape: OutputKey, location_name: "OutputKey"))
425
432
  StartTranscriptionJobRequest.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "OutputEncryptionKMSKeyId"))
426
433
  StartTranscriptionJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings"))
427
434
  StartTranscriptionJobRequest.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
428
435
  StartTranscriptionJobRequest.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
429
436
  StartTranscriptionJobRequest.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
437
+ StartTranscriptionJobRequest.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
438
+ StartTranscriptionJobRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location_name: "LanguageOptions"))
430
439
  StartTranscriptionJobRequest.struct_class = Types::StartTranscriptionJobRequest
431
440
 
432
441
  StartTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob"))
@@ -451,6 +460,9 @@ module Aws::TranscribeService
451
460
  TranscriptionJob.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
452
461
  TranscriptionJob.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
453
462
  TranscriptionJob.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
463
+ TranscriptionJob.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
464
+ TranscriptionJob.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location_name: "LanguageOptions"))
465
+ TranscriptionJob.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
454
466
  TranscriptionJob.struct_class = Types::TranscriptionJob
455
467
 
456
468
  TranscriptionJobSummaries.member = Shapes::ShapeRef.new(shape: TranscriptionJobSummary)
@@ -465,6 +477,8 @@ module Aws::TranscribeService
465
477
  TranscriptionJobSummary.add_member(:output_location_type, Shapes::ShapeRef.new(shape: OutputLocationType, location_name: "OutputLocationType"))
466
478
  TranscriptionJobSummary.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
467
479
  TranscriptionJobSummary.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
480
+ TranscriptionJobSummary.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
481
+ TranscriptionJobSummary.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
468
482
  TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
469
483
 
470
484
  UpdateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
@@ -1878,11 +1878,12 @@ module Aws::TranscribeService
1878
1878
  # medical_transcription_job_name: "TranscriptionJobName", # required
1879
1879
  # 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
1880
1880
  # media_sample_rate_hertz: 1,
1881
- # media_format: "mp3", # accepts mp3, mp4, wav, flac
1881
+ # media_format: "mp3", # accepts mp3, mp4, wav, flac, ogg, amr, webm
1882
1882
  # media: { # required
1883
1883
  # media_file_uri: "Uri",
1884
1884
  # },
1885
1885
  # output_bucket_name: "OutputBucketName", # required
1886
+ # output_key: "OutputKey",
1886
1887
  # output_encryption_kms_key_id: "KMSKeyId",
1887
1888
  # settings: {
1888
1889
  # show_speaker_labels: false,
@@ -1953,6 +1954,29 @@ module Aws::TranscribeService
1953
1954
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user
1954
1955
  # @return [String]
1955
1956
  #
1957
+ # @!attribute [rw] output_key
1958
+ # You can specify a location in an Amazon S3 bucket to store the
1959
+ # output of your medical transcription job.
1960
+ #
1961
+ # If you don't specify an output key, Amazon Transcribe Medical
1962
+ # stores the output of your transcription job in the Amazon S3 bucket
1963
+ # you specified. By default, the object key is
1964
+ # "your-transcription-job-name.json".
1965
+ #
1966
+ # You can use output keys to specify the Amazon S3 prefix and file
1967
+ # name of the transcription output. For example, specifying the Amazon
1968
+ # S3 prefix, "folder1/folder2/", as an output key would lead to the
1969
+ # output being stored as
1970
+ # "folder1/folder2/your-transcription-job-name.json". If you specify
1971
+ # "my-other-job-name.json" as the output key, the object key is
1972
+ # changed to "my-other-job-name.json". You can use an output key to
1973
+ # change both the prefix and the file name, for example
1974
+ # "folder/my-other-job-name.json".
1975
+ #
1976
+ # If you specify an output key, you must also specify an S3 bucket in
1977
+ # the `OutputBucketName` parameter.
1978
+ # @return [String]
1979
+ #
1956
1980
  # @!attribute [rw] output_encryption_kms_key_id
1957
1981
  # The Amazon Resource Name (ARN) of the AWS Key Management Service
1958
1982
  # (KMS) key used to encrypt the output of the transcription job. The
@@ -2008,6 +2032,7 @@ module Aws::TranscribeService
2008
2032
  :media_format,
2009
2033
  :media,
2010
2034
  :output_bucket_name,
2035
+ :output_key,
2011
2036
  :output_encryption_kms_key_id,
2012
2037
  :settings,
2013
2038
  :specialty,
@@ -2033,13 +2058,14 @@ module Aws::TranscribeService
2033
2058
  #
2034
2059
  # {
2035
2060
  # 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
2061
+ # 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
2062
  # media_sample_rate_hertz: 1,
2038
- # media_format: "mp3", # accepts mp3, mp4, wav, flac
2063
+ # media_format: "mp3", # accepts mp3, mp4, wav, flac, ogg, amr, webm
2039
2064
  # media: { # required
2040
2065
  # media_file_uri: "Uri",
2041
2066
  # },
2042
2067
  # output_bucket_name: "OutputBucketName",
2068
+ # output_key: "OutputKey",
2043
2069
  # output_encryption_kms_key_id: "KMSKeyId",
2044
2070
  # settings: {
2045
2071
  # vocabulary_name: "VocabularyName",
@@ -2062,6 +2088,8 @@ module Aws::TranscribeService
2062
2088
  # redaction_type: "PII", # required, accepts PII
2063
2089
  # redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
2064
2090
  # },
2091
+ # identify_language: false,
2092
+ # 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
2093
  # }
2066
2094
  #
2067
2095
  # @!attribute [rw] transcription_job_name
@@ -2127,6 +2155,29 @@ module Aws::TranscribeService
2127
2155
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user
2128
2156
  # @return [String]
2129
2157
  #
2158
+ # @!attribute [rw] output_key
2159
+ # You can specify a location in an Amazon S3 bucket to store the
2160
+ # output of your transcription job.
2161
+ #
2162
+ # If you don't specify an output key, Amazon Transcribe stores the
2163
+ # output of your transcription job in the Amazon S3 bucket you
2164
+ # specified. By default, the object key is
2165
+ # "your-transcription-job-name.json".
2166
+ #
2167
+ # You can use output keys to specify the Amazon S3 prefix and file
2168
+ # name of the transcription output. For example, specifying the Amazon
2169
+ # S3 prefix, "folder1/folder2/", as an output key would lead to the
2170
+ # output being stored as
2171
+ # "folder1/folder2/your-transcription-job-name.json". If you specify
2172
+ # "my-other-job-name.json" as the output key, the object key is
2173
+ # changed to "my-other-job-name.json". You can use an output key to
2174
+ # change both the prefix and the file name, for example
2175
+ # "folder/my-other-job-name.json".
2176
+ #
2177
+ # If you specify an output key, you must also specify an S3 bucket in
2178
+ # the `OutputBucketName` parameter.
2179
+ # @return [String]
2180
+ #
2130
2181
  # @!attribute [rw] output_encryption_kms_key_id
2131
2182
  # The Amazon Resource Name (ARN) of the AWS Key Management Service
2132
2183
  # (KMS) key used to encrypt the output of the transcription job. The
@@ -2180,6 +2231,20 @@ module Aws::TranscribeService
2180
2231
  # redaction.
2181
2232
  # @return [Types::ContentRedaction]
2182
2233
  #
2234
+ # @!attribute [rw] identify_language
2235
+ # Set this field to `true` to enable automatic language
2236
+ # identification. Automatic language identification is disabled by
2237
+ # default. You receive a `BadRequestException` error if you enter a
2238
+ # value for a `LanguageCode`.
2239
+ # @return [Boolean]
2240
+ #
2241
+ # @!attribute [rw] language_options
2242
+ # An object containing a list of languages that might be present in
2243
+ # your collection of audio files. Automatic language identification
2244
+ # chooses a language that best matches the source audio from that
2245
+ # list.
2246
+ # @return [Array<String>]
2247
+ #
2183
2248
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJobRequest AWS API Documentation
2184
2249
  #
2185
2250
  class StartTranscriptionJobRequest < Struct.new(
@@ -2189,11 +2254,14 @@ module Aws::TranscribeService
2189
2254
  :media_format,
2190
2255
  :media,
2191
2256
  :output_bucket_name,
2257
+ :output_key,
2192
2258
  :output_encryption_kms_key_id,
2193
2259
  :settings,
2194
2260
  :model_settings,
2195
2261
  :job_execution_settings,
2196
- :content_redaction)
2262
+ :content_redaction,
2263
+ :identify_language,
2264
+ :language_options)
2197
2265
  SENSITIVE = []
2198
2266
  include Aws::Structure
2199
2267
  end
@@ -2347,6 +2415,23 @@ module Aws::TranscribeService
2347
2415
  # transcription job.
2348
2416
  # @return [Types::ContentRedaction]
2349
2417
  #
2418
+ # @!attribute [rw] identify_language
2419
+ # A value that shows if automatic language identification was enabled
2420
+ # for a transcription job.
2421
+ # @return [Boolean]
2422
+ #
2423
+ # @!attribute [rw] language_options
2424
+ # An object that shows the optional array of languages inputted for
2425
+ # transcription jobs with automatic language identification enabled.
2426
+ # @return [Array<String>]
2427
+ #
2428
+ # @!attribute [rw] identified_language_score
2429
+ # A value between zero and one that Amazon Transcribe assigned to the
2430
+ # language that it identified in the source audio. Larger values
2431
+ # indicate that Amazon Transcribe has higher confidence in the
2432
+ # language it identified.
2433
+ # @return [Float]
2434
+ #
2350
2435
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJob AWS API Documentation
2351
2436
  #
2352
2437
  class TranscriptionJob < Struct.new(
@@ -2364,7 +2449,10 @@ module Aws::TranscribeService
2364
2449
  :settings,
2365
2450
  :model_settings,
2366
2451
  :job_execution_settings,
2367
- :content_redaction)
2452
+ :content_redaction,
2453
+ :identify_language,
2454
+ :language_options,
2455
+ :identified_language_score)
2368
2456
  SENSITIVE = []
2369
2457
  include Aws::Structure
2370
2458
  end
@@ -2423,6 +2511,18 @@ module Aws::TranscribeService
2423
2511
  # transcription job.
2424
2512
  # @return [Types::ModelSettings]
2425
2513
  #
2514
+ # @!attribute [rw] identify_language
2515
+ # Whether automatic language identification was enabled for a
2516
+ # transcription job.
2517
+ # @return [Boolean]
2518
+ #
2519
+ # @!attribute [rw] identified_language_score
2520
+ # A value between zero and one that Amazon Transcribe assigned to the
2521
+ # language it identified in the source audio. A higher score indicates
2522
+ # that Amazon Transcribe is more confident in the language it
2523
+ # identified.
2524
+ # @return [Float]
2525
+ #
2426
2526
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJobSummary AWS API Documentation
2427
2527
  #
2428
2528
  class TranscriptionJobSummary < Struct.new(
@@ -2435,7 +2535,9 @@ module Aws::TranscribeService
2435
2535
  :failure_reason,
2436
2536
  :output_location_type,
2437
2537
  :content_redaction,
2438
- :model_settings)
2538
+ :model_settings,
2539
+ :identify_language,
2540
+ :identified_language_score)
2439
2541
  SENSITIVE = []
2440
2542
  include Aws::Structure
2441
2543
  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.46.0
4
+ version: 1.51.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-05 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.112.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement