aws-sdk-transcribeservice 1.158.0 → 1.159.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribeservice/client.rb +253 -13
- data/lib/aws-sdk-transcribeservice/client_api.rb +138 -0
- data/lib/aws-sdk-transcribeservice/errors.rb +5 -0
- data/lib/aws-sdk-transcribeservice/types.rb +640 -31
- data/lib/aws-sdk-transcribeservice.rb +1 -1
- data/sig/client.rbs +50 -0
- data/sig/errors.rbs +1 -0
- data/sig/types.rbs +114 -0
- metadata +1 -1
|
@@ -64,17 +64,45 @@ module Aws::TranscribeService
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# Your request didn't pass one or more validation tests. This can occur
|
|
67
|
-
# when
|
|
68
|
-
# a
|
|
69
|
-
#
|
|
67
|
+
# when a parameter has an invalid value, when you combine parameters in
|
|
68
|
+
# a way that isn't supported, when the entity you're trying to delete
|
|
69
|
+
# doesn't exist, or if it's in a non-terminal state (such as `IN
|
|
70
|
+
# PROGRESS`). See the exception message field for more information.
|
|
70
71
|
#
|
|
71
72
|
# @!attribute [rw] message
|
|
72
73
|
# @return [String]
|
|
73
74
|
#
|
|
75
|
+
# @!attribute [rw] reason
|
|
76
|
+
# A code that identifies why the audio in your request was rejected.
|
|
77
|
+
# Currently, `TranscribeAudio` returns this field, and only for
|
|
78
|
+
# problems with your audio. It isn't returned for other validation
|
|
79
|
+
# errors.
|
|
80
|
+
#
|
|
81
|
+
# Possible values:
|
|
82
|
+
#
|
|
83
|
+
# * `audioTooLong`: The audio is longer than the maximum duration of 1
|
|
84
|
+
# hour.
|
|
85
|
+
#
|
|
86
|
+
# * `audioTooShort`: The audio is shorter than 0.5 seconds.
|
|
87
|
+
#
|
|
88
|
+
# * `audioFileTooLarge`: The audio is larger than the maximum size.
|
|
89
|
+
#
|
|
90
|
+
# * `unsupportedAudioFormat`: The media format isn't supported.
|
|
91
|
+
#
|
|
92
|
+
# * `unsupportedChannelCount`: You enabled `ChannelIdentification` and
|
|
93
|
+
# the audio has more than two channels.
|
|
94
|
+
#
|
|
95
|
+
# * `invalidAudio`: Amazon Transcribe couldn't decode the audio.
|
|
96
|
+
#
|
|
97
|
+
# * `mediaDownloadFailed`: Amazon Transcribe couldn't download the
|
|
98
|
+
# audio at your `MediaFileUri`.
|
|
99
|
+
# @return [String]
|
|
100
|
+
#
|
|
74
101
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/BadRequestException AWS API Documentation
|
|
75
102
|
#
|
|
76
103
|
class BadRequestException < Struct.new(
|
|
77
|
-
:message
|
|
104
|
+
:message,
|
|
105
|
+
:reason)
|
|
78
106
|
SENSITIVE = []
|
|
79
107
|
include Aws::Structure
|
|
80
108
|
end
|
|
@@ -338,11 +366,11 @@ module Aws::TranscribeService
|
|
|
338
366
|
# @return [String]
|
|
339
367
|
#
|
|
340
368
|
# @!attribute [rw] content_redaction
|
|
341
|
-
# Makes it possible to redact
|
|
342
|
-
#
|
|
343
|
-
#
|
|
344
|
-
# `
|
|
345
|
-
#
|
|
369
|
+
# Makes it possible to redact specified personally identifiable
|
|
370
|
+
# information (PII) in your transcript. If you use `ContentRedaction`,
|
|
371
|
+
# you must also include the sub-parameters: `RedactionOutput` and
|
|
372
|
+
# `RedactionType`. You can optionally include `PiiEntityTypes` to
|
|
373
|
+
# choose which types of PII you want to redact.
|
|
346
374
|
# @return [Types::ContentRedaction]
|
|
347
375
|
#
|
|
348
376
|
# @!attribute [rw] language_options
|
|
@@ -675,7 +703,7 @@ module Aws::TranscribeService
|
|
|
675
703
|
include Aws::Structure
|
|
676
704
|
end
|
|
677
705
|
|
|
678
|
-
# Makes it possible to redact
|
|
706
|
+
# Makes it possible to redact specified personally identifiable
|
|
679
707
|
# information (PII) in your transcript. If you use `ContentRedaction`,
|
|
680
708
|
# you must also include the sub-parameters: `RedactionOutput` and
|
|
681
709
|
# `RedactionType`. You can optionally include `PiiEntityTypes` to choose
|
|
@@ -697,7 +725,10 @@ module Aws::TranscribeService
|
|
|
697
725
|
# transcript.
|
|
698
726
|
#
|
|
699
727
|
# When you choose `redacted_and_unredacted` Amazon Transcribe creates
|
|
700
|
-
# a redacted and an unredacted transcript
|
|
728
|
+
# a redacted and an unredacted transcript. For batch jobs, Amazon
|
|
729
|
+
# Transcribe creates two separate files. For `TranscribeAudio`, Amazon
|
|
730
|
+
# Transcribe returns them in `RedactedResults` and `Results`, or
|
|
731
|
+
# writes them as two separate files if you use `OutputConfiguration`.
|
|
701
732
|
# @return [String]
|
|
702
733
|
#
|
|
703
734
|
# @!attribute [rw] pii_entity_types
|
|
@@ -846,7 +877,7 @@ module Aws::TranscribeService
|
|
|
846
877
|
# @!attribute [rw] encryption_configuration
|
|
847
878
|
# Specifies the encryption configuration for your custom language
|
|
848
879
|
# model. Your model artifacts are encrypted with the specified KMS key
|
|
849
|
-
# or with an
|
|
880
|
+
# or with an Amazon Web Services owned key if a key is not supplied.
|
|
850
881
|
# @return [Types::EncryptionConfiguration]
|
|
851
882
|
#
|
|
852
883
|
# @!attribute [rw] tags
|
|
@@ -1103,7 +1134,8 @@ module Aws::TranscribeService
|
|
|
1103
1134
|
# @!attribute [rw] encryption_configuration
|
|
1104
1135
|
# Specifies the encryption configuration for your custom vocabulary
|
|
1105
1136
|
# filter. Your vocabulary filter artifacts are encrypted with the
|
|
1106
|
-
# specified KMS key or with an
|
|
1137
|
+
# specified KMS key or with an Amazon Web Services owned key if a key
|
|
1138
|
+
# is not supplied.
|
|
1107
1139
|
# @return [Types::EncryptionConfiguration]
|
|
1108
1140
|
#
|
|
1109
1141
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilterRequest AWS API Documentation
|
|
@@ -1243,7 +1275,7 @@ module Aws::TranscribeService
|
|
|
1243
1275
|
# @!attribute [rw] encryption_configuration
|
|
1244
1276
|
# Specifies the encryption configuration for your custom vocabulary.
|
|
1245
1277
|
# Your vocabulary artifacts are encrypted with the specified KMS key
|
|
1246
|
-
# or with an
|
|
1278
|
+
# or with an Amazon Web Services owned key if a key is not supplied.
|
|
1247
1279
|
# @return [Types::EncryptionConfiguration]
|
|
1248
1280
|
#
|
|
1249
1281
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyRequest AWS API Documentation
|
|
@@ -1463,7 +1495,11 @@ module Aws::TranscribeService
|
|
|
1463
1495
|
include Aws::Structure
|
|
1464
1496
|
end
|
|
1465
1497
|
|
|
1466
|
-
#
|
|
1498
|
+
# The encryption configuration for your custom resource. Specify a
|
|
1499
|
+
# customer managed KMS key, and optionally an encryption context, to
|
|
1500
|
+
# encrypt your custom vocabulary, custom vocabulary filter, or custom
|
|
1501
|
+
# language model artifacts at rest. If you do not provide a key, your
|
|
1502
|
+
# artifacts are encrypted with an Amazon Web Services owned key.
|
|
1467
1503
|
#
|
|
1468
1504
|
# @!attribute [rw] kms_encryption_context
|
|
1469
1505
|
# A map of plain text, non-secret key:value pairs, known as encryption
|
|
@@ -4832,13 +4868,12 @@ module Aws::TranscribeService
|
|
|
4832
4868
|
# @return [Types::JobExecutionSettings]
|
|
4833
4869
|
#
|
|
4834
4870
|
# @!attribute [rw] content_redaction
|
|
4835
|
-
# Makes it possible to redact
|
|
4836
|
-
#
|
|
4837
|
-
#
|
|
4838
|
-
# `
|
|
4839
|
-
#
|
|
4840
|
-
#
|
|
4841
|
-
# redacted.
|
|
4871
|
+
# Makes it possible to redact specified personally identifiable
|
|
4872
|
+
# information (PII) in your transcript. If you use `ContentRedaction`,
|
|
4873
|
+
# you must also include the sub-parameters: `RedactionOutput` and
|
|
4874
|
+
# `RedactionType`. You can optionally include `PiiEntityTypes` to
|
|
4875
|
+
# choose which types of PII you want to redact. If you do not include
|
|
4876
|
+
# `PiiEntityTypes` in your request, all PII is redacted.
|
|
4842
4877
|
# @return [Types::ContentRedaction]
|
|
4843
4878
|
#
|
|
4844
4879
|
# @!attribute [rw] identify_language
|
|
@@ -5126,6 +5161,193 @@ module Aws::TranscribeService
|
|
|
5126
5161
|
include Aws::Structure
|
|
5127
5162
|
end
|
|
5128
5163
|
|
|
5164
|
+
# A word or punctuation mark in your transcript. Labels such as
|
|
5165
|
+
# `SpeakerLabel` and `ChannelLabel` are present only if you enabled the
|
|
5166
|
+
# related feature.
|
|
5167
|
+
#
|
|
5168
|
+
# @!attribute [rw] id
|
|
5169
|
+
# The position of this item in the transcript, starting at 0.
|
|
5170
|
+
# @return [Integer]
|
|
5171
|
+
#
|
|
5172
|
+
# @!attribute [rw] content
|
|
5173
|
+
# The word or punctuation mark. In `RedactedResults`, Amazon
|
|
5174
|
+
# Transcribe replaces redacted words with `[PII]`.
|
|
5175
|
+
# @return [String]
|
|
5176
|
+
#
|
|
5177
|
+
# @!attribute [rw] start_time
|
|
5178
|
+
# The time, in seconds from the start of your audio, when this item
|
|
5179
|
+
# starts.
|
|
5180
|
+
# @return [Float]
|
|
5181
|
+
#
|
|
5182
|
+
# @!attribute [rw] end_time
|
|
5183
|
+
# The time, in seconds from the start of your audio, when this item
|
|
5184
|
+
# ends.
|
|
5185
|
+
# @return [Float]
|
|
5186
|
+
#
|
|
5187
|
+
# @!attribute [rw] language_code
|
|
5188
|
+
# The language of this item, as a locale (for example, `en-US`).
|
|
5189
|
+
# @return [String]
|
|
5190
|
+
#
|
|
5191
|
+
# @!attribute [rw] channel_label
|
|
5192
|
+
# The audio channel this item came from (`ch_0` or `ch_1`). Present if
|
|
5193
|
+
# you enabled `ChannelIdentification`.
|
|
5194
|
+
#
|
|
5195
|
+
# Item start and end times are measured from the start of the audio,
|
|
5196
|
+
# separately for each channel.
|
|
5197
|
+
# @return [String]
|
|
5198
|
+
#
|
|
5199
|
+
# @!attribute [rw] speaker_label
|
|
5200
|
+
# The speaker of this item (for example, `spk_0`). Present if you
|
|
5201
|
+
# enabled `ShowSpeakerLabels`.
|
|
5202
|
+
# @return [String]
|
|
5203
|
+
#
|
|
5204
|
+
# @!attribute [rw] vocabulary_filter_match
|
|
5205
|
+
# Indicates whether this item matched a word in your custom vocabulary
|
|
5206
|
+
# filter. Present if you included `VocabularyFilterSettings`.
|
|
5207
|
+
# @return [Boolean]
|
|
5208
|
+
#
|
|
5209
|
+
# @!attribute [rw] redactions
|
|
5210
|
+
# The types of personally identifiable information (PII) that Amazon
|
|
5211
|
+
# Transcribe redacted from this item. Present only on redacted items
|
|
5212
|
+
# in `RedactedResults`.
|
|
5213
|
+
# @return [Array<Types::SyncRedaction>]
|
|
5214
|
+
#
|
|
5215
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/SyncItem AWS API Documentation
|
|
5216
|
+
#
|
|
5217
|
+
class SyncItem < Struct.new(
|
|
5218
|
+
:id,
|
|
5219
|
+
:content,
|
|
5220
|
+
:start_time,
|
|
5221
|
+
:end_time,
|
|
5222
|
+
:language_code,
|
|
5223
|
+
:channel_label,
|
|
5224
|
+
:speaker_label,
|
|
5225
|
+
:vocabulary_filter_match,
|
|
5226
|
+
:redactions)
|
|
5227
|
+
SENSITIVE = []
|
|
5228
|
+
include Aws::Structure
|
|
5229
|
+
end
|
|
5230
|
+
|
|
5231
|
+
# A language identified in your audio, and how long it's spoken.
|
|
5232
|
+
#
|
|
5233
|
+
# @!attribute [rw] language_code
|
|
5234
|
+
# The identified language, as a locale (for example, `en-US`).
|
|
5235
|
+
# @return [String]
|
|
5236
|
+
#
|
|
5237
|
+
# @!attribute [rw] duration_in_seconds
|
|
5238
|
+
# The total time, in seconds, the identified language is spoken in
|
|
5239
|
+
# your audio.
|
|
5240
|
+
# @return [Float]
|
|
5241
|
+
#
|
|
5242
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/SyncLanguageCodeItem AWS API Documentation
|
|
5243
|
+
#
|
|
5244
|
+
class SyncLanguageCodeItem < Struct.new(
|
|
5245
|
+
:language_code,
|
|
5246
|
+
:duration_in_seconds)
|
|
5247
|
+
SENSITIVE = []
|
|
5248
|
+
include Aws::Structure
|
|
5249
|
+
end
|
|
5250
|
+
|
|
5251
|
+
# The audio to transcribe. Specify exactly one of `MediaBytes` or
|
|
5252
|
+
# `MediaFileUri`.
|
|
5253
|
+
#
|
|
5254
|
+
# Audio sent in the request (`MediaBytes`) can be up to 25 MB. Audio in
|
|
5255
|
+
# Amazon S3 (`MediaFileUri`) can be up to 500 MB.
|
|
5256
|
+
#
|
|
5257
|
+
# @note SyncMedia is a union - when making an API calls you must set exactly one of the members.
|
|
5258
|
+
#
|
|
5259
|
+
# @!attribute [rw] media_bytes
|
|
5260
|
+
# Your audio file, provided inline in the request. The maximum size is
|
|
5261
|
+
# 25 MB (26,214,400 bytes) of audio, measured before base64 encoding.
|
|
5262
|
+
#
|
|
5263
|
+
# If you use an Amazon Web Services SDK, the SDK base64-encodes the
|
|
5264
|
+
# bytes for you. If you call the API directly, base64-encode the bytes
|
|
5265
|
+
# yourself.
|
|
5266
|
+
# @return [String]
|
|
5267
|
+
#
|
|
5268
|
+
# @!attribute [rw] media_file_uri
|
|
5269
|
+
# The Amazon S3 location of the media file you want to transcribe. For
|
|
5270
|
+
# example:
|
|
5271
|
+
#
|
|
5272
|
+
# * `s3://amzn-s3-demo-bucket/my-media-file.flac`
|
|
5273
|
+
#
|
|
5274
|
+
# * `s3://amzn-s3-demo-bucket/media-files/my-media-file.flac`
|
|
5275
|
+
#
|
|
5276
|
+
# The maximum file size is 500 MB. You must have read permission for
|
|
5277
|
+
# the file.
|
|
5278
|
+
#
|
|
5279
|
+
# The Amazon S3 bucket that contains your input media must be located
|
|
5280
|
+
# in the same Amazon Web Services Region where you're making your
|
|
5281
|
+
# transcription request.
|
|
5282
|
+
# @return [String]
|
|
5283
|
+
#
|
|
5284
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/SyncMedia AWS API Documentation
|
|
5285
|
+
#
|
|
5286
|
+
class SyncMedia < Struct.new(
|
|
5287
|
+
:media_bytes,
|
|
5288
|
+
:media_file_uri,
|
|
5289
|
+
:unknown)
|
|
5290
|
+
SENSITIVE = []
|
|
5291
|
+
include Aws::Structure
|
|
5292
|
+
include Aws::Structure::Union
|
|
5293
|
+
|
|
5294
|
+
class MediaBytes < SyncMedia; end
|
|
5295
|
+
class MediaFileUri < SyncMedia; end
|
|
5296
|
+
class Unknown < SyncMedia; end
|
|
5297
|
+
end
|
|
5298
|
+
|
|
5299
|
+
# The Amazon S3 location where your transcript is written.
|
|
5300
|
+
#
|
|
5301
|
+
# @!attribute [rw] output_media_file_uri
|
|
5302
|
+
# The Amazon S3 location where you want your transcript written. For
|
|
5303
|
+
# example:
|
|
5304
|
+
#
|
|
5305
|
+
# * `s3://amzn-s3-demo-bucket/my-transcript.json`
|
|
5306
|
+
#
|
|
5307
|
+
# * `s3://amzn-s3-demo-bucket/transcripts/`
|
|
5308
|
+
#
|
|
5309
|
+
# If the location ends with an object key, Amazon Transcribe writes
|
|
5310
|
+
# the transcript to that key. If it is a bucket or ends with a forward
|
|
5311
|
+
# slash (`/`), it's treated as a prefix, and Amazon Transcribe writes
|
|
5312
|
+
# the transcript under it to a file named with the request ID of your
|
|
5313
|
+
# call and a `.json` extension.
|
|
5314
|
+
#
|
|
5315
|
+
# If you use `ContentRedaction`, Amazon Transcribe writes the redacted
|
|
5316
|
+
# transcript to the same location and adds `redacted-` before the file
|
|
5317
|
+
# name (for example, `redacted-my-transcript.json`). With
|
|
5318
|
+
# `redacted_and_unredacted`, Amazon Transcribe writes both files.
|
|
5319
|
+
#
|
|
5320
|
+
# If an object already exists at that key, Amazon Transcribe
|
|
5321
|
+
# overwrites it.
|
|
5322
|
+
#
|
|
5323
|
+
# In a response, this is the location where Amazon Transcribe wrote
|
|
5324
|
+
# your transcript. If you requested `redacted_and_unredacted` output,
|
|
5325
|
+
# this is the location of the unredacted transcript.
|
|
5326
|
+
# @return [String]
|
|
5327
|
+
#
|
|
5328
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/SyncOutputConfiguration AWS API Documentation
|
|
5329
|
+
#
|
|
5330
|
+
class SyncOutputConfiguration < Struct.new(
|
|
5331
|
+
:output_media_file_uri)
|
|
5332
|
+
SENSITIVE = []
|
|
5333
|
+
include Aws::Structure
|
|
5334
|
+
end
|
|
5335
|
+
|
|
5336
|
+
# A type of personally identifiable information (PII) redacted from an
|
|
5337
|
+
# item.
|
|
5338
|
+
#
|
|
5339
|
+
# @!attribute [rw] type
|
|
5340
|
+
# The type of PII that was redacted, for example `NAME` or `SSN`.
|
|
5341
|
+
# @return [String]
|
|
5342
|
+
#
|
|
5343
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/SyncRedaction AWS API Documentation
|
|
5344
|
+
#
|
|
5345
|
+
class SyncRedaction < Struct.new(
|
|
5346
|
+
:type)
|
|
5347
|
+
SENSITIVE = []
|
|
5348
|
+
include Aws::Structure
|
|
5349
|
+
end
|
|
5350
|
+
|
|
5129
5351
|
# Adds metadata, in the form of a key:value pair, to the specified
|
|
5130
5352
|
# resource.
|
|
5131
5353
|
#
|
|
@@ -5220,6 +5442,234 @@ module Aws::TranscribeService
|
|
|
5220
5442
|
include Aws::Structure
|
|
5221
5443
|
end
|
|
5222
5444
|
|
|
5445
|
+
# Information about your audio.
|
|
5446
|
+
#
|
|
5447
|
+
# @!attribute [rw] language_code
|
|
5448
|
+
# The language of your transcript, as a locale (for example, `en-US`).
|
|
5449
|
+
# Present if you used `LanguageDetectionMode`.
|
|
5450
|
+
# @return [String]
|
|
5451
|
+
#
|
|
5452
|
+
# @!attribute [rw] language_codes
|
|
5453
|
+
# The language identified in your audio, and how long it's spoken.
|
|
5454
|
+
# Present if you used `LanguageDetectionMode`.
|
|
5455
|
+
# @return [Array<Types::SyncLanguageCodeItem>]
|
|
5456
|
+
#
|
|
5457
|
+
# @!attribute [rw] media_format
|
|
5458
|
+
# The format of your audio, as detected by Amazon Transcribe.
|
|
5459
|
+
# @return [String]
|
|
5460
|
+
#
|
|
5461
|
+
# @!attribute [rw] media_sample_rate_hertz
|
|
5462
|
+
# The sample rate of your audio, in hertz, as detected by Amazon
|
|
5463
|
+
# Transcribe.
|
|
5464
|
+
# @return [Integer]
|
|
5465
|
+
#
|
|
5466
|
+
# @!attribute [rw] speakers_count
|
|
5467
|
+
# The number of speakers identified in your audio. Present if you
|
|
5468
|
+
# enabled `ShowSpeakerLabels`.
|
|
5469
|
+
# @return [Integer]
|
|
5470
|
+
#
|
|
5471
|
+
# @!attribute [rw] number_of_channels
|
|
5472
|
+
# The number of audio channels in your media. Present if you enabled
|
|
5473
|
+
# `ChannelIdentification`.
|
|
5474
|
+
# @return [Integer]
|
|
5475
|
+
#
|
|
5476
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscribeAudioMetadata AWS API Documentation
|
|
5477
|
+
#
|
|
5478
|
+
class TranscribeAudioMetadata < Struct.new(
|
|
5479
|
+
:language_code,
|
|
5480
|
+
:language_codes,
|
|
5481
|
+
:media_format,
|
|
5482
|
+
:media_sample_rate_hertz,
|
|
5483
|
+
:speakers_count,
|
|
5484
|
+
:number_of_channels)
|
|
5485
|
+
SENSITIVE = []
|
|
5486
|
+
include Aws::Structure
|
|
5487
|
+
end
|
|
5488
|
+
|
|
5489
|
+
# @!attribute [rw] media
|
|
5490
|
+
# The audio to transcribe. Specify exactly one of `MediaBytes` or
|
|
5491
|
+
# `MediaFileUri`.
|
|
5492
|
+
#
|
|
5493
|
+
# Audio sent in the request (`MediaBytes`) can be up to 25 MB. Audio
|
|
5494
|
+
# in Amazon S3 (`MediaFileUri`) can be up to 500 MB.
|
|
5495
|
+
# @return [Types::SyncMedia]
|
|
5496
|
+
#
|
|
5497
|
+
# @!attribute [rw] language
|
|
5498
|
+
# The language spoken in your audio, as a base language code (for
|
|
5499
|
+
# example, `en` or `es`).
|
|
5500
|
+
#
|
|
5501
|
+
# Include either `Language` or `LanguageDetectionMode` in your
|
|
5502
|
+
# request, but not both.
|
|
5503
|
+
# @return [String]
|
|
5504
|
+
#
|
|
5505
|
+
# @!attribute [rw] language_detection_mode
|
|
5506
|
+
# Enables automatic language identification. Use `IDENTIFY_LANGUAGE`
|
|
5507
|
+
# if your audio contains a single language that you don't know in
|
|
5508
|
+
# advance.
|
|
5509
|
+
#
|
|
5510
|
+
# You can optionally include `LanguageOptions` to limit identification
|
|
5511
|
+
# to languages you think may be present, which can improve accuracy.
|
|
5512
|
+
#
|
|
5513
|
+
# Amazon Transcribe returns the identified language, as a locale (for
|
|
5514
|
+
# example, `en-US`), in the response metadata.
|
|
5515
|
+
#
|
|
5516
|
+
# Include either `Language` or `LanguageDetectionMode` in your
|
|
5517
|
+
# request, but not both.
|
|
5518
|
+
# @return [String]
|
|
5519
|
+
#
|
|
5520
|
+
# @!attribute [rw] language_options
|
|
5521
|
+
# A list of two or more languages that you think may be present in
|
|
5522
|
+
# your audio, as base language codes (for example, `en` and `es`).
|
|
5523
|
+
# Each language can appear only once. A list with only one language
|
|
5524
|
+
# returns a `BadRequestException`.
|
|
5525
|
+
#
|
|
5526
|
+
# You can use `LanguageOptions` only with `LanguageDetectionMode`.
|
|
5527
|
+
# @return [Array<String>]
|
|
5528
|
+
#
|
|
5529
|
+
# @!attribute [rw] channel_identification
|
|
5530
|
+
# Enables channel identification in multi-channel audio. Each channel
|
|
5531
|
+
# is transcribed independently, and each item in the transcript is
|
|
5532
|
+
# labeled with its channel.
|
|
5533
|
+
#
|
|
5534
|
+
# Channel identification supports up to two channels.
|
|
5535
|
+
# @return [Boolean]
|
|
5536
|
+
#
|
|
5537
|
+
# @!attribute [rw] show_speaker_labels
|
|
5538
|
+
# Enables speaker partitioning (diarization) in your transcript.
|
|
5539
|
+
# Speaker partitioning labels the speech from individual speakers in
|
|
5540
|
+
# your media file.
|
|
5541
|
+
#
|
|
5542
|
+
# If you set `ShowSpeakerLabels` to `true`, you must also include
|
|
5543
|
+
# `MaxSpeakerLabels`.
|
|
5544
|
+
#
|
|
5545
|
+
# For more information, see [Partitioning speakers (diarization)][1].
|
|
5546
|
+
#
|
|
5547
|
+
#
|
|
5548
|
+
#
|
|
5549
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html
|
|
5550
|
+
# @return [Boolean]
|
|
5551
|
+
#
|
|
5552
|
+
# @!attribute [rw] max_speaker_labels
|
|
5553
|
+
# Specify the maximum number of speakers you want to partition in your
|
|
5554
|
+
# media.
|
|
5555
|
+
#
|
|
5556
|
+
# Note that if your media contains more speakers than the specified
|
|
5557
|
+
# number, Amazon Transcribe treats multiple speakers as a single
|
|
5558
|
+
# speaker.
|
|
5559
|
+
#
|
|
5560
|
+
# You can set `MaxSpeakerLabels` only if `ShowSpeakerLabels` is
|
|
5561
|
+
# `true`.
|
|
5562
|
+
# @return [Integer]
|
|
5563
|
+
#
|
|
5564
|
+
# @!attribute [rw] vocabulary_settings
|
|
5565
|
+
# Custom vocabularies to apply to your transcript, with one entry per
|
|
5566
|
+
# language. In each entry, you can reference a custom vocabulary you
|
|
5567
|
+
# created or provide phrases inline. All entries must use the same
|
|
5568
|
+
# type, either all by name or all inline.
|
|
5569
|
+
#
|
|
5570
|
+
# If you specify `Language`, include exactly one entry, and its
|
|
5571
|
+
# `Language` must match. If you use `LanguageDetectionMode`, you can
|
|
5572
|
+
# include one entry for each language in `LanguageOptions`.
|
|
5573
|
+
# @return [Array<Types::VocabularySettingsEntry>]
|
|
5574
|
+
#
|
|
5575
|
+
# @!attribute [rw] vocabulary_filter_settings
|
|
5576
|
+
# Custom vocabulary filters to apply to your transcript, and how to
|
|
5577
|
+
# apply them.
|
|
5578
|
+
# @return [Types::VocabularyFilterSettings]
|
|
5579
|
+
#
|
|
5580
|
+
# @!attribute [rw] content_redaction
|
|
5581
|
+
# Redacts personally identifiable information (PII) from your
|
|
5582
|
+
# transcript. Amazon Transcribe returns the redacted transcript in
|
|
5583
|
+
# `RedactedResults`.
|
|
5584
|
+
#
|
|
5585
|
+
# If you set `RedactionOutput` to `redacted_and_unredacted`, Amazon
|
|
5586
|
+
# Transcribe also returns the unredacted transcript in `Results`.
|
|
5587
|
+
#
|
|
5588
|
+
# In Sync, content redaction has these limits:
|
|
5589
|
+
#
|
|
5590
|
+
# * **Languages:** English (`en`), Spanish (`es`), French (`fr`),
|
|
5591
|
+
# Italian (`it`), German (`de`), and Portuguese (`pt`).
|
|
5592
|
+
#
|
|
5593
|
+
# * **Language identification:** If you use `LanguageDetectionMode`,
|
|
5594
|
+
# you must also include `LanguageOptions`, and every language in it
|
|
5595
|
+
# must be one of the languages above. A request that has no
|
|
5596
|
+
# `LanguageOptions`, or that lists a language that isn't supported,
|
|
5597
|
+
# returns a `BadRequestException`.
|
|
5598
|
+
#
|
|
5599
|
+
# * **Regions:** Content redaction isn't available in the South
|
|
5600
|
+
# America (São Paulo) Region (`sa-east-1`). It's available in the
|
|
5601
|
+
# other Amazon Web Services Regions where Sync is available.
|
|
5602
|
+
# @return [Types::ContentRedaction]
|
|
5603
|
+
#
|
|
5604
|
+
# @!attribute [rw] output_configuration
|
|
5605
|
+
# Writes the transcript to an Amazon S3 location instead of returning
|
|
5606
|
+
# it in the response. If you include `OutputConfiguration`, the
|
|
5607
|
+
# response contains only the output location.
|
|
5608
|
+
#
|
|
5609
|
+
# You must have write permission for the location you specify.
|
|
5610
|
+
# @return [Types::SyncOutputConfiguration]
|
|
5611
|
+
#
|
|
5612
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscribeAudioRequest AWS API Documentation
|
|
5613
|
+
#
|
|
5614
|
+
class TranscribeAudioRequest < Struct.new(
|
|
5615
|
+
:media,
|
|
5616
|
+
:language,
|
|
5617
|
+
:language_detection_mode,
|
|
5618
|
+
:language_options,
|
|
5619
|
+
:channel_identification,
|
|
5620
|
+
:show_speaker_labels,
|
|
5621
|
+
:max_speaker_labels,
|
|
5622
|
+
:vocabulary_settings,
|
|
5623
|
+
:vocabulary_filter_settings,
|
|
5624
|
+
:content_redaction,
|
|
5625
|
+
:output_configuration)
|
|
5626
|
+
SENSITIVE = []
|
|
5627
|
+
include Aws::Structure
|
|
5628
|
+
end
|
|
5629
|
+
|
|
5630
|
+
# @!attribute [rw] output_configuration
|
|
5631
|
+
# The Amazon S3 location where your transcript was written. Present
|
|
5632
|
+
# only if you included `OutputConfiguration` in your request. In that
|
|
5633
|
+
# case, `TranscriptResponse` isn't returned.
|
|
5634
|
+
# @return [Types::SyncOutputConfiguration]
|
|
5635
|
+
#
|
|
5636
|
+
# @!attribute [rw] transcript_response
|
|
5637
|
+
# Your transcript and information about your audio. Present only if
|
|
5638
|
+
# you didn't include `OutputConfiguration` in your request.
|
|
5639
|
+
# @return [Types::TranscriptResponse]
|
|
5640
|
+
#
|
|
5641
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscribeAudioResponse AWS API Documentation
|
|
5642
|
+
#
|
|
5643
|
+
class TranscribeAudioResponse < Struct.new(
|
|
5644
|
+
:output_configuration,
|
|
5645
|
+
:transcript_response)
|
|
5646
|
+
SENSITIVE = []
|
|
5647
|
+
include Aws::Structure
|
|
5648
|
+
end
|
|
5649
|
+
|
|
5650
|
+
# A transcript of your audio.
|
|
5651
|
+
#
|
|
5652
|
+
# @!attribute [rw] transcript
|
|
5653
|
+
# The full text of your transcript.
|
|
5654
|
+
#
|
|
5655
|
+
# If you enabled `ChannelIdentification`, the text of channel `ch_0`
|
|
5656
|
+
# is followed by the text of channel `ch_1`.
|
|
5657
|
+
# @return [String]
|
|
5658
|
+
#
|
|
5659
|
+
# @!attribute [rw] items
|
|
5660
|
+
# The words and punctuation in your transcript, with timing and any
|
|
5661
|
+
# labels you requested.
|
|
5662
|
+
# @return [Array<Types::SyncItem>]
|
|
5663
|
+
#
|
|
5664
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscribeAudioResults AWS API Documentation
|
|
5665
|
+
#
|
|
5666
|
+
class TranscribeAudioResults < Struct.new(
|
|
5667
|
+
:transcript,
|
|
5668
|
+
:items)
|
|
5669
|
+
SENSITIVE = []
|
|
5670
|
+
include Aws::Structure
|
|
5671
|
+
end
|
|
5672
|
+
|
|
5223
5673
|
# Provides you with the Amazon S3 URI you can use to access your
|
|
5224
5674
|
# transcript.
|
|
5225
5675
|
#
|
|
@@ -5347,6 +5797,36 @@ module Aws::TranscribeService
|
|
|
5347
5797
|
include Aws::Structure
|
|
5348
5798
|
end
|
|
5349
5799
|
|
|
5800
|
+
# Your transcript and information about your audio.
|
|
5801
|
+
#
|
|
5802
|
+
# @!attribute [rw] metadata
|
|
5803
|
+
# Information about your audio, such as the detected language, format,
|
|
5804
|
+
# and sample rate.
|
|
5805
|
+
# @return [Types::TranscribeAudioMetadata]
|
|
5806
|
+
#
|
|
5807
|
+
# @!attribute [rw] results
|
|
5808
|
+
# Your unredacted transcript.
|
|
5809
|
+
#
|
|
5810
|
+
# If you set `RedactionOutput` to `redacted`, Amazon Transcribe
|
|
5811
|
+
# doesn't return this field. Use `RedactedResults` instead.
|
|
5812
|
+
# @return [Types::TranscribeAudioResults]
|
|
5813
|
+
#
|
|
5814
|
+
# @!attribute [rw] redacted_results
|
|
5815
|
+
# Your transcript with personally identifiable information (PII)
|
|
5816
|
+
# redacted. Present only if you included `ContentRedaction` in your
|
|
5817
|
+
# request.
|
|
5818
|
+
# @return [Types::TranscribeAudioResults]
|
|
5819
|
+
#
|
|
5820
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptResponse AWS API Documentation
|
|
5821
|
+
#
|
|
5822
|
+
class TranscriptResponse < Struct.new(
|
|
5823
|
+
:metadata,
|
|
5824
|
+
:results,
|
|
5825
|
+
:redacted_results)
|
|
5826
|
+
SENSITIVE = []
|
|
5827
|
+
include Aws::Structure
|
|
5828
|
+
end
|
|
5829
|
+
|
|
5350
5830
|
# Provides detailed information about a transcription job.
|
|
5351
5831
|
#
|
|
5352
5832
|
# To view the status of the specified transcription job, check the
|
|
@@ -5816,7 +6296,8 @@ module Aws::TranscribeService
|
|
|
5816
6296
|
# @!attribute [rw] encryption_configuration
|
|
5817
6297
|
# Specifies the new encryption configuration for your custom language
|
|
5818
6298
|
# model. The model artifacts are re-encrypted in place using the
|
|
5819
|
-
# specified KMS key or with an
|
|
6299
|
+
# specified KMS key or with an Amazon Web Services owned key if a key
|
|
6300
|
+
# is not supplied.
|
|
5820
6301
|
# @return [Types::EncryptionConfiguration]
|
|
5821
6302
|
#
|
|
5822
6303
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateLanguageModelRequest AWS API Documentation
|
|
@@ -5978,10 +6459,10 @@ module Aws::TranscribeService
|
|
|
5978
6459
|
# @return [String]
|
|
5979
6460
|
#
|
|
5980
6461
|
# @!attribute [rw] encryption_configuration
|
|
5981
|
-
# Specifies the
|
|
5982
|
-
#
|
|
5983
|
-
#
|
|
5984
|
-
#
|
|
6462
|
+
# Specifies the encryption configuration for your custom vocabulary
|
|
6463
|
+
# filter. Your vocabulary filter artifacts are encrypted with the
|
|
6464
|
+
# specified KMS key or with an Amazon Web Services owned key if a key
|
|
6465
|
+
# is not supplied.
|
|
5985
6466
|
# @return [Types::EncryptionConfiguration]
|
|
5986
6467
|
#
|
|
5987
6468
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilterRequest AWS API Documentation
|
|
@@ -6101,10 +6582,9 @@ module Aws::TranscribeService
|
|
|
6101
6582
|
# @return [String]
|
|
6102
6583
|
#
|
|
6103
6584
|
# @!attribute [rw] encryption_configuration
|
|
6104
|
-
# Specifies the
|
|
6105
|
-
#
|
|
6106
|
-
#
|
|
6107
|
-
# supplied.
|
|
6585
|
+
# Specifies the encryption configuration for your custom vocabulary.
|
|
6586
|
+
# Your vocabulary artifacts are encrypted with the specified KMS key
|
|
6587
|
+
# or with an Amazon Web Services owned key if a key is not supplied.
|
|
6108
6588
|
# @return [Types::EncryptionConfiguration]
|
|
6109
6589
|
#
|
|
6110
6590
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyRequest AWS API Documentation
|
|
@@ -6153,6 +6633,43 @@ module Aws::TranscribeService
|
|
|
6153
6633
|
include Aws::Structure
|
|
6154
6634
|
end
|
|
6155
6635
|
|
|
6636
|
+
# A custom vocabulary filter for one language. Specify exactly one of
|
|
6637
|
+
# `VocabularyFilterName` or `Words`.
|
|
6638
|
+
#
|
|
6639
|
+
# @!attribute [rw] language
|
|
6640
|
+
# The language this custom vocabulary filter applies to, as a base
|
|
6641
|
+
# language code (for example, `en`). Each language can appear in only
|
|
6642
|
+
# one entry.
|
|
6643
|
+
# @return [String]
|
|
6644
|
+
#
|
|
6645
|
+
# @!attribute [rw] vocabulary_filter_name
|
|
6646
|
+
# The name of a custom vocabulary filter you created. The filter's
|
|
6647
|
+
# language must match this entry's `Language`.
|
|
6648
|
+
#
|
|
6649
|
+
# Vocabulary filter names are case sensitive.
|
|
6650
|
+
#
|
|
6651
|
+
# Include either `VocabularyFilterName` or `Words` in each entry, but
|
|
6652
|
+
# not both.
|
|
6653
|
+
# @return [String]
|
|
6654
|
+
#
|
|
6655
|
+
# @!attribute [rw] words
|
|
6656
|
+
# The words to filter, provided inline. You don't need to create the
|
|
6657
|
+
# vocabulary filter first.
|
|
6658
|
+
#
|
|
6659
|
+
# Include either `Words` or `VocabularyFilterName` in each entry, but
|
|
6660
|
+
# not both.
|
|
6661
|
+
# @return [Array<String>]
|
|
6662
|
+
#
|
|
6663
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/VocabularyFilterEntry AWS API Documentation
|
|
6664
|
+
#
|
|
6665
|
+
class VocabularyFilterEntry < Struct.new(
|
|
6666
|
+
:language,
|
|
6667
|
+
:vocabulary_filter_name,
|
|
6668
|
+
:words)
|
|
6669
|
+
SENSITIVE = []
|
|
6670
|
+
include Aws::Structure
|
|
6671
|
+
end
|
|
6672
|
+
|
|
6156
6673
|
# Provides information about a custom vocabulary filter, including the
|
|
6157
6674
|
# language of the filter, when it was last modified, and its name.
|
|
6158
6675
|
#
|
|
@@ -6199,6 +6716,40 @@ module Aws::TranscribeService
|
|
|
6199
6716
|
include Aws::Structure
|
|
6200
6717
|
end
|
|
6201
6718
|
|
|
6719
|
+
# Custom vocabulary filters to apply to your transcript, and how to
|
|
6720
|
+
# apply them.
|
|
6721
|
+
#
|
|
6722
|
+
# @!attribute [rw] vocabulary_filter_method
|
|
6723
|
+
# Specify how you want your custom vocabulary filter applied to your
|
|
6724
|
+
# transcript.
|
|
6725
|
+
#
|
|
6726
|
+
# To replace words with `***`, choose `mask`.
|
|
6727
|
+
#
|
|
6728
|
+
# To delete words, choose `remove`.
|
|
6729
|
+
#
|
|
6730
|
+
# To flag words without changing them, choose `tag`.
|
|
6731
|
+
# @return [String]
|
|
6732
|
+
#
|
|
6733
|
+
# @!attribute [rw] filters
|
|
6734
|
+
# Custom vocabulary filters, with one entry per language. In each
|
|
6735
|
+
# entry, you can reference a custom vocabulary filter you created or
|
|
6736
|
+
# provide words inline. All entries must use the same type, either all
|
|
6737
|
+
# by name or all inline.
|
|
6738
|
+
#
|
|
6739
|
+
# If you specify `Language`, include exactly one entry, and its
|
|
6740
|
+
# `Language` must match. If you use `LanguageDetectionMode`, you can
|
|
6741
|
+
# include one entry for each language in `LanguageOptions`.
|
|
6742
|
+
# @return [Array<Types::VocabularyFilterEntry>]
|
|
6743
|
+
#
|
|
6744
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/VocabularyFilterSettings AWS API Documentation
|
|
6745
|
+
#
|
|
6746
|
+
class VocabularyFilterSettings < Struct.new(
|
|
6747
|
+
:vocabulary_filter_method,
|
|
6748
|
+
:filters)
|
|
6749
|
+
SENSITIVE = []
|
|
6750
|
+
include Aws::Structure
|
|
6751
|
+
end
|
|
6752
|
+
|
|
6202
6753
|
# Provides information about a custom vocabulary, including the language
|
|
6203
6754
|
# of the custom vocabulary, when it was last modified, its name, and the
|
|
6204
6755
|
# processing state.
|
|
@@ -6244,6 +6795,64 @@ module Aws::TranscribeService
|
|
|
6244
6795
|
include Aws::Structure
|
|
6245
6796
|
end
|
|
6246
6797
|
|
|
6798
|
+
# A phrase in an inline custom vocabulary.
|
|
6799
|
+
#
|
|
6800
|
+
# @!attribute [rw] text
|
|
6801
|
+
# The phrase to recognize in your audio.
|
|
6802
|
+
# @return [String]
|
|
6803
|
+
#
|
|
6804
|
+
# @!attribute [rw] display_as
|
|
6805
|
+
# How the phrase is written in your transcript. If you don't include
|
|
6806
|
+
# `DisplayAs`, the phrase is written as it appears in `Text`.
|
|
6807
|
+
# @return [String]
|
|
6808
|
+
#
|
|
6809
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/VocabularyPhrase AWS API Documentation
|
|
6810
|
+
#
|
|
6811
|
+
class VocabularyPhrase < Struct.new(
|
|
6812
|
+
:text,
|
|
6813
|
+
:display_as)
|
|
6814
|
+
SENSITIVE = []
|
|
6815
|
+
include Aws::Structure
|
|
6816
|
+
end
|
|
6817
|
+
|
|
6818
|
+
# A custom vocabulary for one language. Specify exactly one of
|
|
6819
|
+
# `VocabularyName` or `Phrases`.
|
|
6820
|
+
#
|
|
6821
|
+
# @!attribute [rw] language
|
|
6822
|
+
# The language this custom vocabulary applies to, as a base language
|
|
6823
|
+
# code (for example, `en`). Each language can appear in only one
|
|
6824
|
+
# entry.
|
|
6825
|
+
# @return [String]
|
|
6826
|
+
#
|
|
6827
|
+
# @!attribute [rw] vocabulary_name
|
|
6828
|
+
# The name of a custom vocabulary you created. The vocabulary must be
|
|
6829
|
+
# in the `READY` state, and its language must match this entry's
|
|
6830
|
+
# `Language`.
|
|
6831
|
+
#
|
|
6832
|
+
# Vocabulary names are case sensitive.
|
|
6833
|
+
#
|
|
6834
|
+
# Include either `VocabularyName` or `Phrases` in each entry, but not
|
|
6835
|
+
# both.
|
|
6836
|
+
# @return [String]
|
|
6837
|
+
#
|
|
6838
|
+
# @!attribute [rw] phrases
|
|
6839
|
+
# Up to 100 phrases to use as a custom vocabulary, provided inline.
|
|
6840
|
+
# You don't need to create the vocabulary first.
|
|
6841
|
+
#
|
|
6842
|
+
# Include either `Phrases` or `VocabularyName` in each entry, but not
|
|
6843
|
+
# both.
|
|
6844
|
+
# @return [Array<Types::VocabularyPhrase>]
|
|
6845
|
+
#
|
|
6846
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/VocabularySettingsEntry AWS API Documentation
|
|
6847
|
+
#
|
|
6848
|
+
class VocabularySettingsEntry < Struct.new(
|
|
6849
|
+
:language,
|
|
6850
|
+
:vocabulary_name,
|
|
6851
|
+
:phrases)
|
|
6852
|
+
SENSITIVE = []
|
|
6853
|
+
include Aws::Structure
|
|
6854
|
+
end
|
|
6855
|
+
|
|
6247
6856
|
end
|
|
6248
6857
|
end
|
|
6249
6858
|
|