aws-sdk-transcribeservice 1.43.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-transcribeservice.rb +6 -3
- data/lib/aws-sdk-transcribeservice/client.rb +347 -94
- data/lib/aws-sdk-transcribeservice/client_api.rb +137 -1
- data/lib/aws-sdk-transcribeservice/errors.rb +2 -0
- data/lib/aws-sdk-transcribeservice/resource.rb +2 -0
- data/lib/aws-sdk-transcribeservice/types.rb +563 -101
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e572b77dae237bd045617db948366bfe9281a03ed90f68da5f77430d228bc7f8
|
4
|
+
data.tar.gz: 0d5dc69de78f098d99d79aacb93152db6f1caac77fdf1fbf2a2ebba06cb0cda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9d95a6094fb5277416a62aa6a33541f4ba79b91b198a8db30d8983f2de2805bf7190d79e6830f3a5218b18b29cb5143a29e3bb4642481d87eb1709ab990b616
|
7
|
+
data.tar.gz: 3ef4184dfb70942e5d402a3a4090db2a4db17f265772afb62296f7e6a5ca86184c064836f596dd0e9f69ae5b43e97e12c857c4d651184fd68f1dae37a88a94b9
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -5,6 +7,7 @@
|
|
5
7
|
#
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
10
|
+
|
8
11
|
require 'aws-sdk-core'
|
9
12
|
require 'aws-sigv4'
|
10
13
|
|
@@ -25,7 +28,7 @@ require_relative 'aws-sdk-transcribeservice/customizations'
|
|
25
28
|
# structure.
|
26
29
|
#
|
27
30
|
# transcribe_service = Aws::TranscribeService::Client.new
|
28
|
-
# resp = transcribe_service.
|
31
|
+
# resp = transcribe_service.create_language_model(params)
|
29
32
|
#
|
30
33
|
# See {Client} for more information.
|
31
34
|
#
|
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-transcribeservice/customizations'
|
|
42
45
|
#
|
43
46
|
# See {Errors} for more information.
|
44
47
|
#
|
45
|
-
#
|
48
|
+
# @!group service
|
46
49
|
module Aws::TranscribeService
|
47
50
|
|
48
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.48.0'
|
49
52
|
|
50
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::TranscribeService
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
74
78
|
|
@@ -81,13 +85,28 @@ module Aws::TranscribeService
|
|
81
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
82
86
|
# credentials.
|
83
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
|
+
#
|
84
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
85
103
|
# from an EC2 IMDS on an EC2 instance.
|
86
104
|
#
|
87
|
-
# * `Aws::
|
88
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
89
107
|
#
|
90
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
91
110
|
#
|
92
111
|
# When `:credentials` are not configured directly, the following
|
93
112
|
# locations will be searched for credentials:
|
@@ -97,10 +116,10 @@ module Aws::TranscribeService
|
|
97
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
98
117
|
# * `~/.aws/credentials`
|
99
118
|
# * `~/.aws/config`
|
100
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
101
|
-
# very aggressive. Construct and pass an instance of
|
102
|
-
# `Aws::InstanceProfileCredentails`
|
103
|
-
# 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.
|
104
123
|
#
|
105
124
|
# @option options [required, String] :region
|
106
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -161,7 +180,7 @@ module Aws::TranscribeService
|
|
161
180
|
# @option options [String] :endpoint
|
162
181
|
# The client endpoint is normally constructed from the `:region`
|
163
182
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
183
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
184
|
#
|
166
185
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
186
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -318,37 +337,103 @@ module Aws::TranscribeService
|
|
318
337
|
|
319
338
|
# @!group API Operations
|
320
339
|
|
340
|
+
# Creates a new custom language model. Use Amazon S3 prefixes to provide
|
341
|
+
# the location of your input files. The time it takes to create your
|
342
|
+
# model depends on the size of your training data.
|
343
|
+
#
|
344
|
+
# @option params [required, String] :language_code
|
345
|
+
# The language of the input text you're using to train your custom
|
346
|
+
# language model.
|
347
|
+
#
|
348
|
+
# @option params [required, String] :base_model_name
|
349
|
+
# The Amazon Transcribe standard language model, or base model used to
|
350
|
+
# create your custom language model.
|
351
|
+
#
|
352
|
+
# If you want to use your custom language model to transcribe audio with
|
353
|
+
# a sample rate of 16 kHz or greater, choose `Wideband`.
|
354
|
+
#
|
355
|
+
# If you want to use your custom language model to transcribe audio with
|
356
|
+
# a sample rate that is less than 16 kHz, choose `Narrowband`.
|
357
|
+
#
|
358
|
+
# @option params [required, String] :model_name
|
359
|
+
# The name you choose for your custom language model when you create it.
|
360
|
+
#
|
361
|
+
# @option params [required, Types::InputDataConfig] :input_data_config
|
362
|
+
# Contains the data access role and the Amazon S3 prefixes to read the
|
363
|
+
# required input files to create a custom language model.
|
364
|
+
#
|
365
|
+
# @return [Types::CreateLanguageModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
366
|
+
#
|
367
|
+
# * {Types::CreateLanguageModelResponse#language_code #language_code} => String
|
368
|
+
# * {Types::CreateLanguageModelResponse#base_model_name #base_model_name} => String
|
369
|
+
# * {Types::CreateLanguageModelResponse#model_name #model_name} => String
|
370
|
+
# * {Types::CreateLanguageModelResponse#input_data_config #input_data_config} => Types::InputDataConfig
|
371
|
+
# * {Types::CreateLanguageModelResponse#model_status #model_status} => String
|
372
|
+
#
|
373
|
+
# @example Request syntax with placeholder values
|
374
|
+
#
|
375
|
+
# resp = client.create_language_model({
|
376
|
+
# language_code: "en-US", # required, accepts en-US
|
377
|
+
# base_model_name: "NarrowBand", # required, accepts NarrowBand, WideBand
|
378
|
+
# model_name: "ModelName", # required
|
379
|
+
# input_data_config: { # required
|
380
|
+
# s3_uri: "Uri", # required
|
381
|
+
# tuning_data_s3_uri: "Uri",
|
382
|
+
# data_access_role_arn: "DataAccessRoleArn", # required
|
383
|
+
# },
|
384
|
+
# })
|
385
|
+
#
|
386
|
+
# @example Response structure
|
387
|
+
#
|
388
|
+
# resp.language_code #=> String, one of "en-US"
|
389
|
+
# resp.base_model_name #=> String, one of "NarrowBand", "WideBand"
|
390
|
+
# resp.model_name #=> String
|
391
|
+
# resp.input_data_config.s3_uri #=> String
|
392
|
+
# resp.input_data_config.tuning_data_s3_uri #=> String
|
393
|
+
# resp.input_data_config.data_access_role_arn #=> String
|
394
|
+
# resp.model_status #=> String, one of "IN_PROGRESS", "FAILED", "COMPLETED"
|
395
|
+
#
|
396
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModel AWS API Documentation
|
397
|
+
#
|
398
|
+
# @overload create_language_model(params = {})
|
399
|
+
# @param [Hash] params ({})
|
400
|
+
def create_language_model(params = {}, options = {})
|
401
|
+
req = build_request(:create_language_model, params)
|
402
|
+
req.send_request(options)
|
403
|
+
end
|
404
|
+
|
321
405
|
# Creates a new custom vocabulary that you can use to change how Amazon
|
322
406
|
# Transcribe Medical transcribes your audio file.
|
323
407
|
#
|
324
408
|
# @option params [required, String] :vocabulary_name
|
325
409
|
# The name of the custom vocabulary. This case-sensitive name must be
|
326
410
|
# unique within an AWS account. If you try to create a vocabulary with
|
327
|
-
# the same name as a previous vocabulary you
|
328
|
-
#
|
411
|
+
# the same name as a previous vocabulary, you get a `ConflictException`
|
412
|
+
# error.
|
329
413
|
#
|
330
414
|
# @option params [required, String] :language_code
|
331
|
-
# The language code used for the entries
|
332
|
-
# The language code of your custom vocabulary must match the
|
333
|
-
# code of your transcription job. US English (en-US) is the
|
334
|
-
# language code available for Amazon Transcribe Medical.
|
415
|
+
# The language code for the language used for the entries in your custom
|
416
|
+
# vocabulary. The language code of your custom vocabulary must match the
|
417
|
+
# language code of your transcription job. US English (en-US) is the
|
418
|
+
# only language code available for Amazon Transcribe Medical.
|
335
419
|
#
|
336
420
|
# @option params [required, String] :vocabulary_file_uri
|
337
|
-
# The Amazon S3
|
338
|
-
# vocabulary. The URI must be in the same AWS
|
339
|
-
# you're calling. Enter information about your
|
340
|
-
# the following format:
|
421
|
+
# The location in Amazon S3 of the text file you use to define your
|
422
|
+
# custom vocabulary. The URI must be in the same AWS Region as the
|
423
|
+
# resource that you're calling. Enter information about your
|
424
|
+
# `VocabularyFileUri` in the following format:
|
341
425
|
#
|
342
426
|
# `
|
343
427
|
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
344
428
|
# `
|
345
429
|
#
|
346
|
-
#
|
430
|
+
# The following is an example URI for a vocabulary file that is stored
|
431
|
+
# in Amazon S3:
|
347
432
|
#
|
348
433
|
# `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
|
349
434
|
#
|
350
|
-
# For more information about S3 object names, see [Object
|
351
|
-
# the *Amazon S3 Developer Guide*.
|
435
|
+
# For more information about Amazon S3 object names, see [Object
|
436
|
+
# Keys][1] in the *Amazon S3 Developer Guide*.
|
352
437
|
#
|
353
438
|
# For more information about custom vocabularies, see [Medical Custom
|
354
439
|
# Vocabularies][2].
|
@@ -370,14 +455,14 @@ module Aws::TranscribeService
|
|
370
455
|
#
|
371
456
|
# resp = client.create_medical_vocabulary({
|
372
457
|
# vocabulary_name: "VocabularyName", # required
|
373
|
-
# language_code: "
|
458
|
+
# 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
|
374
459
|
# vocabulary_file_uri: "Uri", # required
|
375
460
|
# })
|
376
461
|
#
|
377
462
|
# @example Response structure
|
378
463
|
#
|
379
464
|
# resp.vocabulary_name #=> String
|
380
|
-
# resp.language_code #=> String, one of "
|
465
|
+
# resp.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"
|
381
466
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
382
467
|
# resp.last_modified_time #=> Time
|
383
468
|
# resp.failure_reason #=> String
|
@@ -396,7 +481,7 @@ module Aws::TranscribeService
|
|
396
481
|
#
|
397
482
|
# @option params [required, String] :vocabulary_name
|
398
483
|
# The name of the vocabulary. The name must be unique within an AWS
|
399
|
-
# account. The name is case
|
484
|
+
# account. The name is case sensitive. If you try to create a vocabulary
|
400
485
|
# with the same name as a previous vocabulary you will receive a
|
401
486
|
# `ConflictException` error.
|
402
487
|
#
|
@@ -434,7 +519,7 @@ module Aws::TranscribeService
|
|
434
519
|
#
|
435
520
|
# resp = client.create_vocabulary({
|
436
521
|
# vocabulary_name: "VocabularyName", # required
|
437
|
-
# language_code: "
|
522
|
+
# 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
|
438
523
|
# phrases: ["Phrase"],
|
439
524
|
# vocabulary_file_uri: "Uri",
|
440
525
|
# })
|
@@ -442,7 +527,7 @@ module Aws::TranscribeService
|
|
442
527
|
# @example Response structure
|
443
528
|
#
|
444
529
|
# resp.vocabulary_name #=> String
|
445
|
-
# resp.language_code #=> String, one of "
|
530
|
+
# resp.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"
|
446
531
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
447
532
|
# resp.last_modified_time #=> Time
|
448
533
|
# resp.failure_reason #=> String
|
@@ -461,9 +546,9 @@ module Aws::TranscribeService
|
|
461
546
|
#
|
462
547
|
# @option params [required, String] :vocabulary_filter_name
|
463
548
|
# The vocabulary filter name. The name must be unique within the account
|
464
|
-
# that contains it.If you try to create a vocabulary filter with the
|
465
|
-
# same name as
|
466
|
-
#
|
549
|
+
# that contains it. If you try to create a vocabulary filter with the
|
550
|
+
# same name as another vocabulary filter, you get a `ConflictException`
|
551
|
+
# error.
|
467
552
|
#
|
468
553
|
# @option params [required, String] :language_code
|
469
554
|
# The language code of the words in the vocabulary filter. All words in
|
@@ -508,7 +593,7 @@ module Aws::TranscribeService
|
|
508
593
|
#
|
509
594
|
# resp = client.create_vocabulary_filter({
|
510
595
|
# vocabulary_filter_name: "VocabularyFilterName", # required
|
511
|
-
# language_code: "
|
596
|
+
# 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
|
512
597
|
# words: ["Word"],
|
513
598
|
# vocabulary_filter_file_uri: "Uri",
|
514
599
|
# })
|
@@ -516,7 +601,7 @@ module Aws::TranscribeService
|
|
516
601
|
# @example Response structure
|
517
602
|
#
|
518
603
|
# resp.vocabulary_filter_name #=> String
|
519
|
-
# resp.language_code #=> String, one of "
|
604
|
+
# resp.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"
|
520
605
|
# resp.last_modified_time #=> Time
|
521
606
|
#
|
522
607
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter AWS API Documentation
|
@@ -528,6 +613,28 @@ module Aws::TranscribeService
|
|
528
613
|
req.send_request(options)
|
529
614
|
end
|
530
615
|
|
616
|
+
# Deletes a custom language model using its name.
|
617
|
+
#
|
618
|
+
# @option params [required, String] :model_name
|
619
|
+
# The name of the model you're choosing to delete.
|
620
|
+
#
|
621
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
622
|
+
#
|
623
|
+
# @example Request syntax with placeholder values
|
624
|
+
#
|
625
|
+
# resp = client.delete_language_model({
|
626
|
+
# model_name: "ModelName", # required
|
627
|
+
# })
|
628
|
+
#
|
629
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModel AWS API Documentation
|
630
|
+
#
|
631
|
+
# @overload delete_language_model(params = {})
|
632
|
+
# @param [Hash] params ({})
|
633
|
+
def delete_language_model(params = {}, options = {})
|
634
|
+
req = build_request(:delete_language_model, params)
|
635
|
+
req.send_request(options)
|
636
|
+
end
|
637
|
+
|
531
638
|
# Deletes a transcription job generated by Amazon Transcribe Medical and
|
532
639
|
# any related information.
|
533
640
|
#
|
@@ -555,7 +662,7 @@ module Aws::TranscribeService
|
|
555
662
|
# Deletes a vocabulary from Amazon Transcribe Medical.
|
556
663
|
#
|
557
664
|
# @option params [required, String] :vocabulary_name
|
558
|
-
# The name of the vocabulary you
|
665
|
+
# The name of the vocabulary that you want to delete.
|
559
666
|
#
|
560
667
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
561
668
|
#
|
@@ -641,6 +748,52 @@ module Aws::TranscribeService
|
|
641
748
|
req.send_request(options)
|
642
749
|
end
|
643
750
|
|
751
|
+
# Gets information about a single custom language model. Use this
|
752
|
+
# information to see details about the language model in your AWS
|
753
|
+
# account. You can also see whether the base language model used to
|
754
|
+
# create your custom language model has been updated. If Amazon
|
755
|
+
# Transcribe has updated the base model, you can create a new custom
|
756
|
+
# language model using the updated base model. If the language model
|
757
|
+
# wasn't created, you can use this operation to understand why Amazon
|
758
|
+
# Transcribe couldn't create it.
|
759
|
+
#
|
760
|
+
# @option params [required, String] :model_name
|
761
|
+
# The name of the custom language model you submit to get more
|
762
|
+
# information.
|
763
|
+
#
|
764
|
+
# @return [Types::DescribeLanguageModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
765
|
+
#
|
766
|
+
# * {Types::DescribeLanguageModelResponse#language_model #language_model} => Types::LanguageModel
|
767
|
+
#
|
768
|
+
# @example Request syntax with placeholder values
|
769
|
+
#
|
770
|
+
# resp = client.describe_language_model({
|
771
|
+
# model_name: "ModelName", # required
|
772
|
+
# })
|
773
|
+
#
|
774
|
+
# @example Response structure
|
775
|
+
#
|
776
|
+
# resp.language_model.model_name #=> String
|
777
|
+
# resp.language_model.create_time #=> Time
|
778
|
+
# resp.language_model.last_modified_time #=> Time
|
779
|
+
# resp.language_model.language_code #=> String, one of "en-US"
|
780
|
+
# resp.language_model.base_model_name #=> String, one of "NarrowBand", "WideBand"
|
781
|
+
# resp.language_model.model_status #=> String, one of "IN_PROGRESS", "FAILED", "COMPLETED"
|
782
|
+
# resp.language_model.upgrade_availability #=> Boolean
|
783
|
+
# resp.language_model.failure_reason #=> String
|
784
|
+
# resp.language_model.input_data_config.s3_uri #=> String
|
785
|
+
# resp.language_model.input_data_config.tuning_data_s3_uri #=> String
|
786
|
+
# resp.language_model.input_data_config.data_access_role_arn #=> String
|
787
|
+
#
|
788
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel AWS API Documentation
|
789
|
+
#
|
790
|
+
# @overload describe_language_model(params = {})
|
791
|
+
# @param [Hash] params ({})
|
792
|
+
def describe_language_model(params = {}, options = {})
|
793
|
+
req = build_request(:describe_language_model, params)
|
794
|
+
req.send_request(options)
|
795
|
+
end
|
796
|
+
|
644
797
|
# Returns information about a transcription job from Amazon Transcribe
|
645
798
|
# Medical. To see the status of the job, check the
|
646
799
|
# `TranscriptionJobStatus` field. If the status is `COMPLETED`, the job
|
@@ -664,7 +817,7 @@ module Aws::TranscribeService
|
|
664
817
|
#
|
665
818
|
# resp.medical_transcription_job.medical_transcription_job_name #=> String
|
666
819
|
# resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
667
|
-
# resp.medical_transcription_job.language_code #=> String, one of "
|
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"
|
668
821
|
# resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
|
669
822
|
# resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
670
823
|
# resp.medical_transcription_job.media.media_file_uri #=> String
|
@@ -691,11 +844,11 @@ module Aws::TranscribeService
|
|
691
844
|
req.send_request(options)
|
692
845
|
end
|
693
846
|
|
694
|
-
#
|
847
|
+
# Retrieves information about a medical vocabulary.
|
695
848
|
#
|
696
849
|
# @option params [required, String] :vocabulary_name
|
697
|
-
# The name of the vocabulary you
|
698
|
-
#
|
850
|
+
# The name of the vocabulary that you want information about. The value
|
851
|
+
# is case sensitive.
|
699
852
|
#
|
700
853
|
# @return [Types::GetMedicalVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
701
854
|
#
|
@@ -715,7 +868,7 @@ module Aws::TranscribeService
|
|
715
868
|
# @example Response structure
|
716
869
|
#
|
717
870
|
# resp.vocabulary_name #=> String
|
718
|
-
# resp.language_code #=> String, one of "
|
871
|
+
# resp.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"
|
719
872
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
720
873
|
# resp.last_modified_time #=> Time
|
721
874
|
# resp.failure_reason #=> String
|
@@ -754,7 +907,7 @@ module Aws::TranscribeService
|
|
754
907
|
#
|
755
908
|
# resp.transcription_job.transcription_job_name #=> String
|
756
909
|
# resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
757
|
-
# resp.transcription_job.language_code #=> String, one of "
|
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"
|
758
911
|
# resp.transcription_job.media_sample_rate_hertz #=> Integer
|
759
912
|
# resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
760
913
|
# resp.transcription_job.media.media_file_uri #=> String
|
@@ -772,10 +925,15 @@ module Aws::TranscribeService
|
|
772
925
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
773
926
|
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
774
927
|
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
928
|
+
# resp.transcription_job.model_settings.language_model_name #=> String
|
775
929
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
776
930
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
777
931
|
# resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
|
778
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
|
779
937
|
#
|
780
938
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob AWS API Documentation
|
781
939
|
#
|
@@ -790,7 +948,7 @@ module Aws::TranscribeService
|
|
790
948
|
#
|
791
949
|
# @option params [required, String] :vocabulary_name
|
792
950
|
# The name of the vocabulary to return information about. The name is
|
793
|
-
# case
|
951
|
+
# case sensitive.
|
794
952
|
#
|
795
953
|
# @return [Types::GetVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
796
954
|
#
|
@@ -810,7 +968,7 @@ module Aws::TranscribeService
|
|
810
968
|
# @example Response structure
|
811
969
|
#
|
812
970
|
# resp.vocabulary_name #=> String
|
813
|
-
# resp.language_code #=> String, one of "
|
971
|
+
# resp.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"
|
814
972
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
815
973
|
# resp.last_modified_time #=> Time
|
816
974
|
# resp.failure_reason #=> String
|
@@ -846,7 +1004,7 @@ module Aws::TranscribeService
|
|
846
1004
|
# @example Response structure
|
847
1005
|
#
|
848
1006
|
# resp.vocabulary_filter_name #=> String
|
849
|
-
# resp.language_code #=> String, one of "
|
1007
|
+
# resp.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"
|
850
1008
|
# resp.last_modified_time #=> Time
|
851
1009
|
# resp.download_uri #=> String
|
852
1010
|
#
|
@@ -859,6 +1017,71 @@ module Aws::TranscribeService
|
|
859
1017
|
req.send_request(options)
|
860
1018
|
end
|
861
1019
|
|
1020
|
+
# Provides more information about the custom language models you've
|
1021
|
+
# created. You can use the information in this list to find a specific
|
1022
|
+
# custom language model. You can then use the operation to get more
|
1023
|
+
# information about it.
|
1024
|
+
#
|
1025
|
+
# @option params [String] :status_equals
|
1026
|
+
# When specified, returns only custom language models with the specified
|
1027
|
+
# status. Language models are ordered by creation date, with the newest
|
1028
|
+
# models first. If you don't specify a status, Amazon Transcribe
|
1029
|
+
# returns all custom language models ordered by date.
|
1030
|
+
#
|
1031
|
+
# @option params [String] :name_contains
|
1032
|
+
# When specified, the custom language model names returned contain the
|
1033
|
+
# substring you've specified.
|
1034
|
+
#
|
1035
|
+
# @option params [String] :next_token
|
1036
|
+
# When included, fetches the next set of jobs if the result of the
|
1037
|
+
# previous request was truncated.
|
1038
|
+
#
|
1039
|
+
# @option params [Integer] :max_results
|
1040
|
+
# The maximum number of language models to return in the response. If
|
1041
|
+
# there are fewer results in the list, the response contains only the
|
1042
|
+
# actual results.
|
1043
|
+
#
|
1044
|
+
# @return [Types::ListLanguageModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1045
|
+
#
|
1046
|
+
# * {Types::ListLanguageModelsResponse#next_token #next_token} => String
|
1047
|
+
# * {Types::ListLanguageModelsResponse#models #models} => Array<Types::LanguageModel>
|
1048
|
+
#
|
1049
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1050
|
+
#
|
1051
|
+
# @example Request syntax with placeholder values
|
1052
|
+
#
|
1053
|
+
# resp = client.list_language_models({
|
1054
|
+
# status_equals: "IN_PROGRESS", # accepts IN_PROGRESS, FAILED, COMPLETED
|
1055
|
+
# name_contains: "ModelName",
|
1056
|
+
# next_token: "NextToken",
|
1057
|
+
# max_results: 1,
|
1058
|
+
# })
|
1059
|
+
#
|
1060
|
+
# @example Response structure
|
1061
|
+
#
|
1062
|
+
# resp.next_token #=> String
|
1063
|
+
# resp.models #=> Array
|
1064
|
+
# resp.models[0].model_name #=> String
|
1065
|
+
# resp.models[0].create_time #=> Time
|
1066
|
+
# resp.models[0].last_modified_time #=> Time
|
1067
|
+
# resp.models[0].language_code #=> String, one of "en-US"
|
1068
|
+
# resp.models[0].base_model_name #=> String, one of "NarrowBand", "WideBand"
|
1069
|
+
# resp.models[0].model_status #=> String, one of "IN_PROGRESS", "FAILED", "COMPLETED"
|
1070
|
+
# resp.models[0].upgrade_availability #=> Boolean
|
1071
|
+
# resp.models[0].failure_reason #=> String
|
1072
|
+
# resp.models[0].input_data_config.s3_uri #=> String
|
1073
|
+
# resp.models[0].input_data_config.tuning_data_s3_uri #=> String
|
1074
|
+
# resp.models[0].input_data_config.data_access_role_arn #=> String
|
1075
|
+
#
|
1076
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModels AWS API Documentation
|
1077
|
+
#
|
1078
|
+
# @overload list_language_models(params = {})
|
1079
|
+
# @param [Hash] params ({})
|
1080
|
+
def list_language_models(params = {}, options = {})
|
1081
|
+
req = build_request(:list_language_models, params)
|
1082
|
+
req.send_request(options)
|
1083
|
+
end
|
1084
|
+
|
862
1085
|
# Lists medical transcription jobs with a specified status or substring
|
863
1086
|
# that matches their names.
|
864
1087
|
#
|
@@ -908,7 +1131,7 @@ module Aws::TranscribeService
|
|
908
1131
|
# resp.medical_transcription_job_summaries[0].creation_time #=> Time
|
909
1132
|
# resp.medical_transcription_job_summaries[0].start_time #=> Time
|
910
1133
|
# resp.medical_transcription_job_summaries[0].completion_time #=> Time
|
911
|
-
# resp.medical_transcription_job_summaries[0].language_code #=> String, one of "
|
1134
|
+
# resp.medical_transcription_job_summaries[0].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"
|
912
1135
|
# resp.medical_transcription_job_summaries[0].transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
913
1136
|
# resp.medical_transcription_job_summaries[0].failure_reason #=> String
|
914
1137
|
# resp.medical_transcription_job_summaries[0].output_location_type #=> String, one of "CUSTOMER_BUCKET", "SERVICE_BUCKET"
|
@@ -924,26 +1147,27 @@ module Aws::TranscribeService
|
|
924
1147
|
req.send_request(options)
|
925
1148
|
end
|
926
1149
|
|
927
|
-
# Returns a list of vocabularies that match the specified criteria.
|
928
|
-
#
|
929
|
-
#
|
1150
|
+
# Returns a list of vocabularies that match the specified criteria. If
|
1151
|
+
# you don't enter a value in any of the request parameters, returns the
|
1152
|
+
# entire list of vocabularies.
|
930
1153
|
#
|
931
1154
|
# @option params [String] :next_token
|
932
1155
|
# If the result of your previous request to `ListMedicalVocabularies`
|
933
|
-
# was truncated, include the `NextToken` to fetch the next set of
|
1156
|
+
# was truncated, include the `NextToken` to fetch the next set of
|
1157
|
+
# vocabularies.
|
934
1158
|
#
|
935
1159
|
# @option params [Integer] :max_results
|
936
1160
|
# The maximum number of vocabularies to return in the response.
|
937
1161
|
#
|
938
1162
|
# @option params [String] :state_equals
|
939
|
-
# When specified, only
|
940
|
-
# equal to the specified vocabulary state.
|
1163
|
+
# When specified, returns only vocabularies with the `VocabularyState`
|
1164
|
+
# equal to the specified vocabulary state. Use this field to see which
|
1165
|
+
# vocabularies are ready for your medical transcription jobs.
|
941
1166
|
#
|
942
1167
|
# @option params [String] :name_contains
|
943
|
-
# Returns vocabularies
|
944
|
-
#
|
945
|
-
#
|
946
|
-
# list.
|
1168
|
+
# Returns vocabularies whose names contain the specified string. The
|
1169
|
+
# search is not case sensitive. `ListMedicalVocabularies` returns both
|
1170
|
+
# "`vocabularyname`" and "`VocabularyName`".
|
947
1171
|
#
|
948
1172
|
# @return [Types::ListMedicalVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
949
1173
|
#
|
@@ -968,7 +1192,7 @@ module Aws::TranscribeService
|
|
968
1192
|
# resp.next_token #=> String
|
969
1193
|
# resp.vocabularies #=> Array
|
970
1194
|
# resp.vocabularies[0].vocabulary_name #=> String
|
971
|
-
# resp.vocabularies[0].language_code #=> String, one of "
|
1195
|
+
# resp.vocabularies[0].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"
|
972
1196
|
# resp.vocabularies[0].last_modified_time #=> Time
|
973
1197
|
# resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
974
1198
|
#
|
@@ -1028,12 +1252,15 @@ module Aws::TranscribeService
|
|
1028
1252
|
# resp.transcription_job_summaries[0].creation_time #=> Time
|
1029
1253
|
# resp.transcription_job_summaries[0].start_time #=> Time
|
1030
1254
|
# resp.transcription_job_summaries[0].completion_time #=> Time
|
1031
|
-
# resp.transcription_job_summaries[0].language_code #=> String, one of "
|
1255
|
+
# resp.transcription_job_summaries[0].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"
|
1032
1256
|
# resp.transcription_job_summaries[0].transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1033
1257
|
# resp.transcription_job_summaries[0].failure_reason #=> String
|
1034
1258
|
# resp.transcription_job_summaries[0].output_location_type #=> String, one of "CUSTOMER_BUCKET", "SERVICE_BUCKET"
|
1035
1259
|
# resp.transcription_job_summaries[0].content_redaction.redaction_type #=> String, one of "PII"
|
1036
1260
|
# resp.transcription_job_summaries[0].content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
|
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
|
1037
1264
|
#
|
1038
1265
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
|
1039
1266
|
#
|
@@ -1063,7 +1290,7 @@ module Aws::TranscribeService
|
|
1063
1290
|
# @option params [String] :name_contains
|
1064
1291
|
# When specified, the vocabularies returned in the list are limited to
|
1065
1292
|
# vocabularies whose name contains the specified string. The search is
|
1066
|
-
# case
|
1293
|
+
# not case sensitive, `ListVocabularies` returns both "vocabularyname"
|
1067
1294
|
# and "VocabularyName" in the response list.
|
1068
1295
|
#
|
1069
1296
|
# @return [Types::ListVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1089,7 +1316,7 @@ module Aws::TranscribeService
|
|
1089
1316
|
# resp.next_token #=> String
|
1090
1317
|
# resp.vocabularies #=> Array
|
1091
1318
|
# resp.vocabularies[0].vocabulary_name #=> String
|
1092
|
-
# resp.vocabularies[0].language_code #=> String, one of "
|
1319
|
+
# resp.vocabularies[0].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"
|
1093
1320
|
# resp.vocabularies[0].last_modified_time #=> Time
|
1094
1321
|
# resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1095
1322
|
#
|
@@ -1138,7 +1365,7 @@ module Aws::TranscribeService
|
|
1138
1365
|
# resp.next_token #=> String
|
1139
1366
|
# resp.vocabulary_filters #=> Array
|
1140
1367
|
# resp.vocabulary_filters[0].vocabulary_filter_name #=> String
|
1141
|
-
# resp.vocabulary_filters[0].language_code #=> String, one of "
|
1368
|
+
# resp.vocabulary_filters[0].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"
|
1142
1369
|
# resp.vocabulary_filters[0].last_modified_time #=> Time
|
1143
1370
|
#
|
1144
1371
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters AWS API Documentation
|
@@ -1150,14 +1377,14 @@ module Aws::TranscribeService
|
|
1150
1377
|
req.send_request(options)
|
1151
1378
|
end
|
1152
1379
|
|
1153
|
-
#
|
1380
|
+
# Starts a batch job to transcribe medical speech to text.
|
1154
1381
|
#
|
1155
1382
|
# @option params [required, String] :medical_transcription_job_name
|
1156
1383
|
# The name of the medical transcription job. You can't use the strings
|
1157
|
-
# "
|
1158
|
-
# unique within an AWS account. If you try to create a medical
|
1384
|
+
# "`.`" or "`..`" by themselves as the job name. The name must also
|
1385
|
+
# be unique within an AWS account. If you try to create a medical
|
1159
1386
|
# transcription job with the same name as a previous medical
|
1160
|
-
# transcription job you
|
1387
|
+
# transcription job, you get a `ConflictException` error.
|
1161
1388
|
#
|
1162
1389
|
# @option params [required, String] :language_code
|
1163
1390
|
# The language code for the language spoken in the input media file. US
|
@@ -1251,7 +1478,7 @@ module Aws::TranscribeService
|
|
1251
1478
|
#
|
1252
1479
|
# resp = client.start_medical_transcription_job({
|
1253
1480
|
# medical_transcription_job_name: "TranscriptionJobName", # required
|
1254
|
-
# language_code: "
|
1481
|
+
# 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
|
1255
1482
|
# media_sample_rate_hertz: 1,
|
1256
1483
|
# media_format: "mp3", # accepts mp3, mp4, wav, flac
|
1257
1484
|
# media: { # required
|
@@ -1275,7 +1502,7 @@ module Aws::TranscribeService
|
|
1275
1502
|
#
|
1276
1503
|
# resp.medical_transcription_job.medical_transcription_job_name #=> String
|
1277
1504
|
# resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1278
|
-
# resp.medical_transcription_job.language_code #=> String, one of "
|
1505
|
+
# 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"
|
1279
1506
|
# resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
|
1280
1507
|
# resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
1281
1508
|
# resp.medical_transcription_job.media.media_file_uri #=> String
|
@@ -1305,13 +1532,12 @@ module Aws::TranscribeService
|
|
1305
1532
|
# Starts an asynchronous job to transcribe speech to text.
|
1306
1533
|
#
|
1307
1534
|
# @option params [required, String] :transcription_job_name
|
1308
|
-
# The name of the job.
|
1309
|
-
#
|
1310
|
-
#
|
1311
|
-
#
|
1312
|
-
# `ConflictException` error.
|
1535
|
+
# The name of the job. You can't use the strings "`.`" or "`..`" by
|
1536
|
+
# themselves as the job name. The name must also be unique within an AWS
|
1537
|
+
# account. If you try to create a transcription job with the same name
|
1538
|
+
# as a previous transcription job, you get a `ConflictException` error.
|
1313
1539
|
#
|
1314
|
-
# @option params [
|
1540
|
+
# @option params [String] :language_code
|
1315
1541
|
# The language code for the language used in the input media file.
|
1316
1542
|
#
|
1317
1543
|
# @option params [Integer] :media_sample_rate_hertz
|
@@ -1392,6 +1618,10 @@ module Aws::TranscribeService
|
|
1392
1618
|
# A `Settings` object that provides optional settings for a
|
1393
1619
|
# transcription job.
|
1394
1620
|
#
|
1621
|
+
# @option params [Types::ModelSettings] :model_settings
|
1622
|
+
# Choose the custom language model you use for your transcription job in
|
1623
|
+
# this parameter.
|
1624
|
+
#
|
1395
1625
|
# @option params [Types::JobExecutionSettings] :job_execution_settings
|
1396
1626
|
# Provides information about how a transcription job is executed. Use
|
1397
1627
|
# this field to indicate that the job can be queued for deferred
|
@@ -1401,6 +1631,17 @@ module Aws::TranscribeService
|
|
1401
1631
|
# @option params [Types::ContentRedaction] :content_redaction
|
1402
1632
|
# An object that contains the request parameters for content redaction.
|
1403
1633
|
#
|
1634
|
+
# @option params [Boolean] :identify_language
|
1635
|
+
# Set this field to `true` to enable automatic language identification.
|
1636
|
+
# Automatic language identification is disabled by default. You receive
|
1637
|
+
# a `BadRequestException` error if you enter a value for a
|
1638
|
+
# `LanguageCode`.
|
1639
|
+
#
|
1640
|
+
# @option params [Array<String>] :language_options
|
1641
|
+
# An object containing a list of languages that might be present in your
|
1642
|
+
# collection of audio files. Automatic language identification chooses a
|
1643
|
+
# language that best matches the source audio from that list.
|
1644
|
+
#
|
1404
1645
|
# @return [Types::StartTranscriptionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1405
1646
|
#
|
1406
1647
|
# * {Types::StartTranscriptionJobResponse#transcription_job #transcription_job} => Types::TranscriptionJob
|
@@ -1409,7 +1650,7 @@ module Aws::TranscribeService
|
|
1409
1650
|
#
|
1410
1651
|
# resp = client.start_transcription_job({
|
1411
1652
|
# transcription_job_name: "TranscriptionJobName", # required
|
1412
|
-
# language_code: "
|
1653
|
+
# language_code: "af-ZA", # accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
|
1413
1654
|
# media_sample_rate_hertz: 1,
|
1414
1655
|
# media_format: "mp3", # accepts mp3, mp4, wav, flac
|
1415
1656
|
# media: { # required
|
@@ -1427,6 +1668,9 @@ module Aws::TranscribeService
|
|
1427
1668
|
# vocabulary_filter_name: "VocabularyFilterName",
|
1428
1669
|
# vocabulary_filter_method: "remove", # accepts remove, mask
|
1429
1670
|
# },
|
1671
|
+
# model_settings: {
|
1672
|
+
# language_model_name: "ModelName",
|
1673
|
+
# },
|
1430
1674
|
# job_execution_settings: {
|
1431
1675
|
# allow_deferred_execution: false,
|
1432
1676
|
# data_access_role_arn: "DataAccessRoleArn",
|
@@ -1435,13 +1679,15 @@ module Aws::TranscribeService
|
|
1435
1679
|
# redaction_type: "PII", # required, accepts PII
|
1436
1680
|
# redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
|
1437
1681
|
# },
|
1682
|
+
# identify_language: false,
|
1683
|
+
# language_options: ["af-ZA"], # accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
|
1438
1684
|
# })
|
1439
1685
|
#
|
1440
1686
|
# @example Response structure
|
1441
1687
|
#
|
1442
1688
|
# resp.transcription_job.transcription_job_name #=> String
|
1443
1689
|
# resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1444
|
-
# resp.transcription_job.language_code #=> String, one of "
|
1690
|
+
# 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"
|
1445
1691
|
# resp.transcription_job.media_sample_rate_hertz #=> Integer
|
1446
1692
|
# resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
1447
1693
|
# resp.transcription_job.media.media_file_uri #=> String
|
@@ -1459,10 +1705,15 @@ module Aws::TranscribeService
|
|
1459
1705
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
1460
1706
|
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
1461
1707
|
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
1708
|
+
# resp.transcription_job.model_settings.language_model_name #=> String
|
1462
1709
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
1463
1710
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
1464
1711
|
# resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
|
1465
1712
|
# resp.transcription_job.content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
|
1713
|
+
# resp.transcription_job.identify_language #=> Boolean
|
1714
|
+
# resp.transcription_job.language_options #=> Array
|
1715
|
+
# resp.transcription_job.language_options[0] #=> String, one of "af-ZA", "ar-AE", "ar-SA", "cy-GB", "da-DK", "de-CH", "de-DE", "en-AB", "en-AU", "en-GB", "en-IE", "en-IN", "en-US", "en-WL", "es-ES", "es-US", "fa-IR", "fr-CA", "fr-FR", "ga-IE", "gd-GB", "he-IL", "hi-IN", "id-ID", "it-IT", "ja-JP", "ko-KR", "ms-MY", "nl-NL", "pt-BR", "pt-PT", "ru-RU", "ta-IN", "te-IN", "tr-TR", "zh-CN"
|
1716
|
+
# resp.transcription_job.identified_language_score #=> Float
|
1466
1717
|
#
|
1467
1718
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob AWS API Documentation
|
1468
1719
|
#
|
@@ -1473,24 +1724,26 @@ module Aws::TranscribeService
|
|
1473
1724
|
req.send_request(options)
|
1474
1725
|
end
|
1475
1726
|
|
1476
|
-
# Updates
|
1477
|
-
# file
|
1478
|
-
#
|
1727
|
+
# Updates a vocabulary with new values that you provide in a different
|
1728
|
+
# text file from the one you used to create the vocabulary. The
|
1729
|
+
# `UpdateMedicalVocabulary` operation overwrites all of the existing
|
1730
|
+
# information with the values that you provide in the request.
|
1479
1731
|
#
|
1480
1732
|
# @option params [required, String] :vocabulary_name
|
1481
|
-
# The name of the vocabulary to update. The name is case
|
1482
|
-
# you try to update a vocabulary with the same name as a
|
1483
|
-
#
|
1733
|
+
# The name of the vocabulary to update. The name is case sensitive. If
|
1734
|
+
# you try to update a vocabulary with the same name as a vocabulary
|
1735
|
+
# you've already made, you get a `ConflictException` error.
|
1484
1736
|
#
|
1485
1737
|
# @option params [required, String] :language_code
|
1486
|
-
# The language code of the entries in the updated
|
1487
|
-
# (en-US) is the only valid language code in
|
1738
|
+
# The language code of the language used for the entries in the updated
|
1739
|
+
# vocabulary. US English (en-US) is the only valid language code in
|
1740
|
+
# Amazon Transcribe Medical.
|
1488
1741
|
#
|
1489
1742
|
# @option params [String] :vocabulary_file_uri
|
1490
|
-
# The Amazon S3
|
1491
|
-
#
|
1492
|
-
#
|
1493
|
-
#
|
1743
|
+
# The location in Amazon S3 of the text file that contains the you use
|
1744
|
+
# for your custom vocabulary. The URI must be in the same AWS Region as
|
1745
|
+
# the resource that you are calling. The following is the format for a
|
1746
|
+
# URI:
|
1494
1747
|
#
|
1495
1748
|
# `
|
1496
1749
|
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
@@ -1500,8 +1753,8 @@ module Aws::TranscribeService
|
|
1500
1753
|
#
|
1501
1754
|
# `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
|
1502
1755
|
#
|
1503
|
-
# For more information about S3 object names, see [Object
|
1504
|
-
# the *Amazon S3 Developer Guide*.
|
1756
|
+
# For more information about Amazon S3 object names, see [Object
|
1757
|
+
# Keys][1] in the *Amazon S3 Developer Guide*.
|
1505
1758
|
#
|
1506
1759
|
# For more information about custom vocabularies in Amazon Transcribe
|
1507
1760
|
# Medical, see [Medical Custom Vocabularies][2].
|
@@ -1522,14 +1775,14 @@ module Aws::TranscribeService
|
|
1522
1775
|
#
|
1523
1776
|
# resp = client.update_medical_vocabulary({
|
1524
1777
|
# vocabulary_name: "VocabularyName", # required
|
1525
|
-
# language_code: "
|
1778
|
+
# 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
|
1526
1779
|
# vocabulary_file_uri: "Uri",
|
1527
1780
|
# })
|
1528
1781
|
#
|
1529
1782
|
# @example Response structure
|
1530
1783
|
#
|
1531
1784
|
# resp.vocabulary_name #=> String
|
1532
|
-
# resp.language_code #=> String, one of "
|
1785
|
+
# resp.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"
|
1533
1786
|
# resp.last_modified_time #=> Time
|
1534
1787
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1535
1788
|
#
|
@@ -1547,7 +1800,7 @@ module Aws::TranscribeService
|
|
1547
1800
|
# that you provide in the request.
|
1548
1801
|
#
|
1549
1802
|
# @option params [required, String] :vocabulary_name
|
1550
|
-
# The name of the vocabulary to update. The name is case
|
1803
|
+
# The name of the vocabulary to update. The name is case sensitive. If
|
1551
1804
|
# you try to update a vocabulary with the same name as a previous
|
1552
1805
|
# vocabulary you will receive a `ConflictException` error.
|
1553
1806
|
#
|
@@ -1586,7 +1839,7 @@ module Aws::TranscribeService
|
|
1586
1839
|
#
|
1587
1840
|
# resp = client.update_vocabulary({
|
1588
1841
|
# vocabulary_name: "VocabularyName", # required
|
1589
|
-
# language_code: "
|
1842
|
+
# 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
|
1590
1843
|
# phrases: ["Phrase"],
|
1591
1844
|
# vocabulary_file_uri: "Uri",
|
1592
1845
|
# })
|
@@ -1594,7 +1847,7 @@ module Aws::TranscribeService
|
|
1594
1847
|
# @example Response structure
|
1595
1848
|
#
|
1596
1849
|
# resp.vocabulary_name #=> String
|
1597
|
-
# resp.language_code #=> String, one of "
|
1850
|
+
# resp.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"
|
1598
1851
|
# resp.last_modified_time #=> Time
|
1599
1852
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1600
1853
|
#
|
@@ -1611,8 +1864,8 @@ module Aws::TranscribeService
|
|
1611
1864
|
#
|
1612
1865
|
# @option params [required, String] :vocabulary_filter_name
|
1613
1866
|
# The name of the vocabulary filter to update. If you try to update a
|
1614
|
-
# vocabulary filter with the same name as
|
1615
|
-
#
|
1867
|
+
# vocabulary filter with the same name as another vocabulary filter, you
|
1868
|
+
# get a `ConflictException` error.
|
1616
1869
|
#
|
1617
1870
|
# @option params [Array<String>] :words
|
1618
1871
|
# The words to use in the vocabulary filter. Only use characters from
|
@@ -1659,7 +1912,7 @@ module Aws::TranscribeService
|
|
1659
1912
|
# @example Response structure
|
1660
1913
|
#
|
1661
1914
|
# resp.vocabulary_filter_name #=> String
|
1662
|
-
# resp.language_code #=> String, one of "
|
1915
|
+
# resp.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"
|
1663
1916
|
# resp.last_modified_time #=> Time
|
1664
1917
|
#
|
1665
1918
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter AWS API Documentation
|
@@ -1684,7 +1937,7 @@ module Aws::TranscribeService
|
|
1684
1937
|
params: params,
|
1685
1938
|
config: config)
|
1686
1939
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
1687
|
-
context[:gem_version] = '1.
|
1940
|
+
context[:gem_version] = '1.48.0'
|
1688
1941
|
Seahorse::Client::Request.new(handlers, context)
|
1689
1942
|
end
|
1690
1943
|
|