aws-sdk-transcribeservice 1.45.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-transcribeservice.rb +2 -2
- data/lib/aws-sdk-transcribeservice/client.rb +296 -85
- data/lib/aws-sdk-transcribeservice/client_api.rb +123 -0
- data/lib/aws-sdk-transcribeservice/types.rb +448 -99
- metadata +2 -2
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
|
@@ -27,7 +27,7 @@ require_relative 'aws-sdk-transcribeservice/customizations'
|
|
27
27
|
# structure.
|
28
28
|
#
|
29
29
|
# transcribe_service = Aws::TranscribeService::Client.new
|
30
|
-
# resp = transcribe_service.
|
30
|
+
# resp = transcribe_service.create_language_model(params)
|
31
31
|
#
|
32
32
|
# See {Client} for more information.
|
33
33
|
#
|
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-transcribeservice/customizations'
|
|
47
47
|
# @service
|
48
48
|
module Aws::TranscribeService
|
49
49
|
|
50
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.46.0'
|
51
51
|
|
52
52
|
end
|
@@ -322,37 +322,103 @@ module Aws::TranscribeService
|
|
322
322
|
|
323
323
|
# @!group API Operations
|
324
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
|
+
|
325
390
|
# Creates a new custom vocabulary that you can use to change how Amazon
|
326
391
|
# Transcribe Medical transcribes your audio file.
|
327
392
|
#
|
328
393
|
# @option params [required, String] :vocabulary_name
|
329
394
|
# The name of the custom vocabulary. This case-sensitive name must be
|
330
395
|
# unique within an AWS account. If you try to create a vocabulary with
|
331
|
-
# the same name as a previous vocabulary you
|
332
|
-
#
|
396
|
+
# the same name as a previous vocabulary, you get a `ConflictException`
|
397
|
+
# error.
|
333
398
|
#
|
334
399
|
# @option params [required, String] :language_code
|
335
|
-
# The language code used for the entries
|
336
|
-
# The language code of your custom vocabulary must match the
|
337
|
-
# code of your transcription job. US English (en-US) is the
|
338
|
-
# 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.
|
339
404
|
#
|
340
405
|
# @option params [required, String] :vocabulary_file_uri
|
341
|
-
# The Amazon S3
|
342
|
-
# vocabulary. The URI must be in the same AWS
|
343
|
-
# you're calling. Enter information about your
|
344
|
-
# 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:
|
345
410
|
#
|
346
411
|
# `
|
347
412
|
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
348
413
|
# `
|
349
414
|
#
|
350
|
-
#
|
415
|
+
# The following is an example URI for a vocabulary file that is stored
|
416
|
+
# in Amazon S3:
|
351
417
|
#
|
352
418
|
# `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
|
353
419
|
#
|
354
|
-
# For more information about S3 object names, see [Object
|
355
|
-
# 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*.
|
356
422
|
#
|
357
423
|
# For more information about custom vocabularies, see [Medical Custom
|
358
424
|
# Vocabularies][2].
|
@@ -374,14 +440,14 @@ module Aws::TranscribeService
|
|
374
440
|
#
|
375
441
|
# resp = client.create_medical_vocabulary({
|
376
442
|
# vocabulary_name: "VocabularyName", # required
|
377
|
-
# 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
|
378
444
|
# vocabulary_file_uri: "Uri", # required
|
379
445
|
# })
|
380
446
|
#
|
381
447
|
# @example Response structure
|
382
448
|
#
|
383
449
|
# resp.vocabulary_name #=> String
|
384
|
-
# 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"
|
385
451
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
386
452
|
# resp.last_modified_time #=> Time
|
387
453
|
# resp.failure_reason #=> String
|
@@ -400,7 +466,7 @@ module Aws::TranscribeService
|
|
400
466
|
#
|
401
467
|
# @option params [required, String] :vocabulary_name
|
402
468
|
# The name of the vocabulary. The name must be unique within an AWS
|
403
|
-
# account. The name is case
|
469
|
+
# account. The name is case sensitive. If you try to create a vocabulary
|
404
470
|
# with the same name as a previous vocabulary you will receive a
|
405
471
|
# `ConflictException` error.
|
406
472
|
#
|
@@ -438,7 +504,7 @@ module Aws::TranscribeService
|
|
438
504
|
#
|
439
505
|
# resp = client.create_vocabulary({
|
440
506
|
# vocabulary_name: "VocabularyName", # required
|
441
|
-
# 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
|
442
508
|
# phrases: ["Phrase"],
|
443
509
|
# vocabulary_file_uri: "Uri",
|
444
510
|
# })
|
@@ -446,7 +512,7 @@ module Aws::TranscribeService
|
|
446
512
|
# @example Response structure
|
447
513
|
#
|
448
514
|
# resp.vocabulary_name #=> String
|
449
|
-
# 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"
|
450
516
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
451
517
|
# resp.last_modified_time #=> Time
|
452
518
|
# resp.failure_reason #=> String
|
@@ -465,9 +531,9 @@ module Aws::TranscribeService
|
|
465
531
|
#
|
466
532
|
# @option params [required, String] :vocabulary_filter_name
|
467
533
|
# The vocabulary filter name. The name must be unique within the account
|
468
|
-
# that contains it.If you try to create a vocabulary filter with the
|
469
|
-
# same name as
|
470
|
-
#
|
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.
|
471
537
|
#
|
472
538
|
# @option params [required, String] :language_code
|
473
539
|
# The language code of the words in the vocabulary filter. All words in
|
@@ -512,7 +578,7 @@ module Aws::TranscribeService
|
|
512
578
|
#
|
513
579
|
# resp = client.create_vocabulary_filter({
|
514
580
|
# vocabulary_filter_name: "VocabularyFilterName", # required
|
515
|
-
# 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
|
516
582
|
# words: ["Word"],
|
517
583
|
# vocabulary_filter_file_uri: "Uri",
|
518
584
|
# })
|
@@ -520,7 +586,7 @@ module Aws::TranscribeService
|
|
520
586
|
# @example Response structure
|
521
587
|
#
|
522
588
|
# resp.vocabulary_filter_name #=> String
|
523
|
-
# 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"
|
524
590
|
# resp.last_modified_time #=> Time
|
525
591
|
#
|
526
592
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter AWS API Documentation
|
@@ -532,6 +598,28 @@ module Aws::TranscribeService
|
|
532
598
|
req.send_request(options)
|
533
599
|
end
|
534
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
|
+
|
535
623
|
# Deletes a transcription job generated by Amazon Transcribe Medical and
|
536
624
|
# any related information.
|
537
625
|
#
|
@@ -559,7 +647,7 @@ module Aws::TranscribeService
|
|
559
647
|
# Deletes a vocabulary from Amazon Transcribe Medical.
|
560
648
|
#
|
561
649
|
# @option params [required, String] :vocabulary_name
|
562
|
-
# The name of the vocabulary you
|
650
|
+
# The name of the vocabulary that you want to delete.
|
563
651
|
#
|
564
652
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
565
653
|
#
|
@@ -645,6 +733,52 @@ module Aws::TranscribeService
|
|
645
733
|
req.send_request(options)
|
646
734
|
end
|
647
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
|
+
|
648
782
|
# Returns information about a transcription job from Amazon Transcribe
|
649
783
|
# Medical. To see the status of the job, check the
|
650
784
|
# `TranscriptionJobStatus` field. If the status is `COMPLETED`, the job
|
@@ -668,7 +802,7 @@ module Aws::TranscribeService
|
|
668
802
|
#
|
669
803
|
# resp.medical_transcription_job.medical_transcription_job_name #=> String
|
670
804
|
# resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
671
|
-
# 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"
|
672
806
|
# resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
|
673
807
|
# resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
674
808
|
# resp.medical_transcription_job.media.media_file_uri #=> String
|
@@ -695,11 +829,11 @@ module Aws::TranscribeService
|
|
695
829
|
req.send_request(options)
|
696
830
|
end
|
697
831
|
|
698
|
-
#
|
832
|
+
# Retrieves information about a medical vocabulary.
|
699
833
|
#
|
700
834
|
# @option params [required, String] :vocabulary_name
|
701
|
-
# The name of the vocabulary you
|
702
|
-
#
|
835
|
+
# The name of the vocabulary that you want information about. The value
|
836
|
+
# is case sensitive.
|
703
837
|
#
|
704
838
|
# @return [Types::GetMedicalVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
705
839
|
#
|
@@ -719,7 +853,7 @@ module Aws::TranscribeService
|
|
719
853
|
# @example Response structure
|
720
854
|
#
|
721
855
|
# resp.vocabulary_name #=> String
|
722
|
-
# 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"
|
723
857
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
724
858
|
# resp.last_modified_time #=> Time
|
725
859
|
# resp.failure_reason #=> String
|
@@ -758,7 +892,7 @@ module Aws::TranscribeService
|
|
758
892
|
#
|
759
893
|
# resp.transcription_job.transcription_job_name #=> String
|
760
894
|
# resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
761
|
-
# 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"
|
762
896
|
# resp.transcription_job.media_sample_rate_hertz #=> Integer
|
763
897
|
# resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
764
898
|
# resp.transcription_job.media.media_file_uri #=> String
|
@@ -776,6 +910,7 @@ module Aws::TranscribeService
|
|
776
910
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
777
911
|
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
778
912
|
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
913
|
+
# resp.transcription_job.model_settings.language_model_name #=> String
|
779
914
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
780
915
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
781
916
|
# resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
|
@@ -794,7 +929,7 @@ module Aws::TranscribeService
|
|
794
929
|
#
|
795
930
|
# @option params [required, String] :vocabulary_name
|
796
931
|
# The name of the vocabulary to return information about. The name is
|
797
|
-
# case
|
932
|
+
# case sensitive.
|
798
933
|
#
|
799
934
|
# @return [Types::GetVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
800
935
|
#
|
@@ -814,7 +949,7 @@ module Aws::TranscribeService
|
|
814
949
|
# @example Response structure
|
815
950
|
#
|
816
951
|
# resp.vocabulary_name #=> String
|
817
|
-
# 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"
|
818
953
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
819
954
|
# resp.last_modified_time #=> Time
|
820
955
|
# resp.failure_reason #=> String
|
@@ -850,7 +985,7 @@ module Aws::TranscribeService
|
|
850
985
|
# @example Response structure
|
851
986
|
#
|
852
987
|
# resp.vocabulary_filter_name #=> String
|
853
|
-
# 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"
|
854
989
|
# resp.last_modified_time #=> Time
|
855
990
|
# resp.download_uri #=> String
|
856
991
|
#
|
@@ -863,6 +998,71 @@ module Aws::TranscribeService
|
|
863
998
|
req.send_request(options)
|
864
999
|
end
|
865
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
|
+
|
866
1066
|
# Lists medical transcription jobs with a specified status or substring
|
867
1067
|
# that matches their names.
|
868
1068
|
#
|
@@ -912,7 +1112,7 @@ module Aws::TranscribeService
|
|
912
1112
|
# resp.medical_transcription_job_summaries[0].creation_time #=> Time
|
913
1113
|
# resp.medical_transcription_job_summaries[0].start_time #=> Time
|
914
1114
|
# resp.medical_transcription_job_summaries[0].completion_time #=> Time
|
915
|
-
# 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"
|
916
1116
|
# resp.medical_transcription_job_summaries[0].transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
917
1117
|
# resp.medical_transcription_job_summaries[0].failure_reason #=> String
|
918
1118
|
# resp.medical_transcription_job_summaries[0].output_location_type #=> String, one of "CUSTOMER_BUCKET", "SERVICE_BUCKET"
|
@@ -928,26 +1128,27 @@ module Aws::TranscribeService
|
|
928
1128
|
req.send_request(options)
|
929
1129
|
end
|
930
1130
|
|
931
|
-
# Returns a list of vocabularies that match the specified criteria.
|
932
|
-
#
|
933
|
-
#
|
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.
|
934
1134
|
#
|
935
1135
|
# @option params [String] :next_token
|
936
1136
|
# If the result of your previous request to `ListMedicalVocabularies`
|
937
|
-
# 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.
|
938
1139
|
#
|
939
1140
|
# @option params [Integer] :max_results
|
940
1141
|
# The maximum number of vocabularies to return in the response.
|
941
1142
|
#
|
942
1143
|
# @option params [String] :state_equals
|
943
|
-
# When specified, only
|
944
|
-
# 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.
|
945
1147
|
#
|
946
1148
|
# @option params [String] :name_contains
|
947
|
-
# Returns vocabularies
|
948
|
-
#
|
949
|
-
#
|
950
|
-
# list.
|
1149
|
+
# Returns vocabularies whose names contain the specified string. The
|
1150
|
+
# search is not case sensitive. `ListMedicalVocabularies` returns both
|
1151
|
+
# "`vocabularyname`" and "`VocabularyName`".
|
951
1152
|
#
|
952
1153
|
# @return [Types::ListMedicalVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
953
1154
|
#
|
@@ -972,7 +1173,7 @@ module Aws::TranscribeService
|
|
972
1173
|
# resp.next_token #=> String
|
973
1174
|
# resp.vocabularies #=> Array
|
974
1175
|
# resp.vocabularies[0].vocabulary_name #=> String
|
975
|
-
# 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"
|
976
1177
|
# resp.vocabularies[0].last_modified_time #=> Time
|
977
1178
|
# resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
978
1179
|
#
|
@@ -1032,12 +1233,13 @@ module Aws::TranscribeService
|
|
1032
1233
|
# resp.transcription_job_summaries[0].creation_time #=> Time
|
1033
1234
|
# resp.transcription_job_summaries[0].start_time #=> Time
|
1034
1235
|
# resp.transcription_job_summaries[0].completion_time #=> Time
|
1035
|
-
# 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"
|
1036
1237
|
# resp.transcription_job_summaries[0].transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1037
1238
|
# resp.transcription_job_summaries[0].failure_reason #=> String
|
1038
1239
|
# resp.transcription_job_summaries[0].output_location_type #=> String, one of "CUSTOMER_BUCKET", "SERVICE_BUCKET"
|
1039
1240
|
# resp.transcription_job_summaries[0].content_redaction.redaction_type #=> String, one of "PII"
|
1040
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
|
1041
1243
|
#
|
1042
1244
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs AWS API Documentation
|
1043
1245
|
#
|
@@ -1067,7 +1269,7 @@ module Aws::TranscribeService
|
|
1067
1269
|
# @option params [String] :name_contains
|
1068
1270
|
# When specified, the vocabularies returned in the list are limited to
|
1069
1271
|
# vocabularies whose name contains the specified string. The search is
|
1070
|
-
# case
|
1272
|
+
# not case sensitive, `ListVocabularies` returns both "vocabularyname"
|
1071
1273
|
# and "VocabularyName" in the response list.
|
1072
1274
|
#
|
1073
1275
|
# @return [Types::ListVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1093,7 +1295,7 @@ module Aws::TranscribeService
|
|
1093
1295
|
# resp.next_token #=> String
|
1094
1296
|
# resp.vocabularies #=> Array
|
1095
1297
|
# resp.vocabularies[0].vocabulary_name #=> String
|
1096
|
-
# 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"
|
1097
1299
|
# resp.vocabularies[0].last_modified_time #=> Time
|
1098
1300
|
# resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1099
1301
|
#
|
@@ -1142,7 +1344,7 @@ module Aws::TranscribeService
|
|
1142
1344
|
# resp.next_token #=> String
|
1143
1345
|
# resp.vocabulary_filters #=> Array
|
1144
1346
|
# resp.vocabulary_filters[0].vocabulary_filter_name #=> String
|
1145
|
-
# 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"
|
1146
1348
|
# resp.vocabulary_filters[0].last_modified_time #=> Time
|
1147
1349
|
#
|
1148
1350
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters AWS API Documentation
|
@@ -1154,14 +1356,14 @@ module Aws::TranscribeService
|
|
1154
1356
|
req.send_request(options)
|
1155
1357
|
end
|
1156
1358
|
|
1157
|
-
#
|
1359
|
+
# Starts a batch job to transcribe medical speech to text.
|
1158
1360
|
#
|
1159
1361
|
# @option params [required, String] :medical_transcription_job_name
|
1160
1362
|
# The name of the medical transcription job. You can't use the strings
|
1161
|
-
# "
|
1162
|
-
# 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
|
1163
1365
|
# transcription job with the same name as a previous medical
|
1164
|
-
# transcription job you
|
1366
|
+
# transcription job, you get a `ConflictException` error.
|
1165
1367
|
#
|
1166
1368
|
# @option params [required, String] :language_code
|
1167
1369
|
# The language code for the language spoken in the input media file. US
|
@@ -1255,7 +1457,7 @@ module Aws::TranscribeService
|
|
1255
1457
|
#
|
1256
1458
|
# resp = client.start_medical_transcription_job({
|
1257
1459
|
# medical_transcription_job_name: "TranscriptionJobName", # required
|
1258
|
-
# 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
|
1259
1461
|
# media_sample_rate_hertz: 1,
|
1260
1462
|
# media_format: "mp3", # accepts mp3, mp4, wav, flac
|
1261
1463
|
# media: { # required
|
@@ -1279,7 +1481,7 @@ module Aws::TranscribeService
|
|
1279
1481
|
#
|
1280
1482
|
# resp.medical_transcription_job.medical_transcription_job_name #=> String
|
1281
1483
|
# resp.medical_transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1282
|
-
# 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"
|
1283
1485
|
# resp.medical_transcription_job.media_sample_rate_hertz #=> Integer
|
1284
1486
|
# resp.medical_transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
1285
1487
|
# resp.medical_transcription_job.media.media_file_uri #=> String
|
@@ -1309,11 +1511,10 @@ module Aws::TranscribeService
|
|
1309
1511
|
# Starts an asynchronous job to transcribe speech to text.
|
1310
1512
|
#
|
1311
1513
|
# @option params [required, String] :transcription_job_name
|
1312
|
-
# The name of the job.
|
1313
|
-
#
|
1314
|
-
#
|
1315
|
-
#
|
1316
|
-
# `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.
|
1317
1518
|
#
|
1318
1519
|
# @option params [required, String] :language_code
|
1319
1520
|
# The language code for the language used in the input media file.
|
@@ -1396,6 +1597,10 @@ module Aws::TranscribeService
|
|
1396
1597
|
# A `Settings` object that provides optional settings for a
|
1397
1598
|
# transcription job.
|
1398
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
|
+
#
|
1399
1604
|
# @option params [Types::JobExecutionSettings] :job_execution_settings
|
1400
1605
|
# Provides information about how a transcription job is executed. Use
|
1401
1606
|
# this field to indicate that the job can be queued for deferred
|
@@ -1413,7 +1618,7 @@ module Aws::TranscribeService
|
|
1413
1618
|
#
|
1414
1619
|
# resp = client.start_transcription_job({
|
1415
1620
|
# transcription_job_name: "TranscriptionJobName", # required
|
1416
|
-
# 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
|
1417
1622
|
# media_sample_rate_hertz: 1,
|
1418
1623
|
# media_format: "mp3", # accepts mp3, mp4, wav, flac
|
1419
1624
|
# media: { # required
|
@@ -1431,6 +1636,9 @@ module Aws::TranscribeService
|
|
1431
1636
|
# vocabulary_filter_name: "VocabularyFilterName",
|
1432
1637
|
# vocabulary_filter_method: "remove", # accepts remove, mask
|
1433
1638
|
# },
|
1639
|
+
# model_settings: {
|
1640
|
+
# language_model_name: "ModelName",
|
1641
|
+
# },
|
1434
1642
|
# job_execution_settings: {
|
1435
1643
|
# allow_deferred_execution: false,
|
1436
1644
|
# data_access_role_arn: "DataAccessRoleArn",
|
@@ -1445,7 +1653,7 @@ module Aws::TranscribeService
|
|
1445
1653
|
#
|
1446
1654
|
# resp.transcription_job.transcription_job_name #=> String
|
1447
1655
|
# resp.transcription_job.transcription_job_status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
|
1448
|
-
# 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"
|
1449
1657
|
# resp.transcription_job.media_sample_rate_hertz #=> Integer
|
1450
1658
|
# resp.transcription_job.media_format #=> String, one of "mp3", "mp4", "wav", "flac"
|
1451
1659
|
# resp.transcription_job.media.media_file_uri #=> String
|
@@ -1463,6 +1671,7 @@ module Aws::TranscribeService
|
|
1463
1671
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
1464
1672
|
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
1465
1673
|
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
1674
|
+
# resp.transcription_job.model_settings.language_model_name #=> String
|
1466
1675
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
1467
1676
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
1468
1677
|
# resp.transcription_job.content_redaction.redaction_type #=> String, one of "PII"
|
@@ -1477,24 +1686,26 @@ module Aws::TranscribeService
|
|
1477
1686
|
req.send_request(options)
|
1478
1687
|
end
|
1479
1688
|
|
1480
|
-
# Updates
|
1481
|
-
# file
|
1482
|
-
#
|
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.
|
1483
1693
|
#
|
1484
1694
|
# @option params [required, String] :vocabulary_name
|
1485
|
-
# The name of the vocabulary to update. The name is case
|
1486
|
-
# you try to update a vocabulary with the same name as a
|
1487
|
-
#
|
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.
|
1488
1698
|
#
|
1489
1699
|
# @option params [required, String] :language_code
|
1490
|
-
# The language code of the entries in the updated
|
1491
|
-
# (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.
|
1492
1703
|
#
|
1493
1704
|
# @option params [String] :vocabulary_file_uri
|
1494
|
-
# The Amazon S3
|
1495
|
-
#
|
1496
|
-
#
|
1497
|
-
#
|
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:
|
1498
1709
|
#
|
1499
1710
|
# `
|
1500
1711
|
# https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
|
@@ -1504,8 +1715,8 @@ module Aws::TranscribeService
|
|
1504
1715
|
#
|
1505
1716
|
# `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
|
1506
1717
|
#
|
1507
|
-
# For more information about S3 object names, see [Object
|
1508
|
-
# 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*.
|
1509
1720
|
#
|
1510
1721
|
# For more information about custom vocabularies in Amazon Transcribe
|
1511
1722
|
# Medical, see [Medical Custom Vocabularies][2].
|
@@ -1526,14 +1737,14 @@ module Aws::TranscribeService
|
|
1526
1737
|
#
|
1527
1738
|
# resp = client.update_medical_vocabulary({
|
1528
1739
|
# vocabulary_name: "VocabularyName", # required
|
1529
|
-
# 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
|
1530
1741
|
# vocabulary_file_uri: "Uri",
|
1531
1742
|
# })
|
1532
1743
|
#
|
1533
1744
|
# @example Response structure
|
1534
1745
|
#
|
1535
1746
|
# resp.vocabulary_name #=> String
|
1536
|
-
# 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"
|
1537
1748
|
# resp.last_modified_time #=> Time
|
1538
1749
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1539
1750
|
#
|
@@ -1551,7 +1762,7 @@ module Aws::TranscribeService
|
|
1551
1762
|
# that you provide in the request.
|
1552
1763
|
#
|
1553
1764
|
# @option params [required, String] :vocabulary_name
|
1554
|
-
# 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
|
1555
1766
|
# you try to update a vocabulary with the same name as a previous
|
1556
1767
|
# vocabulary you will receive a `ConflictException` error.
|
1557
1768
|
#
|
@@ -1590,7 +1801,7 @@ module Aws::TranscribeService
|
|
1590
1801
|
#
|
1591
1802
|
# resp = client.update_vocabulary({
|
1592
1803
|
# vocabulary_name: "VocabularyName", # required
|
1593
|
-
# 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
|
1594
1805
|
# phrases: ["Phrase"],
|
1595
1806
|
# vocabulary_file_uri: "Uri",
|
1596
1807
|
# })
|
@@ -1598,7 +1809,7 @@ module Aws::TranscribeService
|
|
1598
1809
|
# @example Response structure
|
1599
1810
|
#
|
1600
1811
|
# resp.vocabulary_name #=> String
|
1601
|
-
# 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"
|
1602
1813
|
# resp.last_modified_time #=> Time
|
1603
1814
|
# resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
|
1604
1815
|
#
|
@@ -1615,8 +1826,8 @@ module Aws::TranscribeService
|
|
1615
1826
|
#
|
1616
1827
|
# @option params [required, String] :vocabulary_filter_name
|
1617
1828
|
# The name of the vocabulary filter to update. If you try to update a
|
1618
|
-
# vocabulary filter with the same name as
|
1619
|
-
#
|
1829
|
+
# vocabulary filter with the same name as another vocabulary filter, you
|
1830
|
+
# get a `ConflictException` error.
|
1620
1831
|
#
|
1621
1832
|
# @option params [Array<String>] :words
|
1622
1833
|
# The words to use in the vocabulary filter. Only use characters from
|
@@ -1663,7 +1874,7 @@ module Aws::TranscribeService
|
|
1663
1874
|
# @example Response structure
|
1664
1875
|
#
|
1665
1876
|
# resp.vocabulary_filter_name #=> String
|
1666
|
-
# 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"
|
1667
1878
|
# resp.last_modified_time #=> Time
|
1668
1879
|
#
|
1669
1880
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter AWS API Documentation
|
@@ -1688,7 +1899,7 @@ module Aws::TranscribeService
|
|
1688
1899
|
params: params,
|
1689
1900
|
config: config)
|
1690
1901
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
1691
|
-
context[:gem_version] = '1.
|
1902
|
+
context[:gem_version] = '1.46.0'
|
1692
1903
|
Seahorse::Client::Request.new(handlers, context)
|
1693
1904
|
end
|
1694
1905
|
|