aws-sdk-transcribeservice 1.157.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 +10 -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 +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b24bfa85b63e5a2275f2dedb8c3223427c756f3623affe36a40dd061f8c6f65
|
|
4
|
+
data.tar.gz: d265ed7440db47488320b983471720b4737018ca2de95d2b09e412c87494203b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d48303b32937a1a13abc75c108c5f412a1060eb311abb6a168c284e9bc4e59c945b587e7406f09f2db872ce0f897a84fba57f0bda5f42cb07c51df919a209d70
|
|
7
|
+
data.tar.gz: 5adcdc8cd5d39d5325f65b32cd9ad6f9f9f563cb905b1700c7cf2f12273c10c8886e9974d61b93fb912a02260bd20f05eafc84a869f8d8f1d5a76a2af1bd9951
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.159.0 (2026-11-20)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This release adds the TranscribeAudio API for synchronous transcription. Send a media file inline or from Amazon S3 and receive the transcript in the same response, with support for speaker, channel identification, language identification, custom vocabularies, vocabulary filters, and PII redaction.
|
|
8
|
+
|
|
9
|
+
1.158.0 (2026-11-18)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.157.0 (2026-11-16)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.159.0
|
|
@@ -784,7 +784,7 @@ module Aws::TranscribeService
|
|
|
784
784
|
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
785
785
|
# Specifies the encryption configuration for your custom language model.
|
|
786
786
|
# Your model artifacts are encrypted with the specified KMS key or with
|
|
787
|
-
# an
|
|
787
|
+
# an Amazon Web Services owned key if a key is not supplied.
|
|
788
788
|
#
|
|
789
789
|
# @option params [Array<Types::Tag>] :tags
|
|
790
790
|
# Adds one or more custom tags, each in the form of a key:value pair, to
|
|
@@ -1050,7 +1050,7 @@ module Aws::TranscribeService
|
|
|
1050
1050
|
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
1051
1051
|
# Specifies the encryption configuration for your custom vocabulary.
|
|
1052
1052
|
# Your vocabulary artifacts are encrypted with the specified KMS key or
|
|
1053
|
-
# with an
|
|
1053
|
+
# with an Amazon Web Services owned key if a key is not supplied.
|
|
1054
1054
|
#
|
|
1055
1055
|
# @return [Types::CreateVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1056
1056
|
#
|
|
@@ -1206,7 +1206,8 @@ module Aws::TranscribeService
|
|
|
1206
1206
|
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
1207
1207
|
# Specifies the encryption configuration for your custom vocabulary
|
|
1208
1208
|
# filter. Your vocabulary filter artifacts are encrypted with the
|
|
1209
|
-
# specified KMS key or with an
|
|
1209
|
+
# specified KMS key or with an Amazon Web Services owned key if a key is
|
|
1210
|
+
# not supplied.
|
|
1210
1211
|
#
|
|
1211
1212
|
# @return [Types::CreateVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1212
1213
|
#
|
|
@@ -3813,7 +3814,7 @@ module Aws::TranscribeService
|
|
|
3813
3814
|
# `DataAccessRoleArn`.
|
|
3814
3815
|
#
|
|
3815
3816
|
# @option params [Types::ContentRedaction] :content_redaction
|
|
3816
|
-
# Makes it possible to redact
|
|
3817
|
+
# Makes it possible to redact specified personally identifiable
|
|
3817
3818
|
# information (PII) in your transcript. If you use `ContentRedaction`,
|
|
3818
3819
|
# you must also include the sub-parameters: `RedactionOutput` and
|
|
3819
3820
|
# `RedactionType`. You can optionally include `PiiEntityTypes` to choose
|
|
@@ -4134,6 +4135,244 @@ module Aws::TranscribeService
|
|
|
4134
4135
|
req.send_request(options)
|
|
4135
4136
|
end
|
|
4136
4137
|
|
|
4138
|
+
# Transcribes a media file and returns the transcript in the same
|
|
4139
|
+
# response. There is no job to start and no status to poll.
|
|
4140
|
+
#
|
|
4141
|
+
# Use `TranscribeAudio` when you already have a complete media file and
|
|
4142
|
+
# want the transcript right away. For large files, long audio, or bulk
|
|
4143
|
+
# processing, use .
|
|
4144
|
+
#
|
|
4145
|
+
# You must include the following parameters in your `TranscribeAudio`
|
|
4146
|
+
# request:
|
|
4147
|
+
#
|
|
4148
|
+
# * `Media`: Your audio, either as inline bytes (`MediaBytes`) or as the
|
|
4149
|
+
# Amazon S3 location of a media file (`MediaFileUri`).
|
|
4150
|
+
#
|
|
4151
|
+
# * One of `Language` or `LanguageDetectionMode`: Specify the language
|
|
4152
|
+
# of your audio, or have Amazon Transcribe identify it.
|
|
4153
|
+
#
|
|
4154
|
+
# Your audio must be between 0.5 seconds and 1 hour long. Supported
|
|
4155
|
+
# formats are WAV, MP3, FLAC, M4A, MP4, Ogg, WebM, and AMR.
|
|
4156
|
+
#
|
|
4157
|
+
# If you send your audio in the request (`MediaBytes`), the file can be
|
|
4158
|
+
# up to 25 MB. If you provide an Amazon S3 location (`MediaFileUri`),
|
|
4159
|
+
# the file can be up to 500 MB.
|
|
4160
|
+
#
|
|
4161
|
+
# Amazon Transcribe always turns on smart formatting, also known as
|
|
4162
|
+
# inverse text normalization (ITN). It writes numbers, dates, currency,
|
|
4163
|
+
# and similar items in their usual written form. For example, "one
|
|
4164
|
+
# hundred" becomes "100". You can't turn smart formatting off.
|
|
4165
|
+
#
|
|
4166
|
+
# By default, Amazon Transcribe returns the transcript in
|
|
4167
|
+
# `TranscriptResponse`. If you include `OutputConfiguration`, Amazon
|
|
4168
|
+
# Transcribe writes the transcript to the Amazon S3 location you specify
|
|
4169
|
+
# instead, and the response contains only that location.
|
|
4170
|
+
#
|
|
4171
|
+
# @option params [required, Types::SyncMedia] :media
|
|
4172
|
+
# The audio to transcribe. Specify exactly one of `MediaBytes` or
|
|
4173
|
+
# `MediaFileUri`.
|
|
4174
|
+
#
|
|
4175
|
+
# Audio sent in the request (`MediaBytes`) can be up to 25 MB. Audio in
|
|
4176
|
+
# Amazon S3 (`MediaFileUri`) can be up to 500 MB.
|
|
4177
|
+
#
|
|
4178
|
+
# @option params [String] :language
|
|
4179
|
+
# The language spoken in your audio, as a base language code (for
|
|
4180
|
+
# example, `en` or `es`).
|
|
4181
|
+
#
|
|
4182
|
+
# Include either `Language` or `LanguageDetectionMode` in your request,
|
|
4183
|
+
# but not both.
|
|
4184
|
+
#
|
|
4185
|
+
# @option params [String] :language_detection_mode
|
|
4186
|
+
# Enables automatic language identification. Use `IDENTIFY_LANGUAGE` if
|
|
4187
|
+
# your audio contains a single language that you don't know in advance.
|
|
4188
|
+
#
|
|
4189
|
+
# You can optionally include `LanguageOptions` to limit identification
|
|
4190
|
+
# to languages you think may be present, which can improve accuracy.
|
|
4191
|
+
#
|
|
4192
|
+
# Amazon Transcribe returns the identified language, as a locale (for
|
|
4193
|
+
# example, `en-US`), in the response metadata.
|
|
4194
|
+
#
|
|
4195
|
+
# Include either `Language` or `LanguageDetectionMode` in your request,
|
|
4196
|
+
# but not both.
|
|
4197
|
+
#
|
|
4198
|
+
# @option params [Array<String>] :language_options
|
|
4199
|
+
# A list of two or more languages that you think may be present in your
|
|
4200
|
+
# audio, as base language codes (for example, `en` and `es`). Each
|
|
4201
|
+
# language can appear only once. A list with only one language returns a
|
|
4202
|
+
# `BadRequestException`.
|
|
4203
|
+
#
|
|
4204
|
+
# You can use `LanguageOptions` only with `LanguageDetectionMode`.
|
|
4205
|
+
#
|
|
4206
|
+
# @option params [Boolean] :channel_identification
|
|
4207
|
+
# Enables channel identification in multi-channel audio. Each channel is
|
|
4208
|
+
# transcribed independently, and each item in the transcript is labeled
|
|
4209
|
+
# with its channel.
|
|
4210
|
+
#
|
|
4211
|
+
# Channel identification supports up to two channels.
|
|
4212
|
+
#
|
|
4213
|
+
# @option params [Boolean] :show_speaker_labels
|
|
4214
|
+
# Enables speaker partitioning (diarization) in your transcript. Speaker
|
|
4215
|
+
# partitioning labels the speech from individual speakers in your media
|
|
4216
|
+
# file.
|
|
4217
|
+
#
|
|
4218
|
+
# If you set `ShowSpeakerLabels` to `true`, you must also include
|
|
4219
|
+
# `MaxSpeakerLabels`.
|
|
4220
|
+
#
|
|
4221
|
+
# For more information, see [Partitioning speakers (diarization)][1].
|
|
4222
|
+
#
|
|
4223
|
+
#
|
|
4224
|
+
#
|
|
4225
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html
|
|
4226
|
+
#
|
|
4227
|
+
# @option params [Integer] :max_speaker_labels
|
|
4228
|
+
# Specify the maximum number of speakers you want to partition in your
|
|
4229
|
+
# media.
|
|
4230
|
+
#
|
|
4231
|
+
# Note that if your media contains more speakers than the specified
|
|
4232
|
+
# number, Amazon Transcribe treats multiple speakers as a single
|
|
4233
|
+
# speaker.
|
|
4234
|
+
#
|
|
4235
|
+
# You can set `MaxSpeakerLabels` only if `ShowSpeakerLabels` is `true`.
|
|
4236
|
+
#
|
|
4237
|
+
# @option params [Array<Types::VocabularySettingsEntry>] :vocabulary_settings
|
|
4238
|
+
# Custom vocabularies to apply to your transcript, with one entry per
|
|
4239
|
+
# language. In each entry, you can reference a custom vocabulary you
|
|
4240
|
+
# created or provide phrases inline. All entries must use the same type,
|
|
4241
|
+
# either all by name or all inline.
|
|
4242
|
+
#
|
|
4243
|
+
# If you specify `Language`, include exactly one entry, and its
|
|
4244
|
+
# `Language` must match. If you use `LanguageDetectionMode`, you can
|
|
4245
|
+
# include one entry for each language in `LanguageOptions`.
|
|
4246
|
+
#
|
|
4247
|
+
# @option params [Types::VocabularyFilterSettings] :vocabulary_filter_settings
|
|
4248
|
+
# Custom vocabulary filters to apply to your transcript, and how to
|
|
4249
|
+
# apply them.
|
|
4250
|
+
#
|
|
4251
|
+
# @option params [Types::ContentRedaction] :content_redaction
|
|
4252
|
+
# Redacts personally identifiable information (PII) from your
|
|
4253
|
+
# transcript. Amazon Transcribe returns the redacted transcript in
|
|
4254
|
+
# `RedactedResults`.
|
|
4255
|
+
#
|
|
4256
|
+
# If you set `RedactionOutput` to `redacted_and_unredacted`, Amazon
|
|
4257
|
+
# Transcribe also returns the unredacted transcript in `Results`.
|
|
4258
|
+
#
|
|
4259
|
+
# In Sync, content redaction has these limits:
|
|
4260
|
+
#
|
|
4261
|
+
# * **Languages:** English (`en`), Spanish (`es`), French (`fr`),
|
|
4262
|
+
# Italian (`it`), German (`de`), and Portuguese (`pt`).
|
|
4263
|
+
#
|
|
4264
|
+
# * **Language identification:** If you use `LanguageDetectionMode`, you
|
|
4265
|
+
# must also include `LanguageOptions`, and every language in it must
|
|
4266
|
+
# be one of the languages above. A request that has no
|
|
4267
|
+
# `LanguageOptions`, or that lists a language that isn't supported,
|
|
4268
|
+
# returns a `BadRequestException`.
|
|
4269
|
+
#
|
|
4270
|
+
# * **Regions:** Content redaction isn't available in the South America
|
|
4271
|
+
# (São Paulo) Region (`sa-east-1`). It's available in the other
|
|
4272
|
+
# Amazon Web Services Regions where Sync is available.
|
|
4273
|
+
#
|
|
4274
|
+
# @option params [Types::SyncOutputConfiguration] :output_configuration
|
|
4275
|
+
# Writes the transcript to an Amazon S3 location instead of returning it
|
|
4276
|
+
# in the response. If you include `OutputConfiguration`, the response
|
|
4277
|
+
# contains only the output location.
|
|
4278
|
+
#
|
|
4279
|
+
# You must have write permission for the location you specify.
|
|
4280
|
+
#
|
|
4281
|
+
# @return [Types::TranscribeAudioResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4282
|
+
#
|
|
4283
|
+
# * {Types::TranscribeAudioResponse#output_configuration #output_configuration} => Types::SyncOutputConfiguration
|
|
4284
|
+
# * {Types::TranscribeAudioResponse#transcript_response #transcript_response} => Types::TranscriptResponse
|
|
4285
|
+
#
|
|
4286
|
+
# @example Request syntax with placeholder values
|
|
4287
|
+
#
|
|
4288
|
+
# resp = client.transcribe_audio({
|
|
4289
|
+
# media: { # required
|
|
4290
|
+
# media_bytes: "data",
|
|
4291
|
+
# media_file_uri: "Uri",
|
|
4292
|
+
# },
|
|
4293
|
+
# language: "en", # accepts en, es, fr, it, de, ja, pt, ko, zh-CN, zh-TW, zh-HK
|
|
4294
|
+
# language_detection_mode: "IDENTIFY_LANGUAGE", # accepts IDENTIFY_LANGUAGE
|
|
4295
|
+
# language_options: ["en"], # accepts en, es, fr, it, de, ja, pt, ko, zh-CN, zh-TW, zh-HK
|
|
4296
|
+
# channel_identification: false,
|
|
4297
|
+
# show_speaker_labels: false,
|
|
4298
|
+
# max_speaker_labels: 1,
|
|
4299
|
+
# vocabulary_settings: [
|
|
4300
|
+
# {
|
|
4301
|
+
# language: "en", # required, accepts en, es, fr, it, de, ja, pt, ko, zh-CN, zh-TW, zh-HK
|
|
4302
|
+
# vocabulary_name: "VocabularyName",
|
|
4303
|
+
# phrases: [
|
|
4304
|
+
# {
|
|
4305
|
+
# text: "VocabularyText", # required
|
|
4306
|
+
# display_as: "VocabularyText",
|
|
4307
|
+
# },
|
|
4308
|
+
# ],
|
|
4309
|
+
# },
|
|
4310
|
+
# ],
|
|
4311
|
+
# vocabulary_filter_settings: {
|
|
4312
|
+
# vocabulary_filter_method: "remove", # required, accepts remove, mask, tag
|
|
4313
|
+
# filters: [ # required
|
|
4314
|
+
# {
|
|
4315
|
+
# language: "en", # required, accepts en, es, fr, it, de, ja, pt, ko, zh-CN, zh-TW, zh-HK
|
|
4316
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
|
4317
|
+
# words: ["Word"],
|
|
4318
|
+
# },
|
|
4319
|
+
# ],
|
|
4320
|
+
# },
|
|
4321
|
+
# content_redaction: {
|
|
4322
|
+
# redaction_type: "PII", # required, accepts PII
|
|
4323
|
+
# redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
|
|
4324
|
+
# pii_entity_types: ["BANK_ACCOUNT_NUMBER"], # accepts BANK_ACCOUNT_NUMBER, BANK_ROUTING, CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL, AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS, MAC_ADDRESS, LICENSE_PLATE, VEHICLE_IDENTIFICATION_NUMBER, US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER, CA_HEALTH_NUMBER, CA_SOCIAL_INSURANCE_NUMBER, INTERNATIONAL_BANK_ACCOUNT_NUMBER, SWIFT_CODE, ALL
|
|
4325
|
+
# },
|
|
4326
|
+
# output_configuration: {
|
|
4327
|
+
# output_media_file_uri: "Uri", # required
|
|
4328
|
+
# },
|
|
4329
|
+
# })
|
|
4330
|
+
#
|
|
4331
|
+
# @example Response structure
|
|
4332
|
+
#
|
|
4333
|
+
# resp.output_configuration.output_media_file_uri #=> String
|
|
4334
|
+
# resp.transcript_response.metadata.language_code #=> String, one of "en-US", "en-AB", "en-AU", "en-GB", "en-IE", "en-IN", "en-WL", "en-ZA", "en-NZ", "es-US", "es-ES", "es-MX", "fr-FR", "fr-CA", "it-IT", "de-DE", "de-CH", "ja-JP", "pt-BR", "pt-PT", "zh-CN", "zh-TW", "zh-HK", "ko-KR"
|
|
4335
|
+
# resp.transcript_response.metadata.language_codes #=> Array
|
|
4336
|
+
# resp.transcript_response.metadata.language_codes[0].language_code #=> String, one of "en-US", "en-AB", "en-AU", "en-GB", "en-IE", "en-IN", "en-WL", "en-ZA", "en-NZ", "es-US", "es-ES", "es-MX", "fr-FR", "fr-CA", "it-IT", "de-DE", "de-CH", "ja-JP", "pt-BR", "pt-PT", "zh-CN", "zh-TW", "zh-HK", "ko-KR"
|
|
4337
|
+
# resp.transcript_response.metadata.language_codes[0].duration_in_seconds #=> Float
|
|
4338
|
+
# resp.transcript_response.metadata.media_format #=> String, one of "mp3", "mp4", "wav", "flac", "ogg", "amr", "webm", "m4a"
|
|
4339
|
+
# resp.transcript_response.metadata.media_sample_rate_hertz #=> Integer
|
|
4340
|
+
# resp.transcript_response.metadata.speakers_count #=> Integer
|
|
4341
|
+
# resp.transcript_response.metadata.number_of_channels #=> Integer
|
|
4342
|
+
# resp.transcript_response.results.transcript #=> String
|
|
4343
|
+
# resp.transcript_response.results.items #=> Array
|
|
4344
|
+
# resp.transcript_response.results.items[0].id #=> Integer
|
|
4345
|
+
# resp.transcript_response.results.items[0].content #=> String
|
|
4346
|
+
# resp.transcript_response.results.items[0].start_time #=> Float
|
|
4347
|
+
# resp.transcript_response.results.items[0].end_time #=> Float
|
|
4348
|
+
# resp.transcript_response.results.items[0].language_code #=> String, one of "en-US", "en-AB", "en-AU", "en-GB", "en-IE", "en-IN", "en-WL", "en-ZA", "en-NZ", "es-US", "es-ES", "es-MX", "fr-FR", "fr-CA", "it-IT", "de-DE", "de-CH", "ja-JP", "pt-BR", "pt-PT", "zh-CN", "zh-TW", "zh-HK", "ko-KR"
|
|
4349
|
+
# resp.transcript_response.results.items[0].channel_label #=> String
|
|
4350
|
+
# resp.transcript_response.results.items[0].speaker_label #=> String
|
|
4351
|
+
# resp.transcript_response.results.items[0].vocabulary_filter_match #=> Boolean
|
|
4352
|
+
# resp.transcript_response.results.items[0].redactions #=> Array
|
|
4353
|
+
# resp.transcript_response.results.items[0].redactions[0].type #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "LICENSE_PLATE", "VEHICLE_IDENTIFICATION_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "SWIFT_CODE", "ALL"
|
|
4354
|
+
# resp.transcript_response.redacted_results.transcript #=> String
|
|
4355
|
+
# resp.transcript_response.redacted_results.items #=> Array
|
|
4356
|
+
# resp.transcript_response.redacted_results.items[0].id #=> Integer
|
|
4357
|
+
# resp.transcript_response.redacted_results.items[0].content #=> String
|
|
4358
|
+
# resp.transcript_response.redacted_results.items[0].start_time #=> Float
|
|
4359
|
+
# resp.transcript_response.redacted_results.items[0].end_time #=> Float
|
|
4360
|
+
# resp.transcript_response.redacted_results.items[0].language_code #=> String, one of "en-US", "en-AB", "en-AU", "en-GB", "en-IE", "en-IN", "en-WL", "en-ZA", "en-NZ", "es-US", "es-ES", "es-MX", "fr-FR", "fr-CA", "it-IT", "de-DE", "de-CH", "ja-JP", "pt-BR", "pt-PT", "zh-CN", "zh-TW", "zh-HK", "ko-KR"
|
|
4361
|
+
# resp.transcript_response.redacted_results.items[0].channel_label #=> String
|
|
4362
|
+
# resp.transcript_response.redacted_results.items[0].speaker_label #=> String
|
|
4363
|
+
# resp.transcript_response.redacted_results.items[0].vocabulary_filter_match #=> Boolean
|
|
4364
|
+
# resp.transcript_response.redacted_results.items[0].redactions #=> Array
|
|
4365
|
+
# resp.transcript_response.redacted_results.items[0].redactions[0].type #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "LICENSE_PLATE", "VEHICLE_IDENTIFICATION_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "SWIFT_CODE", "ALL"
|
|
4366
|
+
#
|
|
4367
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscribeAudio AWS API Documentation
|
|
4368
|
+
#
|
|
4369
|
+
# @overload transcribe_audio(params = {})
|
|
4370
|
+
# @param [Hash] params ({})
|
|
4371
|
+
def transcribe_audio(params = {}, options = {})
|
|
4372
|
+
req = build_request(:transcribe_audio, params)
|
|
4373
|
+
req.send_request(options)
|
|
4374
|
+
end
|
|
4375
|
+
|
|
4137
4376
|
# Removes the specified tags from the specified Amazon Transcribe
|
|
4138
4377
|
# resource.
|
|
4139
4378
|
#
|
|
@@ -4382,7 +4621,8 @@ module Aws::TranscribeService
|
|
|
4382
4621
|
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
4383
4622
|
# Specifies the new encryption configuration for your custom language
|
|
4384
4623
|
# model. The model artifacts are re-encrypted in place using the
|
|
4385
|
-
# specified KMS key or with an
|
|
4624
|
+
# specified KMS key or with an Amazon Web Services owned key if a key is
|
|
4625
|
+
# not supplied.
|
|
4386
4626
|
#
|
|
4387
4627
|
# @return [Types::UpdateLanguageModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4388
4628
|
#
|
|
@@ -4549,9 +4789,9 @@ module Aws::TranscribeService
|
|
|
4549
4789
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
|
4550
4790
|
#
|
|
4551
4791
|
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
4552
|
-
# Specifies the
|
|
4553
|
-
#
|
|
4554
|
-
#
|
|
4792
|
+
# Specifies the encryption configuration for your custom vocabulary.
|
|
4793
|
+
# Your vocabulary artifacts are encrypted with the specified KMS key or
|
|
4794
|
+
# with an Amazon Web Services owned key if a key is not supplied.
|
|
4555
4795
|
#
|
|
4556
4796
|
# @return [Types::UpdateVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4557
4797
|
#
|
|
@@ -4653,10 +4893,10 @@ module Aws::TranscribeService
|
|
|
4653
4893
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
|
4654
4894
|
#
|
|
4655
4895
|
# @option params [Types::EncryptionConfiguration] :encryption_configuration
|
|
4656
|
-
# Specifies the
|
|
4657
|
-
# filter.
|
|
4658
|
-
#
|
|
4659
|
-
# supplied.
|
|
4896
|
+
# Specifies the encryption configuration for your custom vocabulary
|
|
4897
|
+
# filter. Your vocabulary filter artifacts are encrypted with the
|
|
4898
|
+
# specified KMS key or with an Amazon Web Services owned key if a key is
|
|
4899
|
+
# not supplied.
|
|
4660
4900
|
#
|
|
4661
4901
|
# @return [Types::UpdateVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4662
4902
|
#
|
|
@@ -4712,7 +4952,7 @@ module Aws::TranscribeService
|
|
|
4712
4952
|
tracer: tracer
|
|
4713
4953
|
)
|
|
4714
4954
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
|
4715
|
-
context[:gem_version] = '1.
|
|
4955
|
+
context[:gem_version] = '1.159.0'
|
|
4716
4956
|
Seahorse::Client::Request.new(handlers, context)
|
|
4717
4957
|
end
|
|
4718
4958
|
|
|
@@ -16,6 +16,7 @@ module Aws::TranscribeService
|
|
|
16
16
|
|
|
17
17
|
AbsoluteTimeRange = Shapes::StructureShape.new(name: 'AbsoluteTimeRange')
|
|
18
18
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
|
19
|
+
BadRequestExceptionReason = Shapes::StringShape.new(name: 'BadRequestExceptionReason')
|
|
19
20
|
BaseModelName = Shapes::StringShape.new(name: 'BaseModelName')
|
|
20
21
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
21
22
|
CLMLanguageCode = Shapes::StringShape.new(name: 'CLMLanguageCode')
|
|
@@ -64,6 +65,7 @@ module Aws::TranscribeService
|
|
|
64
65
|
DeleteVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyRequest')
|
|
65
66
|
DescribeLanguageModelRequest = Shapes::StructureShape.new(name: 'DescribeLanguageModelRequest')
|
|
66
67
|
DescribeLanguageModelResponse = Shapes::StructureShape.new(name: 'DescribeLanguageModelResponse')
|
|
68
|
+
Double = Shapes::FloatShape.new(name: 'Double')
|
|
67
69
|
DurationInSeconds = Shapes::FloatShape.new(name: 'DurationInSeconds')
|
|
68
70
|
EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
|
|
69
71
|
FailureReason = Shapes::StringShape.new(name: 'FailureReason')
|
|
@@ -88,12 +90,14 @@ module Aws::TranscribeService
|
|
|
88
90
|
InputType = Shapes::StringShape.new(name: 'InputType')
|
|
89
91
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
|
90
92
|
InterruptionFilter = Shapes::StructureShape.new(name: 'InterruptionFilter')
|
|
93
|
+
ItemId = Shapes::IntegerShape.new(name: 'ItemId')
|
|
91
94
|
JobExecutionSettings = Shapes::StructureShape.new(name: 'JobExecutionSettings')
|
|
92
95
|
KMSEncryptionContextMap = Shapes::MapShape.new(name: 'KMSEncryptionContextMap')
|
|
93
96
|
KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
|
|
94
97
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
|
95
98
|
LanguageCodeItem = Shapes::StructureShape.new(name: 'LanguageCodeItem')
|
|
96
99
|
LanguageCodeList = Shapes::ListShape.new(name: 'LanguageCodeList')
|
|
100
|
+
LanguageDetectionMode = Shapes::StringShape.new(name: 'LanguageDetectionMode')
|
|
97
101
|
LanguageIdSettings = Shapes::StructureShape.new(name: 'LanguageIdSettings')
|
|
98
102
|
LanguageIdSettingsMap = Shapes::MapShape.new(name: 'LanguageIdSettingsMap')
|
|
99
103
|
LanguageModel = Shapes::StructureShape.new(name: 'LanguageModel')
|
|
@@ -123,6 +127,7 @@ module Aws::TranscribeService
|
|
|
123
127
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
124
128
|
MaxSpeakers = Shapes::IntegerShape.new(name: 'MaxSpeakers')
|
|
125
129
|
Media = Shapes::StructureShape.new(name: 'Media')
|
|
130
|
+
MediaBytesBlob = Shapes::BlobShape.new(name: 'MediaBytesBlob')
|
|
126
131
|
MediaFormat = Shapes::StringShape.new(name: 'MediaFormat')
|
|
127
132
|
MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
|
|
128
133
|
MedicalContentIdentificationType = Shapes::StringShape.new(name: 'MedicalContentIdentificationType')
|
|
@@ -154,6 +159,8 @@ module Aws::TranscribeService
|
|
|
154
159
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
|
155
160
|
NonTalkTimeFilter = Shapes::StructureShape.new(name: 'NonTalkTimeFilter')
|
|
156
161
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
|
162
|
+
NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
|
|
163
|
+
NumberOfSpeakers = Shapes::IntegerShape.new(name: 'NumberOfSpeakers')
|
|
157
164
|
OutputBucketName = Shapes::StringShape.new(name: 'OutputBucketName')
|
|
158
165
|
OutputKey = Shapes::StringShape.new(name: 'OutputKey')
|
|
159
166
|
OutputLocationType = Shapes::StringShape.new(name: 'OutputLocationType')
|
|
@@ -192,6 +199,17 @@ module Aws::TranscribeService
|
|
|
192
199
|
Subtitles = Shapes::StructureShape.new(name: 'Subtitles')
|
|
193
200
|
SubtitlesOutput = Shapes::StructureShape.new(name: 'SubtitlesOutput')
|
|
194
201
|
Summarization = Shapes::StructureShape.new(name: 'Summarization')
|
|
202
|
+
SyncItem = Shapes::StructureShape.new(name: 'SyncItem')
|
|
203
|
+
SyncItemList = Shapes::ListShape.new(name: 'SyncItemList')
|
|
204
|
+
SyncLanguage = Shapes::StringShape.new(name: 'SyncLanguage')
|
|
205
|
+
SyncLanguageCode = Shapes::StringShape.new(name: 'SyncLanguageCode')
|
|
206
|
+
SyncLanguageCodeItem = Shapes::StructureShape.new(name: 'SyncLanguageCodeItem')
|
|
207
|
+
SyncLanguageCodeList = Shapes::ListShape.new(name: 'SyncLanguageCodeList')
|
|
208
|
+
SyncLanguageOptions = Shapes::ListShape.new(name: 'SyncLanguageOptions')
|
|
209
|
+
SyncMedia = Shapes::UnionShape.new(name: 'SyncMedia')
|
|
210
|
+
SyncOutputConfiguration = Shapes::StructureShape.new(name: 'SyncOutputConfiguration')
|
|
211
|
+
SyncRedaction = Shapes::StructureShape.new(name: 'SyncRedaction')
|
|
212
|
+
SyncRedactionList = Shapes::ListShape.new(name: 'SyncRedactionList')
|
|
195
213
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
|
196
214
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
|
197
215
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
|
@@ -205,9 +223,14 @@ module Aws::TranscribeService
|
|
|
205
223
|
ToxicityDetection = Shapes::ListShape.new(name: 'ToxicityDetection')
|
|
206
224
|
ToxicityDetectionSettings = Shapes::StructureShape.new(name: 'ToxicityDetectionSettings')
|
|
207
225
|
TranscribeArn = Shapes::StringShape.new(name: 'TranscribeArn')
|
|
226
|
+
TranscribeAudioMetadata = Shapes::StructureShape.new(name: 'TranscribeAudioMetadata')
|
|
227
|
+
TranscribeAudioRequest = Shapes::StructureShape.new(name: 'TranscribeAudioRequest')
|
|
228
|
+
TranscribeAudioResponse = Shapes::StructureShape.new(name: 'TranscribeAudioResponse')
|
|
229
|
+
TranscribeAudioResults = Shapes::StructureShape.new(name: 'TranscribeAudioResults')
|
|
208
230
|
Transcript = Shapes::StructureShape.new(name: 'Transcript')
|
|
209
231
|
TranscriptFilter = Shapes::StructureShape.new(name: 'TranscriptFilter')
|
|
210
232
|
TranscriptFilterType = Shapes::StringShape.new(name: 'TranscriptFilterType')
|
|
233
|
+
TranscriptResponse = Shapes::StructureShape.new(name: 'TranscriptResponse')
|
|
211
234
|
TranscriptionJob = Shapes::StructureShape.new(name: 'TranscriptionJob')
|
|
212
235
|
TranscriptionJobName = Shapes::StringShape.new(name: 'TranscriptionJobName')
|
|
213
236
|
TranscriptionJobStatus = Shapes::StringShape.new(name: 'TranscriptionJobStatus')
|
|
@@ -228,13 +251,21 @@ module Aws::TranscribeService
|
|
|
228
251
|
UpdateVocabularyResponse = Shapes::StructureShape.new(name: 'UpdateVocabularyResponse')
|
|
229
252
|
Uri = Shapes::StringShape.new(name: 'Uri')
|
|
230
253
|
Vocabularies = Shapes::ListShape.new(name: 'Vocabularies')
|
|
254
|
+
VocabularyFilterEntry = Shapes::StructureShape.new(name: 'VocabularyFilterEntry')
|
|
255
|
+
VocabularyFilterEntryList = Shapes::ListShape.new(name: 'VocabularyFilterEntryList')
|
|
231
256
|
VocabularyFilterInfo = Shapes::StructureShape.new(name: 'VocabularyFilterInfo')
|
|
232
257
|
VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
|
|
233
258
|
VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
|
|
259
|
+
VocabularyFilterSettings = Shapes::StructureShape.new(name: 'VocabularyFilterSettings')
|
|
234
260
|
VocabularyFilters = Shapes::ListShape.new(name: 'VocabularyFilters')
|
|
235
261
|
VocabularyInfo = Shapes::StructureShape.new(name: 'VocabularyInfo')
|
|
236
262
|
VocabularyName = Shapes::StringShape.new(name: 'VocabularyName')
|
|
263
|
+
VocabularyPhrase = Shapes::StructureShape.new(name: 'VocabularyPhrase')
|
|
264
|
+
VocabularyPhraseList = Shapes::ListShape.new(name: 'VocabularyPhraseList')
|
|
265
|
+
VocabularySettingsEntry = Shapes::StructureShape.new(name: 'VocabularySettingsEntry')
|
|
266
|
+
VocabularySettingsList = Shapes::ListShape.new(name: 'VocabularySettingsList')
|
|
237
267
|
VocabularyState = Shapes::StringShape.new(name: 'VocabularyState')
|
|
268
|
+
VocabularyText = Shapes::StringShape.new(name: 'VocabularyText')
|
|
238
269
|
Word = Shapes::StringShape.new(name: 'Word')
|
|
239
270
|
Words = Shapes::ListShape.new(name: 'Words')
|
|
240
271
|
|
|
@@ -245,6 +276,7 @@ module Aws::TranscribeService
|
|
|
245
276
|
AbsoluteTimeRange.struct_class = Types::AbsoluteTimeRange
|
|
246
277
|
|
|
247
278
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: FailureReason, location_name: "Message"))
|
|
279
|
+
BadRequestException.add_member(:reason, Shapes::ShapeRef.new(shape: BadRequestExceptionReason, location_name: "Reason"))
|
|
248
280
|
BadRequestException.struct_class = Types::BadRequestException
|
|
249
281
|
|
|
250
282
|
CallAnalyticsJob.add_member(:call_analytics_job_name, Shapes::ShapeRef.new(shape: CallAnalyticsJobName, location_name: "CallAnalyticsJobName"))
|
|
@@ -898,6 +930,43 @@ module Aws::TranscribeService
|
|
|
898
930
|
Summarization.add_member(:generate_abstractive_summary, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "GenerateAbstractiveSummary"))
|
|
899
931
|
Summarization.struct_class = Types::Summarization
|
|
900
932
|
|
|
933
|
+
SyncItem.add_member(:id, Shapes::ShapeRef.new(shape: ItemId, location_name: "Id"))
|
|
934
|
+
SyncItem.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
|
935
|
+
SyncItem.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
|
|
936
|
+
SyncItem.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
|
937
|
+
SyncItem.add_member(:language_code, Shapes::ShapeRef.new(shape: SyncLanguageCode, location_name: "LanguageCode"))
|
|
938
|
+
SyncItem.add_member(:channel_label, Shapes::ShapeRef.new(shape: String, location_name: "ChannelLabel"))
|
|
939
|
+
SyncItem.add_member(:speaker_label, Shapes::ShapeRef.new(shape: String, location_name: "SpeakerLabel"))
|
|
940
|
+
SyncItem.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
|
|
941
|
+
SyncItem.add_member(:redactions, Shapes::ShapeRef.new(shape: SyncRedactionList, location_name: "Redactions"))
|
|
942
|
+
SyncItem.struct_class = Types::SyncItem
|
|
943
|
+
|
|
944
|
+
SyncItemList.member = Shapes::ShapeRef.new(shape: SyncItem)
|
|
945
|
+
|
|
946
|
+
SyncLanguageCodeItem.add_member(:language_code, Shapes::ShapeRef.new(shape: SyncLanguageCode, location_name: "LanguageCode"))
|
|
947
|
+
SyncLanguageCodeItem.add_member(:duration_in_seconds, Shapes::ShapeRef.new(shape: DurationInSeconds, location_name: "DurationInSeconds"))
|
|
948
|
+
SyncLanguageCodeItem.struct_class = Types::SyncLanguageCodeItem
|
|
949
|
+
|
|
950
|
+
SyncLanguageCodeList.member = Shapes::ShapeRef.new(shape: SyncLanguageCodeItem)
|
|
951
|
+
|
|
952
|
+
SyncLanguageOptions.member = Shapes::ShapeRef.new(shape: SyncLanguage)
|
|
953
|
+
|
|
954
|
+
SyncMedia.add_member(:media_bytes, Shapes::ShapeRef.new(shape: MediaBytesBlob, location_name: "MediaBytes"))
|
|
955
|
+
SyncMedia.add_member(:media_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "MediaFileUri"))
|
|
956
|
+
SyncMedia.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
957
|
+
SyncMedia.add_member_subclass(:media_bytes, Types::SyncMedia::MediaBytes)
|
|
958
|
+
SyncMedia.add_member_subclass(:media_file_uri, Types::SyncMedia::MediaFileUri)
|
|
959
|
+
SyncMedia.add_member_subclass(:unknown, Types::SyncMedia::Unknown)
|
|
960
|
+
SyncMedia.struct_class = Types::SyncMedia
|
|
961
|
+
|
|
962
|
+
SyncOutputConfiguration.add_member(:output_media_file_uri, Shapes::ShapeRef.new(shape: Uri, required: true, location_name: "OutputMediaFileUri"))
|
|
963
|
+
SyncOutputConfiguration.struct_class = Types::SyncOutputConfiguration
|
|
964
|
+
|
|
965
|
+
SyncRedaction.add_member(:type, Shapes::ShapeRef.new(shape: PiiEntityType, location_name: "Type"))
|
|
966
|
+
SyncRedaction.struct_class = Types::SyncRedaction
|
|
967
|
+
|
|
968
|
+
SyncRedactionList.member = Shapes::ShapeRef.new(shape: SyncRedaction)
|
|
969
|
+
|
|
901
970
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
|
902
971
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
|
903
972
|
Tag.struct_class = Types::Tag
|
|
@@ -919,6 +988,35 @@ module Aws::TranscribeService
|
|
|
919
988
|
ToxicityDetectionSettings.add_member(:toxicity_categories, Shapes::ShapeRef.new(shape: ToxicityCategories, required: true, location_name: "ToxicityCategories"))
|
|
920
989
|
ToxicityDetectionSettings.struct_class = Types::ToxicityDetectionSettings
|
|
921
990
|
|
|
991
|
+
TranscribeAudioMetadata.add_member(:language_code, Shapes::ShapeRef.new(shape: SyncLanguageCode, location_name: "LanguageCode"))
|
|
992
|
+
TranscribeAudioMetadata.add_member(:language_codes, Shapes::ShapeRef.new(shape: SyncLanguageCodeList, location_name: "LanguageCodes"))
|
|
993
|
+
TranscribeAudioMetadata.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat"))
|
|
994
|
+
TranscribeAudioMetadata.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location_name: "MediaSampleRateHertz"))
|
|
995
|
+
TranscribeAudioMetadata.add_member(:speakers_count, Shapes::ShapeRef.new(shape: NumberOfSpeakers, location_name: "SpeakersCount"))
|
|
996
|
+
TranscribeAudioMetadata.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location_name: "NumberOfChannels"))
|
|
997
|
+
TranscribeAudioMetadata.struct_class = Types::TranscribeAudioMetadata
|
|
998
|
+
|
|
999
|
+
TranscribeAudioRequest.add_member(:media, Shapes::ShapeRef.new(shape: SyncMedia, required: true, location_name: "Media"))
|
|
1000
|
+
TranscribeAudioRequest.add_member(:language, Shapes::ShapeRef.new(shape: SyncLanguage, location_name: "Language"))
|
|
1001
|
+
TranscribeAudioRequest.add_member(:language_detection_mode, Shapes::ShapeRef.new(shape: LanguageDetectionMode, location_name: "LanguageDetectionMode"))
|
|
1002
|
+
TranscribeAudioRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: SyncLanguageOptions, location_name: "LanguageOptions"))
|
|
1003
|
+
TranscribeAudioRequest.add_member(:channel_identification, Shapes::ShapeRef.new(shape: Boolean, location_name: "ChannelIdentification"))
|
|
1004
|
+
TranscribeAudioRequest.add_member(:show_speaker_labels, Shapes::ShapeRef.new(shape: Boolean, location_name: "ShowSpeakerLabels"))
|
|
1005
|
+
TranscribeAudioRequest.add_member(:max_speaker_labels, Shapes::ShapeRef.new(shape: MaxSpeakers, location_name: "MaxSpeakerLabels"))
|
|
1006
|
+
TranscribeAudioRequest.add_member(:vocabulary_settings, Shapes::ShapeRef.new(shape: VocabularySettingsList, location_name: "VocabularySettings"))
|
|
1007
|
+
TranscribeAudioRequest.add_member(:vocabulary_filter_settings, Shapes::ShapeRef.new(shape: VocabularyFilterSettings, location_name: "VocabularyFilterSettings"))
|
|
1008
|
+
TranscribeAudioRequest.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
|
|
1009
|
+
TranscribeAudioRequest.add_member(:output_configuration, Shapes::ShapeRef.new(shape: SyncOutputConfiguration, location_name: "OutputConfiguration"))
|
|
1010
|
+
TranscribeAudioRequest.struct_class = Types::TranscribeAudioRequest
|
|
1011
|
+
|
|
1012
|
+
TranscribeAudioResponse.add_member(:output_configuration, Shapes::ShapeRef.new(shape: SyncOutputConfiguration, location_name: "OutputConfiguration"))
|
|
1013
|
+
TranscribeAudioResponse.add_member(:transcript_response, Shapes::ShapeRef.new(shape: TranscriptResponse, location_name: "TranscriptResponse"))
|
|
1014
|
+
TranscribeAudioResponse.struct_class = Types::TranscribeAudioResponse
|
|
1015
|
+
|
|
1016
|
+
TranscribeAudioResults.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
|
|
1017
|
+
TranscribeAudioResults.add_member(:items, Shapes::ShapeRef.new(shape: SyncItemList, location_name: "Items"))
|
|
1018
|
+
TranscribeAudioResults.struct_class = Types::TranscribeAudioResults
|
|
1019
|
+
|
|
922
1020
|
Transcript.add_member(:transcript_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "TranscriptFileUri"))
|
|
923
1021
|
Transcript.add_member(:redacted_transcript_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "RedactedTranscriptFileUri"))
|
|
924
1022
|
Transcript.struct_class = Types::Transcript
|
|
@@ -931,6 +1029,11 @@ module Aws::TranscribeService
|
|
|
931
1029
|
TranscriptFilter.add_member(:targets, Shapes::ShapeRef.new(shape: StringTargetList, required: true, location_name: "Targets"))
|
|
932
1030
|
TranscriptFilter.struct_class = Types::TranscriptFilter
|
|
933
1031
|
|
|
1032
|
+
TranscriptResponse.add_member(:metadata, Shapes::ShapeRef.new(shape: TranscribeAudioMetadata, location_name: "Metadata"))
|
|
1033
|
+
TranscriptResponse.add_member(:results, Shapes::ShapeRef.new(shape: TranscribeAudioResults, location_name: "Results"))
|
|
1034
|
+
TranscriptResponse.add_member(:redacted_results, Shapes::ShapeRef.new(shape: TranscribeAudioResults, location_name: "RedactedResults"))
|
|
1035
|
+
TranscriptResponse.struct_class = Types::TranscriptResponse
|
|
1036
|
+
|
|
934
1037
|
TranscriptionJob.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "TranscriptionJobName"))
|
|
935
1038
|
TranscriptionJob.add_member(:transcription_job_status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "TranscriptionJobStatus"))
|
|
936
1039
|
TranscriptionJob.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
|
@@ -1039,11 +1142,22 @@ module Aws::TranscribeService
|
|
|
1039
1142
|
|
|
1040
1143
|
Vocabularies.member = Shapes::ShapeRef.new(shape: VocabularyInfo)
|
|
1041
1144
|
|
|
1145
|
+
VocabularyFilterEntry.add_member(:language, Shapes::ShapeRef.new(shape: SyncLanguage, required: true, location_name: "Language"))
|
|
1146
|
+
VocabularyFilterEntry.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
|
1147
|
+
VocabularyFilterEntry.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
|
|
1148
|
+
VocabularyFilterEntry.struct_class = Types::VocabularyFilterEntry
|
|
1149
|
+
|
|
1150
|
+
VocabularyFilterEntryList.member = Shapes::ShapeRef.new(shape: VocabularyFilterEntry)
|
|
1151
|
+
|
|
1042
1152
|
VocabularyFilterInfo.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
|
1043
1153
|
VocabularyFilterInfo.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
|
1044
1154
|
VocabularyFilterInfo.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
|
|
1045
1155
|
VocabularyFilterInfo.struct_class = Types::VocabularyFilterInfo
|
|
1046
1156
|
|
|
1157
|
+
VocabularyFilterSettings.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, required: true, location_name: "VocabularyFilterMethod"))
|
|
1158
|
+
VocabularyFilterSettings.add_member(:filters, Shapes::ShapeRef.new(shape: VocabularyFilterEntryList, required: true, location_name: "Filters"))
|
|
1159
|
+
VocabularyFilterSettings.struct_class = Types::VocabularyFilterSettings
|
|
1160
|
+
|
|
1047
1161
|
VocabularyFilters.member = Shapes::ShapeRef.new(shape: VocabularyFilterInfo)
|
|
1048
1162
|
|
|
1049
1163
|
VocabularyInfo.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
|
@@ -1052,6 +1166,19 @@ module Aws::TranscribeService
|
|
|
1052
1166
|
VocabularyInfo.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState"))
|
|
1053
1167
|
VocabularyInfo.struct_class = Types::VocabularyInfo
|
|
1054
1168
|
|
|
1169
|
+
VocabularyPhrase.add_member(:text, Shapes::ShapeRef.new(shape: VocabularyText, required: true, location_name: "Text"))
|
|
1170
|
+
VocabularyPhrase.add_member(:display_as, Shapes::ShapeRef.new(shape: VocabularyText, location_name: "DisplayAs"))
|
|
1171
|
+
VocabularyPhrase.struct_class = Types::VocabularyPhrase
|
|
1172
|
+
|
|
1173
|
+
VocabularyPhraseList.member = Shapes::ShapeRef.new(shape: VocabularyPhrase)
|
|
1174
|
+
|
|
1175
|
+
VocabularySettingsEntry.add_member(:language, Shapes::ShapeRef.new(shape: SyncLanguage, required: true, location_name: "Language"))
|
|
1176
|
+
VocabularySettingsEntry.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
|
1177
|
+
VocabularySettingsEntry.add_member(:phrases, Shapes::ShapeRef.new(shape: VocabularyPhraseList, location_name: "Phrases"))
|
|
1178
|
+
VocabularySettingsEntry.struct_class = Types::VocabularySettingsEntry
|
|
1179
|
+
|
|
1180
|
+
VocabularySettingsList.member = Shapes::ShapeRef.new(shape: VocabularySettingsEntry)
|
|
1181
|
+
|
|
1055
1182
|
Words.member = Shapes::ShapeRef.new(shape: Word)
|
|
1056
1183
|
|
|
1057
1184
|
|
|
@@ -1572,6 +1699,17 @@ module Aws::TranscribeService
|
|
|
1572
1699
|
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
|
1573
1700
|
end)
|
|
1574
1701
|
|
|
1702
|
+
api.add_operation(:transcribe_audio, Seahorse::Model::Operation.new.tap do |o|
|
|
1703
|
+
o.name = "TranscribeAudio"
|
|
1704
|
+
o.http_method = "POST"
|
|
1705
|
+
o.http_request_uri = "/"
|
|
1706
|
+
o.input = Shapes::ShapeRef.new(shape: TranscribeAudioRequest)
|
|
1707
|
+
o.output = Shapes::ShapeRef.new(shape: TranscribeAudioResponse)
|
|
1708
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
|
1709
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
|
1710
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
|
1711
|
+
end)
|
|
1712
|
+
|
|
1575
1713
|
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
1576
1714
|
o.name = "UntagResource"
|
|
1577
1715
|
o.http_method = "POST"
|