aws-sdk-transcribeservice 1.41.0 → 1.46.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 +4 -2
- data/lib/aws-sdk-transcribeservice/client.rb +304 -103
- data/lib/aws-sdk-transcribeservice/client_api.rb +125 -0
- 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 +511 -121
- 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: 5f00bfa5bfcc0cc19d4a1e29976e7fff72e42f0cebfdfec4ddb2c777cdb08f27
|
4
|
+
data.tar.gz: 70ab5451741ff8ef53356611f4c7b09cc0b3aef0d8579ee087eaa3ef49b8efa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a15bd596caa649019ab61ab4c536740b2bcb6cf26ee52f1ebcdab0e1277d5997b1303fab86c7510dc7278cb0f2e1b914e0ebda58e8c4c2e56ab1fa8d44bec8
|
7
|
+
data.tar.gz: ff939fcf18a1fc06c9abd34bea598ad1aedb0cd827092b53c32052674cf2c3b037b82fd679b0f2e7ecd4198ef43f8b524a15705a59caffdeb0736dfdd11244a6
|
@@ -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:
|
@@ -25,7 +27,7 @@ require_relative 'aws-sdk-transcribeservice/customizations'
|
|
25
27
|
# structure.
|
26
28
|
#
|
27
29
|
# transcribe_service = Aws::TranscribeService::Client.new
|
28
|
-
# resp = transcribe_service.
|
30
|
+
# resp = transcribe_service.create_language_model(params)
|
29
31
|
#
|
30
32
|
# See {Client} for more information.
|
31
33
|
#
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-transcribeservice/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::TranscribeService
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.46.0'
|
49
51
|
|
50
52
|
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
|
|
@@ -161,7 +165,7 @@ module Aws::TranscribeService
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +180,7 @@ module Aws::TranscribeService
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -318,37 +322,103 @@ module Aws::TranscribeService
|
|
318
322
|
|
319
323
|
# @!group API Operations
|
320
324
|
|
325
|
+
# Creates a new custom language model. Use Amazon S3 prefixes to provide
|
326
|
+
# the location of your input files. The time it takes to create your
|
327
|
+
# model depends on the size of your training data.
|
328
|
+
#
|
329
|
+
# @option params [required, String] :language_code
|
330
|
+
# The language of the input text you're using to train your custom
|
331
|
+
# language model.
|
332
|
+
#
|
333
|
+
# @option params [required, String] :base_model_name
|
334
|
+
# The Amazon Transcribe standard language model, or base model used to
|
335
|
+
# create your custom language model.
|
336
|
+
#
|
337
|
+
# If you want to use your custom language model to transcribe audio with
|
338
|
+
# a sample rate of 16 kHz or greater, choose `Wideband`.
|
339
|
+
#
|
340
|
+
# If you want to use your custom language model to transcribe audio with
|
341
|
+
# a sample rate that is less than 16 kHz, choose `Narrowband`.
|
342
|
+
#
|
343
|
+
# @option params [required, String] :model_name
|
344
|
+
# The name you choose for your custom language model when you create it.
|
345
|
+
#
|
346
|
+
# @option params [required, Types::InputDataConfig] :input_data_config
|
347
|
+
# Contains the data access role and the Amazon S3 prefixes to read the
|
348
|
+
# required input files to create a custom language model.
|
349
|
+
#
|
350
|
+
# @return [Types::CreateLanguageModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
351
|
+
#
|
352
|
+
# * {Types::CreateLanguageModelResponse#language_code #language_code} => String
|
353
|
+
# * {Types::CreateLanguageModelResponse#base_model_name #base_model_name} => String
|
354
|
+
# * {Types::CreateLanguageModelResponse#model_name #model_name} => String
|
355
|
+
# * {Types::CreateLanguageModelResponse#input_data_config #input_data_config} => Types::InputDataConfig
|
356
|
+
# * {Types::CreateLanguageModelResponse#model_status #model_status} => String
|
357
|
+
#
|
358
|
+
# @example Request syntax with placeholder values
|
359
|
+
#
|
360
|
+
# resp = client.create_language_model({
|
361
|
+
# language_code: "en-US", # required, accepts en-US
|
362
|
+
# base_model_name: "NarrowBand", # required, accepts NarrowBand, WideBand
|
363
|
+
# model_name: "ModelName", # required
|
364
|
+
# input_data_config: { # required
|
365
|
+
# s3_uri: "Uri", # required
|
366
|
+
# tuning_data_s3_uri: "Uri",
|
367
|
+
# data_access_role_arn: "DataAccessRoleArn", # required
|
368
|
+
# },
|
369
|
+
# })
|
370
|
+
#
|
371
|
+
# @example Response structure
|
372
|
+
#
|
373
|
+
# resp.language_code #=> String, one of "en-US"
|
374
|
+
# resp.base_model_name #=> String, one of "NarrowBand", "WideBand"
|
375
|
+
# resp.model_name #=> String
|
376
|
+
# resp.input_data_config.s3_uri #=> String
|
377
|
+
# resp.input_data_config.tuning_data_s3_uri #=> String
|
378
|
+
# resp.input_data_config.data_access_role_arn #=> String
|
379
|
+
# resp.model_status #=> String, one of "IN_PROGRESS", "FAILED", "COMPLETED"
|
380
|
+
#
|
381
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModel AWS API Documentation
|
382
|
+
#
|
383
|
+
# @overload create_language_model(params = {})
|
384
|
+
# @param [Hash] params ({})
|
385
|
+
def create_language_model(params = {}, options = {})
|
386
|
+
req = build_request(:create_language_model, params)
|
387
|
+
req.send_request(options)
|
388
|
+
end
|
389
|
+
|
321
390
|
# Creates a new custom vocabulary that you can use to change how Amazon
|
322
391
|
# Transcribe Medical transcribes your audio file.
|
323
392
|
#
|
324
393
|
# @option params [required, String] :vocabulary_name
|
325
394
|
# The name of the custom vocabulary. This case-sensitive name must be
|
326
395
|
# unique within an AWS account. If you try to create a vocabulary with
|
327
|
-
# the same name as a previous vocabulary you
|
328
|
-
#
|
396
|
+
# the same name as a previous vocabulary, you get a `ConflictException`
|
397
|
+
# error.
|
329
398
|
#
|
330
399
|
# @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.
|
400
|
+
# The language code for the language used for the entries in your custom
|
401
|
+
# vocabulary. The language code of your custom vocabulary must match the
|
402
|
+
# language code of your transcription job. US English (en-US) is the
|
403
|
+
# only language code available for Amazon Transcribe Medical.
|
335
404
|
#
|
336
405
|
# @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:
|
406
|
+
# The location in Amazon S3 of the text file you use to define your
|
407
|
+
# custom vocabulary. The URI must be in the same AWS Region as the
|
408
|
+
# resource that you're calling. Enter information about your
|
409
|
+
# `VocabularyFileUri` in the following format:
|
341
410
|
#
|
342
411
|
# `
|
343
412
|
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
344
413
|
# `
|
345
414
|
#
|
346
|
-
#
|
415
|
+
# The following is an example URI for a vocabulary file that is stored
|
416
|
+
# in Amazon S3:
|
347
417
|
#
|
348
|
-
# `https://s3.us-east-1.amazonaws.com/
|
418
|
+
# `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
|
349
419
|
#
|
350
|
-
# For more information about S3 object names, see [Object
|
351
|
-
# the *Amazon S3 Developer Guide*.
|
420
|
+
# For more information about Amazon S3 object names, see [Object
|
421
|
+
# Keys][1] in the *Amazon S3 Developer Guide*.
|
352
422
|
#
|
353
423
|
# For more information about custom vocabularies, see [Medical Custom
|
354
424
|
# Vocabularies][2].
|
@@ -370,14 +440,14 @@ module Aws::TranscribeService
|
|
370
440
|
#
|
371
441
|
# resp = client.create_medical_vocabulary({
|
372
442
|
# vocabulary_name: "VocabularyName", # required
|
373
|
-
# language_code: "
|
443
|
+
# 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
444
|
# vocabulary_file_uri: "Uri", # required
|
375
445
|
# })
|
376
446
|
#
|
377
447
|
# @example Response structure
|
378
448
|
#
|
379
449
|
# resp.vocabulary_name #=> String
|
380
|
-
# resp.language_code #=> String, one of "
|
450
|
+
# 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
451
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
382
452
|
# resp.last_modified_time #=> Time
|
383
453
|
# resp.failure_reason #=> String
|
@@ -396,7 +466,7 @@ module Aws::TranscribeService
|
|
396
466
|
#
|
397
467
|
# @option params [required, String] :vocabulary_name
|
398
468
|
# The name of the vocabulary. The name must be unique within an AWS
|
399
|
-
# account. The name is case
|
469
|
+
# account. The name is case sensitive. If you try to create a vocabulary
|
400
470
|
# with the same name as a previous vocabulary you will receive a
|
401
471
|
# `ConflictException` error.
|
402
472
|
#
|
@@ -411,14 +481,6 @@ module Aws::TranscribeService
|
|
411
481
|
# custom vocabulary. The URI must be in the same region as the API
|
412
482
|
# endpoint that you are calling. The general form is
|
413
483
|
#
|
414
|
-
# `
|
415
|
-
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
416
|
-
# `
|
417
|
-
#
|
418
|
-
# For example:
|
419
|
-
#
|
420
|
-
# `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
|
421
|
-
#
|
422
484
|
# For more information about S3 object names, see [Object Keys][1] in
|
423
485
|
# the *Amazon S3 Developer Guide*.
|
424
486
|
#
|
@@ -442,7 +504,7 @@ module Aws::TranscribeService
|
|
442
504
|
#
|
443
505
|
# resp = client.create_vocabulary({
|
444
506
|
# vocabulary_name: "VocabularyName", # required
|
445
|
-
# language_code: "
|
507
|
+
# 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
|
446
508
|
# phrases: ["Phrase"],
|
447
509
|
# vocabulary_file_uri: "Uri",
|
448
510
|
# })
|
@@ -450,7 +512,7 @@ module Aws::TranscribeService
|
|
450
512
|
# @example Response structure
|
451
513
|
#
|
452
514
|
# resp.vocabulary_name #=> String
|
453
|
-
# resp.language_code #=> String, one of "
|
515
|
+
# 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"
|
454
516
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
455
517
|
# resp.last_modified_time #=> Time
|
456
518
|
# resp.failure_reason #=> String
|
@@ -469,9 +531,9 @@ module Aws::TranscribeService
|
|
469
531
|
#
|
470
532
|
# @option params [required, String] :vocabulary_filter_name
|
471
533
|
# The vocabulary filter name. The name must be unique within the account
|
472
|
-
# that contains it.If you try to create a vocabulary filter with the
|
473
|
-
# same name as
|
474
|
-
#
|
534
|
+
# that contains it. If you try to create a vocabulary filter with the
|
535
|
+
# same name as another vocabulary filter, you get a `ConflictException`
|
536
|
+
# error.
|
475
537
|
#
|
476
538
|
# @option params [required, String] :language_code
|
477
539
|
# The language code of the words in the vocabulary filter. All words in
|
@@ -516,7 +578,7 @@ module Aws::TranscribeService
|
|
516
578
|
#
|
517
579
|
# resp = client.create_vocabulary_filter({
|
518
580
|
# vocabulary_filter_name: "VocabularyFilterName", # required
|
519
|
-
# language_code: "
|
581
|
+
# 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
|
520
582
|
# words: ["Word"],
|
521
583
|
# vocabulary_filter_file_uri: "Uri",
|
522
584
|
# })
|
@@ -524,7 +586,7 @@ module Aws::TranscribeService
|
|
524
586
|
# @example Response structure
|
525
587
|
#
|
526
588
|
# resp.vocabulary_filter_name #=> String
|
527
|
-
# resp.language_code #=> String, one of "
|
589
|
+
# 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"
|
528
590
|
# resp.last_modified_time #=> Time
|
529
591
|
#
|
530
592
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter AWS API Documentation
|
@@ -536,6 +598,28 @@ module Aws::TranscribeService
|
|
536
598
|
req.send_request(options)
|
537
599
|
end
|
538
600
|
|
601
|
+
# Deletes a custom language model using its name.
|
602
|
+
#
|
603
|
+
# @option params [required, String] :model_name
|
604
|
+
# The name of the model you're choosing to delete.
|
605
|
+
#
|
606
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
607
|
+
#
|
608
|
+
# @example Request syntax with placeholder values
|
609
|
+
#
|
610
|
+
# resp = client.delete_language_model({
|
611
|
+
# model_name: "ModelName", # required
|
612
|
+
# })
|
613
|
+
#
|
614
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModel AWS API Documentation
|
615
|
+
#
|
616
|
+
# @overload delete_language_model(params = {})
|
617
|
+
# @param [Hash] params ({})
|
618
|
+
def delete_language_model(params = {}, options = {})
|
619
|
+
req = build_request(:delete_language_model, params)
|
620
|
+
req.send_request(options)
|
621
|
+
end
|
622
|
+
|
539
623
|
# Deletes a transcription job generated by Amazon Transcribe Medical and
|
540
624
|
# any related information.
|
541
625
|
#
|
@@ -563,7 +647,7 @@ module Aws::TranscribeService
|
|
563
647
|
# Deletes a vocabulary from Amazon Transcribe Medical.
|
564
648
|
#
|
565
649
|
# @option params [required, String] :vocabulary_name
|
566
|
-
# The name of the vocabulary you
|
650
|
+
# The name of the vocabulary that you want to delete.
|
567
651
|
#
|
568
652
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
569
653
|
#
|
@@ -649,6 +733,52 @@ module Aws::TranscribeService
|
|
649
733
|
req.send_request(options)
|
650
734
|
end
|
651
735
|
|
736
|
+
# Gets information about a single custom language model. Use this
|
737
|
+
# information to see details about the language model in your AWS
|
738
|
+
# account. You can also see whether the base language model used to
|
739
|
+
# create your custom language model has been updated. If Amazon
|
740
|
+
# Transcribe has updated the base model, you can create a new custom
|
741
|
+
# language model using the updated base model. If the language model
|
742
|
+
# wasn't created, you can use this operation to understand why Amazon
|
743
|
+
# Transcribe couldn't create it.
|
744
|
+
#
|
745
|
+
# @option params [required, String] :model_name
|
746
|
+
# The name of the custom language model you submit to get more
|
747
|
+
# information.
|
748
|
+
#
|
749
|
+
# @return [Types::DescribeLanguageModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
750
|
+
#
|
751
|
+
# * {Types::DescribeLanguageModelResponse#language_model #language_model} => Types::LanguageModel
|
752
|
+
#
|
753
|
+
# @example Request syntax with placeholder values
|
754
|
+
#
|
755
|
+
# resp = client.describe_language_model({
|
756
|
+
# model_name: "ModelName", # required
|
757
|
+
# })
|
758
|
+
#
|
759
|
+
# @example Response structure
|
760
|
+
#
|
761
|
+
# resp.language_model.model_name #=> String
|
762
|
+
# resp.language_model.create_time #=> Time
|
763
|
+
# resp.language_model.last_modified_time #=> Time
|
764
|
+
# resp.language_model.language_code #=> String, one of "en-US"
|
765
|
+
# resp.language_model.base_model_name #=> String, one of "NarrowBand", "WideBand"
|
766
|
+
# resp.language_model.model_status #=> String, one of "IN_PROGRESS", "FAILED", "COMPLETED"
|
767
|
+
# resp.language_model.upgrade_availability #=> Boolean
|
768
|
+
# resp.language_model.failure_reason #=> String
|
769
|
+
# resp.language_model.input_data_config.s3_uri #=> String
|
770
|
+
# resp.language_model.input_data_config.tuning_data_s3_uri #=> String
|
771
|
+
# resp.language_model.input_data_config.data_access_role_arn #=> String
|
772
|
+
#
|
773
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel AWS API Documentation
|
774
|
+
#
|
775
|
+
# @overload describe_language_model(params = {})
|
776
|
+
# @param [Hash] params ({})
|
777
|
+
def describe_language_model(params = {}, options = {})
|
778
|
+
req = build_request(:describe_language_model, params)
|
779
|
+
req.send_request(options)
|
780
|
+
end
|
781
|
+
|
652
782
|
# Returns information about a transcription job from Amazon Transcribe
|
653
783
|
# Medical. To see the status of the job, check the
|
654
784
|
# `TranscriptionJobStatus` field. If the status is `COMPLETED`, the job
|
@@ -672,7 +802,7 @@ module Aws::TranscribeService
|
|
672
802
|
#
|
673
803
|
# resp.medical_transcription_job.medical_transcription_job_name #=> String
|
674
804
|
# resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
675
|
-
# resp.medical_transcription_job.language_code #=> String, one of "
|
805
|
+
# 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"
|
676
806
|
# resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
|
677
807
|
# resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
678
808
|
# resp.medical_transcription_job.media.media_file_uri #=> String
|
@@ -699,11 +829,11 @@ module Aws::TranscribeService
|
|
699
829
|
req.send_request(options)
|
700
830
|
end
|
701
831
|
|
702
|
-
#
|
832
|
+
# Retrieves information about a medical vocabulary.
|
703
833
|
#
|
704
834
|
# @option params [required, String] :vocabulary_name
|
705
|
-
# The name of the vocabulary you
|
706
|
-
#
|
835
|
+
# The name of the vocabulary that you want information about. The value
|
836
|
+
# is case sensitive.
|
707
837
|
#
|
708
838
|
# @return [Types::GetMedicalVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
709
839
|
#
|
@@ -723,7 +853,7 @@ module Aws::TranscribeService
|
|
723
853
|
# @example Response structure
|
724
854
|
#
|
725
855
|
# resp.vocabulary_name #=> String
|
726
|
-
# resp.language_code #=> String, one of "
|
856
|
+
# 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"
|
727
857
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
728
858
|
# resp.last_modified_time #=> Time
|
729
859
|
# resp.failure_reason #=> String
|
@@ -762,7 +892,7 @@ module Aws::TranscribeService
|
|
762
892
|
#
|
763
893
|
# resp.transcription_job.transcription_job_name #=> String
|
764
894
|
# resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
765
|
-
# resp.transcription_job.language_code #=> String, one of "
|
895
|
+
# 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"
|
766
896
|
# resp.transcription_job.media_sample_rate_hertz #=> Integer
|
767
897
|
# resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
768
898
|
# resp.transcription_job.media.media_file_uri #=> String
|
@@ -780,6 +910,7 @@ module Aws::TranscribeService
|
|
780
910
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
781
911
|
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
782
912
|
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
913
|
+
# resp.transcription_job.model_settings.language_model_name #=> String
|
783
914
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
784
915
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
785
916
|
# resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
|
@@ -798,7 +929,7 @@ module Aws::TranscribeService
|
|
798
929
|
#
|
799
930
|
# @option params [required, String] :vocabulary_name
|
800
931
|
# The name of the vocabulary to return information about. The name is
|
801
|
-
# case
|
932
|
+
# case sensitive.
|
802
933
|
#
|
803
934
|
# @return [Types::GetVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
804
935
|
#
|
@@ -818,7 +949,7 @@ module Aws::TranscribeService
|
|
818
949
|
# @example Response structure
|
819
950
|
#
|
820
951
|
# resp.vocabulary_name #=> String
|
821
|
-
# resp.language_code #=> String, one of "
|
952
|
+
# 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"
|
822
953
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
823
954
|
# resp.last_modified_time #=> Time
|
824
955
|
# resp.failure_reason #=> String
|
@@ -854,7 +985,7 @@ module Aws::TranscribeService
|
|
854
985
|
# @example Response structure
|
855
986
|
#
|
856
987
|
# resp.vocabulary_filter_name #=> String
|
857
|
-
# resp.language_code #=> String, one of "
|
988
|
+
# 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"
|
858
989
|
# resp.last_modified_time #=> Time
|
859
990
|
# resp.download_uri #=> String
|
860
991
|
#
|
@@ -867,6 +998,71 @@ module Aws::TranscribeService
|
|
867
998
|
req.send_request(options)
|
868
999
|
end
|
869
1000
|
|
1001
|
+
# Provides more information about the custom language models you've
|
1002
|
+
# created. You can use the information in this list to find a specific
|
1003
|
+
# custom language model. You can then use the operation to get more
|
1004
|
+
# information about it.
|
1005
|
+
#
|
1006
|
+
# @option params [String] :status_equals
|
1007
|
+
# When specified, returns only custom language models with the specified
|
1008
|
+
# status. Language models are ordered by creation date, with the newest
|
1009
|
+
# models first. If you don't specify a status, Amazon Transcribe
|
1010
|
+
# returns all custom language models ordered by date.
|
1011
|
+
#
|
1012
|
+
# @option params [String] :name_contains
|
1013
|
+
# When specified, the custom language model names returned contain the
|
1014
|
+
# substring you've specified.
|
1015
|
+
#
|
1016
|
+
# @option params [String] :next_token
|
1017
|
+
# When included, fetches the next set of jobs if the result of the
|
1018
|
+
# previous request was truncated.
|
1019
|
+
#
|
1020
|
+
# @option params [Integer] :max_results
|
1021
|
+
# The maximum number of language models to return in the response. If
|
1022
|
+
# there are fewer results in the list, the response contains only the
|
1023
|
+
# actual results.
|
1024
|
+
#
|
1025
|
+
# @return [Types::ListLanguageModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1026
|
+
#
|
1027
|
+
# * {Types::ListLanguageModelsResponse#next_token #next_token} => String
|
1028
|
+
# * {Types::ListLanguageModelsResponse#models #models} => Array<Types::LanguageModel>
|
1029
|
+
#
|
1030
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1031
|
+
#
|
1032
|
+
# @example Request syntax with placeholder values
|
1033
|
+
#
|
1034
|
+
# resp = client.list_language_models({
|
1035
|
+
# status_equals: "IN_PROGRESS", # accepts IN_PROGRESS, FAILED, COMPLETED
|
1036
|
+
# name_contains: "ModelName",
|
1037
|
+
# next_token: "NextToken",
|
1038
|
+
# max_results: 1,
|
1039
|
+
# })
|
1040
|
+
#
|
1041
|
+
# @example Response structure
|
1042
|
+
#
|
1043
|
+
# resp.next_token #=> String
|
1044
|
+
# resp.models #=> Array
|
1045
|
+
# resp.models[0].model_name #=> String
|
1046
|
+
# resp.models[0].create_time #=> Time
|
1047
|
+
# resp.models[0].last_modified_time #=> Time
|
1048
|
+
# resp.models[0].language_code #=> String, one of "en-US"
|
1049
|
+
# resp.models[0].base_model_name #=> String, one of "NarrowBand", "WideBand"
|
1050
|
+
# resp.models[0].model_status #=> String, one of "IN_PROGRESS", "FAILED", "COMPLETED"
|
1051
|
+
# resp.models[0].upgrade_availability #=> Boolean
|
1052
|
+
# resp.models[0].failure_reason #=> String
|
1053
|
+
# resp.models[0].input_data_config.s3_uri #=> String
|
1054
|
+
# resp.models[0].input_data_config.tuning_data_s3_uri #=> String
|
1055
|
+
# resp.models[0].input_data_config.data_access_role_arn #=> String
|
1056
|
+
#
|
1057
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModels AWS API Documentation
|
1058
|
+
#
|
1059
|
+
# @overload list_language_models(params = {})
|
1060
|
+
# @param [Hash] params ({})
|
1061
|
+
def list_language_models(params = {}, options = {})
|
1062
|
+
req = build_request(:list_language_models, params)
|
1063
|
+
req.send_request(options)
|
1064
|
+
end
|
1065
|
+
|
870
1066
|
# Lists medical transcription jobs with a specified status or substring
|
871
1067
|
# that matches their names.
|
872
1068
|
#
|
@@ -916,7 +1112,7 @@ module Aws::TranscribeService
|
|
916
1112
|
# resp.medical_transcription_job_summaries[0].creation_time #=> Time
|
917
1113
|
# resp.medical_transcription_job_summaries[0].start_time #=> Time
|
918
1114
|
# resp.medical_transcription_job_summaries[0].completion_time #=> Time
|
919
|
-
# resp.medical_transcription_job_summaries[0].language_code #=> String, one of "
|
1115
|
+
# 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"
|
920
1116
|
# resp.medical_transcription_job_summaries[0].transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
921
1117
|
# resp.medical_transcription_job_summaries[0].failure_reason #=> String
|
922
1118
|
# resp.medical_transcription_job_summaries[0].output_location_type #=> String, one of "CUSTOMER_BUCKET", "SERVICE_BUCKET"
|
@@ -932,26 +1128,27 @@ module Aws::TranscribeService
|
|
932
1128
|
req.send_request(options)
|
933
1129
|
end
|
934
1130
|
|
935
|
-
# Returns a list of vocabularies that match the specified criteria.
|
936
|
-
#
|
937
|
-
#
|
1131
|
+
# Returns a list of vocabularies that match the specified criteria. If
|
1132
|
+
# you don't enter a value in any of the request parameters, returns the
|
1133
|
+
# entire list of vocabularies.
|
938
1134
|
#
|
939
1135
|
# @option params [String] :next_token
|
940
1136
|
# If the result of your previous request to `ListMedicalVocabularies`
|
941
|
-
# was truncated, include the `NextToken` to fetch the next set of
|
1137
|
+
# was truncated, include the `NextToken` to fetch the next set of
|
1138
|
+
# vocabularies.
|
942
1139
|
#
|
943
1140
|
# @option params [Integer] :max_results
|
944
1141
|
# The maximum number of vocabularies to return in the response.
|
945
1142
|
#
|
946
1143
|
# @option params [String] :state_equals
|
947
|
-
# When specified, only
|
948
|
-
# equal to the specified vocabulary state.
|
1144
|
+
# When specified, returns only vocabularies with the `VocabularyState`
|
1145
|
+
# equal to the specified vocabulary state. Use this field to see which
|
1146
|
+
# vocabularies are ready for your medical transcription jobs.
|
949
1147
|
#
|
950
1148
|
# @option params [String] :name_contains
|
951
|
-
# Returns vocabularies
|
952
|
-
#
|
953
|
-
#
|
954
|
-
# list.
|
1149
|
+
# Returns vocabularies whose names contain the specified string. The
|
1150
|
+
# search is not case sensitive. `ListMedicalVocabularies` returns both
|
1151
|
+
# "`vocabularyname`" and "`VocabularyName`".
|
955
1152
|
#
|
956
1153
|
# @return [Types::ListMedicalVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
957
1154
|
#
|
@@ -976,7 +1173,7 @@ module Aws::TranscribeService
|
|
976
1173
|
# resp.next_token #=> String
|
977
1174
|
# resp.vocabularies #=> Array
|
978
1175
|
# resp.vocabularies[0].vocabulary_name #=> String
|
979
|
-
# resp.vocabularies[0].language_code #=> String, one of "
|
1176
|
+
# 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"
|
980
1177
|
# resp.vocabularies[0].last_modified_time #=> Time
|
981
1178
|
# resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
982
1179
|
#
|
@@ -1036,12 +1233,13 @@ module Aws::TranscribeService
|
|
1036
1233
|
# resp.transcription_job_summaries[0].creation_time #=> Time
|
1037
1234
|
# resp.transcription_job_summaries[0].start_time #=> Time
|
1038
1235
|
# resp.transcription_job_summaries[0].completion_time #=> Time
|
1039
|
-
# resp.transcription_job_summaries[0].language_code #=> String, one of "
|
1236
|
+
# 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"
|
1040
1237
|
# resp.transcription_job_summaries[0].transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1041
1238
|
# resp.transcription_job_summaries[0].failure_reason #=> String
|
1042
1239
|
# resp.transcription_job_summaries[0].output_location_type #=> String, one of "CUSTOMER_BUCKET", "SERVICE_BUCKET"
|
1043
1240
|
# resp.transcription_job_summaries[0].content_redaction.redaction_type #=> String, one of "PII"
|
1044
1241
|
# resp.transcription_job_summaries[0].content_redaction.redaction_output #=> String, one of "redacted", "redacted_and_unredacted"
|
1242
|
+
# resp.transcription_job_summaries[0].model_settings.language_model_name #=> String
|
1045
1243
|
#
|
1046
1244
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
|
1047
1245
|
#
|
@@ -1071,7 +1269,7 @@ module Aws::TranscribeService
|
|
1071
1269
|
# @option params [String] :name_contains
|
1072
1270
|
# When specified, the vocabularies returned in the list are limited to
|
1073
1271
|
# vocabularies whose name contains the specified string. The search is
|
1074
|
-
# case
|
1272
|
+
# not case sensitive, `ListVocabularies` returns both "vocabularyname"
|
1075
1273
|
# and "VocabularyName" in the response list.
|
1076
1274
|
#
|
1077
1275
|
# @return [Types::ListVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1097,7 +1295,7 @@ module Aws::TranscribeService
|
|
1097
1295
|
# resp.next_token #=> String
|
1098
1296
|
# resp.vocabularies #=> Array
|
1099
1297
|
# resp.vocabularies[0].vocabulary_name #=> String
|
1100
|
-
# resp.vocabularies[0].language_code #=> String, one of "
|
1298
|
+
# 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"
|
1101
1299
|
# resp.vocabularies[0].last_modified_time #=> Time
|
1102
1300
|
# resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1103
1301
|
#
|
@@ -1146,7 +1344,7 @@ module Aws::TranscribeService
|
|
1146
1344
|
# resp.next_token #=> String
|
1147
1345
|
# resp.vocabulary_filters #=> Array
|
1148
1346
|
# resp.vocabulary_filters[0].vocabulary_filter_name #=> String
|
1149
|
-
# resp.vocabulary_filters[0].language_code #=> String, one of "
|
1347
|
+
# 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"
|
1150
1348
|
# resp.vocabulary_filters[0].last_modified_time #=> Time
|
1151
1349
|
#
|
1152
1350
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters AWS API Documentation
|
@@ -1158,14 +1356,14 @@ module Aws::TranscribeService
|
|
1158
1356
|
req.send_request(options)
|
1159
1357
|
end
|
1160
1358
|
|
1161
|
-
#
|
1359
|
+
# Starts a batch job to transcribe medical speech to text.
|
1162
1360
|
#
|
1163
1361
|
# @option params [required, String] :medical_transcription_job_name
|
1164
1362
|
# The name of the medical transcription job. You can't use the strings
|
1165
|
-
# "
|
1166
|
-
# unique within an AWS account. If you try to create a medical
|
1363
|
+
# "`.`" or "`..`" by themselves as the job name. The name must also
|
1364
|
+
# be unique within an AWS account. If you try to create a medical
|
1167
1365
|
# transcription job with the same name as a previous medical
|
1168
|
-
# transcription job you
|
1366
|
+
# transcription job, you get a `ConflictException` error.
|
1169
1367
|
#
|
1170
1368
|
# @option params [required, String] :language_code
|
1171
1369
|
# The language code for the language spoken in the input media file. US
|
@@ -1259,7 +1457,7 @@ module Aws::TranscribeService
|
|
1259
1457
|
#
|
1260
1458
|
# resp = client.start_medical_transcription_job({
|
1261
1459
|
# medical_transcription_job_name: "TranscriptionJobName", # required
|
1262
|
-
# language_code: "
|
1460
|
+
# 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
|
1263
1461
|
# media_sample_rate_hertz: 1,
|
1264
1462
|
# media_format: "mp3", # accepts mp3, mp4, wav, flac
|
1265
1463
|
# media: { # required
|
@@ -1283,7 +1481,7 @@ module Aws::TranscribeService
|
|
1283
1481
|
#
|
1284
1482
|
# resp.medical_transcription_job.medical_transcription_job_name #=> String
|
1285
1483
|
# resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1286
|
-
# resp.medical_transcription_job.language_code #=> String, one of "
|
1484
|
+
# 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"
|
1287
1485
|
# resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
|
1288
1486
|
# resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
1289
1487
|
# resp.medical_transcription_job.media.media_file_uri #=> String
|
@@ -1313,11 +1511,10 @@ module Aws::TranscribeService
|
|
1313
1511
|
# Starts an asynchronous job to transcribe speech to text.
|
1314
1512
|
#
|
1315
1513
|
# @option params [required, String] :transcription_job_name
|
1316
|
-
# The name of the job.
|
1317
|
-
#
|
1318
|
-
#
|
1319
|
-
#
|
1320
|
-
# `ConflictException` error.
|
1514
|
+
# The name of the job. You can't use the strings "`.`" or "`..`" by
|
1515
|
+
# themselves as the job name. The name must also be unique within an AWS
|
1516
|
+
# account. If you try to create a transcription job with the same name
|
1517
|
+
# as a previous transcription job, you get a `ConflictException` error.
|
1321
1518
|
#
|
1322
1519
|
# @option params [required, String] :language_code
|
1323
1520
|
# The language code for the language used in the input media file.
|
@@ -1400,6 +1597,10 @@ module Aws::TranscribeService
|
|
1400
1597
|
# A `Settings` object that provides optional settings for a
|
1401
1598
|
# transcription job.
|
1402
1599
|
#
|
1600
|
+
# @option params [Types::ModelSettings] :model_settings
|
1601
|
+
# Choose the custom language model you use for your transcription job in
|
1602
|
+
# this parameter.
|
1603
|
+
#
|
1403
1604
|
# @option params [Types::JobExecutionSettings] :job_execution_settings
|
1404
1605
|
# Provides information about how a transcription job is executed. Use
|
1405
1606
|
# this field to indicate that the job can be queued for deferred
|
@@ -1417,7 +1618,7 @@ module Aws::TranscribeService
|
|
1417
1618
|
#
|
1418
1619
|
# resp = client.start_transcription_job({
|
1419
1620
|
# transcription_job_name: "TranscriptionJobName", # required
|
1420
|
-
# language_code: "
|
1621
|
+
# language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
|
1421
1622
|
# media_sample_rate_hertz: 1,
|
1422
1623
|
# media_format: "mp3", # accepts mp3, mp4, wav, flac
|
1423
1624
|
# media: { # required
|
@@ -1435,6 +1636,9 @@ module Aws::TranscribeService
|
|
1435
1636
|
# vocabulary_filter_name: "VocabularyFilterName",
|
1436
1637
|
# vocabulary_filter_method: "remove", # accepts remove, mask
|
1437
1638
|
# },
|
1639
|
+
# model_settings: {
|
1640
|
+
# language_model_name: "ModelName",
|
1641
|
+
# },
|
1438
1642
|
# job_execution_settings: {
|
1439
1643
|
# allow_deferred_execution: false,
|
1440
1644
|
# data_access_role_arn: "DataAccessRoleArn",
|
@@ -1449,7 +1653,7 @@ module Aws::TranscribeService
|
|
1449
1653
|
#
|
1450
1654
|
# resp.transcription_job.transcription_job_name #=> String
|
1451
1655
|
# resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1452
|
-
# resp.transcription_job.language_code #=> String, one of "
|
1656
|
+
# 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"
|
1453
1657
|
# resp.transcription_job.media_sample_rate_hertz #=> Integer
|
1454
1658
|
# resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
1455
1659
|
# resp.transcription_job.media.media_file_uri #=> String
|
@@ -1467,6 +1671,7 @@ module Aws::TranscribeService
|
|
1467
1671
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
1468
1672
|
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
1469
1673
|
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
1674
|
+
# resp.transcription_job.model_settings.language_model_name #=> String
|
1470
1675
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
1471
1676
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
1472
1677
|
# resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
|
@@ -1481,24 +1686,26 @@ module Aws::TranscribeService
|
|
1481
1686
|
req.send_request(options)
|
1482
1687
|
end
|
1483
1688
|
|
1484
|
-
# Updates
|
1485
|
-
# file
|
1486
|
-
#
|
1689
|
+
# Updates a vocabulary with new values that you provide in a different
|
1690
|
+
# text file from the one you used to create the vocabulary. The
|
1691
|
+
# `UpdateMedicalVocabulary` operation overwrites all of the existing
|
1692
|
+
# information with the values that you provide in the request.
|
1487
1693
|
#
|
1488
1694
|
# @option params [required, String] :vocabulary_name
|
1489
|
-
# The name of the vocabulary to update. The name is case
|
1490
|
-
# you try to update a vocabulary with the same name as a
|
1491
|
-
#
|
1695
|
+
# The name of the vocabulary to update. The name is case sensitive. If
|
1696
|
+
# you try to update a vocabulary with the same name as a vocabulary
|
1697
|
+
# you've already made, you get a `ConflictException` error.
|
1492
1698
|
#
|
1493
1699
|
# @option params [required, String] :language_code
|
1494
|
-
# The language code of the entries in the updated
|
1495
|
-
# (en-US) is the only valid language code in
|
1700
|
+
# The language code of the language used for the entries in the updated
|
1701
|
+
# vocabulary. US English (en-US) is the only valid language code in
|
1702
|
+
# Amazon Transcribe Medical.
|
1496
1703
|
#
|
1497
1704
|
# @option params [String] :vocabulary_file_uri
|
1498
|
-
# The Amazon S3
|
1499
|
-
#
|
1500
|
-
#
|
1501
|
-
#
|
1705
|
+
# The location in Amazon S3 of the text file that contains the you use
|
1706
|
+
# for your custom vocabulary. The URI must be in the same AWS Region as
|
1707
|
+
# the resource that you are calling. The following is the format for a
|
1708
|
+
# URI:
|
1502
1709
|
#
|
1503
1710
|
# `
|
1504
1711
|
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
@@ -1506,10 +1713,10 @@ module Aws::TranscribeService
|
|
1506
1713
|
#
|
1507
1714
|
# For example:
|
1508
1715
|
#
|
1509
|
-
# `https://s3.us-east-1.amazonaws.com/
|
1716
|
+
# `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
|
1510
1717
|
#
|
1511
|
-
# For more information about S3 object names, see [Object
|
1512
|
-
# the *Amazon S3 Developer Guide*.
|
1718
|
+
# For more information about Amazon S3 object names, see [Object
|
1719
|
+
# Keys][1] in the *Amazon S3 Developer Guide*.
|
1513
1720
|
#
|
1514
1721
|
# For more information about custom vocabularies in Amazon Transcribe
|
1515
1722
|
# Medical, see [Medical Custom Vocabularies][2].
|
@@ -1530,14 +1737,14 @@ module Aws::TranscribeService
|
|
1530
1737
|
#
|
1531
1738
|
# resp = client.update_medical_vocabulary({
|
1532
1739
|
# vocabulary_name: "VocabularyName", # required
|
1533
|
-
# language_code: "
|
1740
|
+
# 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
|
1534
1741
|
# vocabulary_file_uri: "Uri",
|
1535
1742
|
# })
|
1536
1743
|
#
|
1537
1744
|
# @example Response structure
|
1538
1745
|
#
|
1539
1746
|
# resp.vocabulary_name #=> String
|
1540
|
-
# resp.language_code #=> String, one of "
|
1747
|
+
# 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"
|
1541
1748
|
# resp.last_modified_time #=> Time
|
1542
1749
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1543
1750
|
#
|
@@ -1555,7 +1762,7 @@ module Aws::TranscribeService
|
|
1555
1762
|
# that you provide in the request.
|
1556
1763
|
#
|
1557
1764
|
# @option params [required, String] :vocabulary_name
|
1558
|
-
# The name of the vocabulary to update. The name is case
|
1765
|
+
# The name of the vocabulary to update. The name is case sensitive. If
|
1559
1766
|
# you try to update a vocabulary with the same name as a previous
|
1560
1767
|
# vocabulary you will receive a `ConflictException` error.
|
1561
1768
|
#
|
@@ -1570,14 +1777,8 @@ module Aws::TranscribeService
|
|
1570
1777
|
# custom vocabulary. The URI must be in the same region as the API
|
1571
1778
|
# endpoint that you are calling. The general form is
|
1572
1779
|
#
|
1573
|
-
# `
|
1574
|
-
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
1575
|
-
# `
|
1576
|
-
#
|
1577
1780
|
# For example:
|
1578
1781
|
#
|
1579
|
-
# `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
|
1580
|
-
#
|
1581
1782
|
# For more information about S3 object names, see [Object Keys][1] in
|
1582
1783
|
# the *Amazon S3 Developer Guide*.
|
1583
1784
|
#
|
@@ -1600,7 +1801,7 @@ module Aws::TranscribeService
|
|
1600
1801
|
#
|
1601
1802
|
# resp = client.update_vocabulary({
|
1602
1803
|
# vocabulary_name: "VocabularyName", # required
|
1603
|
-
# language_code: "
|
1804
|
+
# 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
|
1604
1805
|
# phrases: ["Phrase"],
|
1605
1806
|
# vocabulary_file_uri: "Uri",
|
1606
1807
|
# })
|
@@ -1608,7 +1809,7 @@ module Aws::TranscribeService
|
|
1608
1809
|
# @example Response structure
|
1609
1810
|
#
|
1610
1811
|
# resp.vocabulary_name #=> String
|
1611
|
-
# resp.language_code #=> String, one of "
|
1812
|
+
# 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"
|
1612
1813
|
# resp.last_modified_time #=> Time
|
1613
1814
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1614
1815
|
#
|
@@ -1625,8 +1826,8 @@ module Aws::TranscribeService
|
|
1625
1826
|
#
|
1626
1827
|
# @option params [required, String] :vocabulary_filter_name
|
1627
1828
|
# The name of the vocabulary filter to update. If you try to update a
|
1628
|
-
# vocabulary filter with the same name as
|
1629
|
-
#
|
1829
|
+
# vocabulary filter with the same name as another vocabulary filter, you
|
1830
|
+
# get a `ConflictException` error.
|
1630
1831
|
#
|
1631
1832
|
# @option params [Array<String>] :words
|
1632
1833
|
# The words to use in the vocabulary filter. Only use characters from
|
@@ -1673,7 +1874,7 @@ module Aws::TranscribeService
|
|
1673
1874
|
# @example Response structure
|
1674
1875
|
#
|
1675
1876
|
# resp.vocabulary_filter_name #=> String
|
1676
|
-
# resp.language_code #=> String, one of "
|
1877
|
+
# 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"
|
1677
1878
|
# resp.last_modified_time #=> Time
|
1678
1879
|
#
|
1679
1880
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter AWS API Documentation
|
@@ -1698,7 +1899,7 @@ module Aws::TranscribeService
|
|
1698
1899
|
params: params,
|
1699
1900
|
config: config)
|
1700
1901
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
1701
|
-
context[:gem_version] = '1.
|
1902
|
+
context[:gem_version] = '1.46.0'
|
1702
1903
|
Seahorse::Client::Request.new(handlers, context)
|
1703
1904
|
end
|
1704
1905
|
|