aws-sdk-transcribeservice 1.34.0 → 1.35.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a8b20d5eef067b6f52c6f7a52110c1e97f964a7
|
4
|
+
data.tar.gz: f9ca6eb895ecbb6ac8593e6465bc8bb4bbc90359
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c33a2e6113d4db050d1d632ad30655573525d297e3d6e605a4b344d357aaca2cb615dfd196de7171bbe47bb34c9417eb055fa996a236674f7cf1117cb0466be
|
7
|
+
data.tar.gz: 2e9731db2bc8871a297e5545340526054cd925982b80d04d92322dc5be1fbd42173e2bc6e7ee0c10517bedb139e979aafdb5c59cbf08634480fa596495234b1b
|
@@ -335,6 +335,76 @@ module Aws::TranscribeService
|
|
335
335
|
req.send_request(options)
|
336
336
|
end
|
337
337
|
|
338
|
+
# Creates a new vocabulary filter that you can use to filter words, such
|
339
|
+
# as profane words, from the output of a transcription job.
|
340
|
+
#
|
341
|
+
# @option params [required, String] :vocabulary_filter_name
|
342
|
+
# The vocabulary filter name. The name must be unique within the account
|
343
|
+
# that contains it.
|
344
|
+
#
|
345
|
+
# @option params [required, String] :language_code
|
346
|
+
# The language code of the words in the vocabulary filter. All words in
|
347
|
+
# the filter must be in the same language. The vocabulary filter can
|
348
|
+
# only be used with transcription jobs in the specified language.
|
349
|
+
#
|
350
|
+
# @option params [Array<String>] :words
|
351
|
+
# The words to use in the vocabulary filter. Only use characters from
|
352
|
+
# the character set defined for custom vocabularies. For a list of
|
353
|
+
# character sets, see [Character Sets for Custom Vocabularies][1].
|
354
|
+
#
|
355
|
+
# If you provide a list of words in the `Words` parameter, you can't
|
356
|
+
# use the `VocabularyFilterFileUri` parameter.
|
357
|
+
#
|
358
|
+
#
|
359
|
+
#
|
360
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
361
|
+
#
|
362
|
+
# @option params [String] :vocabulary_filter_file_uri
|
363
|
+
# The Amazon S3 location of a text file used as input to create the
|
364
|
+
# vocabulary filter. Only use characters from the character set defined
|
365
|
+
# for custom vocabularies. For a list of character sets, see [Character
|
366
|
+
# Sets for Custom Vocabularies][1].
|
367
|
+
#
|
368
|
+
# The specified file must be less than 50 KB of UTF-8 characters.
|
369
|
+
#
|
370
|
+
# If you provide the location of a list of words in the
|
371
|
+
# `VocabularyFilterFileUri` parameter, you can't use the `Words`
|
372
|
+
# parameter.
|
373
|
+
#
|
374
|
+
#
|
375
|
+
#
|
376
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
377
|
+
#
|
378
|
+
# @return [Types::CreateVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
379
|
+
#
|
380
|
+
# * {Types::CreateVocabularyFilterResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
381
|
+
# * {Types::CreateVocabularyFilterResponse#language_code #language_code} => String
|
382
|
+
# * {Types::CreateVocabularyFilterResponse#last_modified_time #last_modified_time} => Time
|
383
|
+
#
|
384
|
+
# @example Request syntax with placeholder values
|
385
|
+
#
|
386
|
+
# resp = client.create_vocabulary_filter({
|
387
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
388
|
+
# language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
|
389
|
+
# words: ["Word"],
|
390
|
+
# vocabulary_filter_file_uri: "Uri",
|
391
|
+
# })
|
392
|
+
#
|
393
|
+
# @example Response structure
|
394
|
+
#
|
395
|
+
# resp.vocabulary_filter_name #=> String
|
396
|
+
# resp.language_code #=> String, one of "en-US", "es-US", "en-AU", "fr-CA", "en-GB", "de-DE", "pt-BR", "fr-FR", "it-IT", "ko-KR", "es-ES", "en-IN", "hi-IN", "ar-SA", "ru-RU", "zh-CN", "nl-NL", "id-ID", "ta-IN", "fa-IR", "en-IE", "en-AB", "en-WL", "pt-PT", "te-IN", "tr-TR", "de-CH", "he-IL", "ms-MY", "ja-JP", "ar-AE"
|
397
|
+
# resp.last_modified_time #=> Time
|
398
|
+
#
|
399
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter AWS API Documentation
|
400
|
+
#
|
401
|
+
# @overload create_vocabulary_filter(params = {})
|
402
|
+
# @param [Hash] params ({})
|
403
|
+
def create_vocabulary_filter(params = {}, options = {})
|
404
|
+
req = build_request(:create_vocabulary_filter, params)
|
405
|
+
req.send_request(options)
|
406
|
+
end
|
407
|
+
|
338
408
|
# Deletes a previously submitted transcription job along with any other
|
339
409
|
# generated results such as the transcription, models, and so on.
|
340
410
|
#
|
@@ -380,6 +450,28 @@ module Aws::TranscribeService
|
|
380
450
|
req.send_request(options)
|
381
451
|
end
|
382
452
|
|
453
|
+
# Removes a vocabulary filter.
|
454
|
+
#
|
455
|
+
# @option params [required, String] :vocabulary_filter_name
|
456
|
+
# The name of the vocabulary filter to remove.
|
457
|
+
#
|
458
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
459
|
+
#
|
460
|
+
# @example Request syntax with placeholder values
|
461
|
+
#
|
462
|
+
# resp = client.delete_vocabulary_filter({
|
463
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
464
|
+
# })
|
465
|
+
#
|
466
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilter AWS API Documentation
|
467
|
+
#
|
468
|
+
# @overload delete_vocabulary_filter(params = {})
|
469
|
+
# @param [Hash] params ({})
|
470
|
+
def delete_vocabulary_filter(params = {}, options = {})
|
471
|
+
req = build_request(:delete_vocabulary_filter, params)
|
472
|
+
req.send_request(options)
|
473
|
+
end
|
474
|
+
|
383
475
|
# Returns information about a transcription job. To see the status of
|
384
476
|
# the job, check the `TranscriptionJobStatus` field. If the status is
|
385
477
|
# `COMPLETED`, the job is finished and you can find the results at the
|
@@ -417,6 +509,8 @@ module Aws::TranscribeService
|
|
417
509
|
# resp.transcription_job.settings.channel_identification #=> Boolean
|
418
510
|
# resp.transcription_job.settings.show_alternatives #=> Boolean
|
419
511
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
512
|
+
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
513
|
+
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
420
514
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
421
515
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
422
516
|
#
|
@@ -468,6 +562,40 @@ module Aws::TranscribeService
|
|
468
562
|
req.send_request(options)
|
469
563
|
end
|
470
564
|
|
565
|
+
# Returns information about a vocabulary filter.
|
566
|
+
#
|
567
|
+
# @option params [required, String] :vocabulary_filter_name
|
568
|
+
# The name of the vocabulary filter for which to return information.
|
569
|
+
#
|
570
|
+
# @return [Types::GetVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
571
|
+
#
|
572
|
+
# * {Types::GetVocabularyFilterResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
573
|
+
# * {Types::GetVocabularyFilterResponse#language_code #language_code} => String
|
574
|
+
# * {Types::GetVocabularyFilterResponse#last_modified_time #last_modified_time} => Time
|
575
|
+
# * {Types::GetVocabularyFilterResponse#download_uri #download_uri} => String
|
576
|
+
#
|
577
|
+
# @example Request syntax with placeholder values
|
578
|
+
#
|
579
|
+
# resp = client.get_vocabulary_filter({
|
580
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
581
|
+
# })
|
582
|
+
#
|
583
|
+
# @example Response structure
|
584
|
+
#
|
585
|
+
# resp.vocabulary_filter_name #=> String
|
586
|
+
# resp.language_code #=> String, one of "en-US", "es-US", "en-AU", "fr-CA", "en-GB", "de-DE", "pt-BR", "fr-FR", "it-IT", "ko-KR", "es-ES", "en-IN", "hi-IN", "ar-SA", "ru-RU", "zh-CN", "nl-NL", "id-ID", "ta-IN", "fa-IR", "en-IE", "en-AB", "en-WL", "pt-PT", "te-IN", "tr-TR", "de-CH", "he-IL", "ms-MY", "ja-JP", "ar-AE"
|
587
|
+
# resp.last_modified_time #=> Time
|
588
|
+
# resp.download_uri #=> String
|
589
|
+
#
|
590
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilter AWS API Documentation
|
591
|
+
#
|
592
|
+
# @overload get_vocabulary_filter(params = {})
|
593
|
+
# @param [Hash] params ({})
|
594
|
+
def get_vocabulary_filter(params = {}, options = {})
|
595
|
+
req = build_request(:get_vocabulary_filter, params)
|
596
|
+
req.send_request(options)
|
597
|
+
end
|
598
|
+
|
471
599
|
# Lists transcription jobs with the specified status.
|
472
600
|
#
|
473
601
|
# @option params [String] :status
|
@@ -583,6 +711,52 @@ module Aws::TranscribeService
|
|
583
711
|
req.send_request(options)
|
584
712
|
end
|
585
713
|
|
714
|
+
# Gets information about vocabulary filters.
|
715
|
+
#
|
716
|
+
# @option params [String] :next_token
|
717
|
+
# If the result of the previous request to `ListVocabularyFilters` was
|
718
|
+
# truncated, include the `NextToken` to fetch the next set of
|
719
|
+
# collections.
|
720
|
+
#
|
721
|
+
# @option params [Integer] :max_results
|
722
|
+
# The maximum number of filters to return in the response. If there are
|
723
|
+
# fewer results in the list, this response contains only the actual
|
724
|
+
# results.
|
725
|
+
#
|
726
|
+
# @option params [String] :name_contains
|
727
|
+
# Filters the response so that it only contains vocabulary filters whose
|
728
|
+
# name contains the specified string.
|
729
|
+
#
|
730
|
+
# @return [Types::ListVocabularyFiltersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
731
|
+
#
|
732
|
+
# * {Types::ListVocabularyFiltersResponse#next_token #next_token} => String
|
733
|
+
# * {Types::ListVocabularyFiltersResponse#vocabulary_filters #vocabulary_filters} => Array<Types::VocabularyFilterInfo>
|
734
|
+
#
|
735
|
+
# @example Request syntax with placeholder values
|
736
|
+
#
|
737
|
+
# resp = client.list_vocabulary_filters({
|
738
|
+
# next_token: "NextToken",
|
739
|
+
# max_results: 1,
|
740
|
+
# name_contains: "VocabularyFilterName",
|
741
|
+
# })
|
742
|
+
#
|
743
|
+
# @example Response structure
|
744
|
+
#
|
745
|
+
# resp.next_token #=> String
|
746
|
+
# resp.vocabulary_filters #=> Array
|
747
|
+
# resp.vocabulary_filters[0].vocabulary_filter_name #=> String
|
748
|
+
# resp.vocabulary_filters[0].language_code #=> String, one of "en-US", "es-US", "en-AU", "fr-CA", "en-GB", "de-DE", "pt-BR", "fr-FR", "it-IT", "ko-KR", "es-ES", "en-IN", "hi-IN", "ar-SA", "ru-RU", "zh-CN", "nl-NL", "id-ID", "ta-IN", "fa-IR", "en-IE", "en-AB", "en-WL", "pt-PT", "te-IN", "tr-TR", "de-CH", "he-IL", "ms-MY", "ja-JP", "ar-AE"
|
749
|
+
# resp.vocabulary_filters[0].last_modified_time #=> Time
|
750
|
+
#
|
751
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters AWS API Documentation
|
752
|
+
#
|
753
|
+
# @overload list_vocabulary_filters(params = {})
|
754
|
+
# @param [Hash] params ({})
|
755
|
+
def list_vocabulary_filters(params = {}, options = {})
|
756
|
+
req = build_request(:list_vocabulary_filters, params)
|
757
|
+
req.send_request(options)
|
758
|
+
end
|
759
|
+
|
586
760
|
# Starts an asynchronous job to transcribe speech to text.
|
587
761
|
#
|
588
762
|
# @option params [required, String] :transcription_job_name
|
@@ -696,6 +870,8 @@ module Aws::TranscribeService
|
|
696
870
|
# channel_identification: false,
|
697
871
|
# show_alternatives: false,
|
698
872
|
# max_alternatives: 1,
|
873
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
874
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask
|
699
875
|
# },
|
700
876
|
# job_execution_settings: {
|
701
877
|
# allow_deferred_execution: false,
|
@@ -722,6 +898,8 @@ module Aws::TranscribeService
|
|
722
898
|
# resp.transcription_job.settings.channel_identification #=> Boolean
|
723
899
|
# resp.transcription_job.settings.show_alternatives #=> Boolean
|
724
900
|
# resp.transcription_job.settings.max_alternatives #=> Integer
|
901
|
+
# resp.transcription_job.settings.vocabulary_filter_name #=> String
|
902
|
+
# resp.transcription_job.settings.vocabulary_filter_method #=> String, one of "remove", "mask"
|
725
903
|
# resp.transcription_job.job_execution_settings.allow_deferred_execution #=> Boolean
|
726
904
|
# resp.transcription_job.job_execution_settings.data_access_role_arn #=> String
|
727
905
|
#
|
@@ -803,6 +981,68 @@ module Aws::TranscribeService
|
|
803
981
|
req.send_request(options)
|
804
982
|
end
|
805
983
|
|
984
|
+
# Updates a vocabulary filter with a new list of filtered words.
|
985
|
+
#
|
986
|
+
# @option params [required, String] :vocabulary_filter_name
|
987
|
+
# The name of the vocabulary filter to update.
|
988
|
+
#
|
989
|
+
# @option params [Array<String>] :words
|
990
|
+
# The words to use in the vocabulary filter. Only use characters from
|
991
|
+
# the character set defined for custom vocabularies. For a list of
|
992
|
+
# character sets, see [Character Sets for Custom Vocabularies][1].
|
993
|
+
#
|
994
|
+
# If you provide a list of words in the `Words` parameter, you can't
|
995
|
+
# use the `VocabularyFilterFileUri` parameter.
|
996
|
+
#
|
997
|
+
#
|
998
|
+
#
|
999
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
1000
|
+
#
|
1001
|
+
# @option params [String] :vocabulary_filter_file_uri
|
1002
|
+
# The Amazon S3 location of a text file used as input to create the
|
1003
|
+
# vocabulary filter. Only use characters from the character set defined
|
1004
|
+
# for custom vocabularies. For a list of character sets, see [Character
|
1005
|
+
# Sets for Custom Vocabularies][1].
|
1006
|
+
#
|
1007
|
+
# The specified file must be less than 50 KB of UTF-8 characters.
|
1008
|
+
#
|
1009
|
+
# If you provide the location of a list of words in the
|
1010
|
+
# `VocabularyFilterFileUri` parameter, you can't use the `Words`
|
1011
|
+
# parameter.
|
1012
|
+
#
|
1013
|
+
#
|
1014
|
+
#
|
1015
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
1016
|
+
#
|
1017
|
+
# @return [Types::UpdateVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1018
|
+
#
|
1019
|
+
# * {Types::UpdateVocabularyFilterResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
1020
|
+
# * {Types::UpdateVocabularyFilterResponse#language_code #language_code} => String
|
1021
|
+
# * {Types::UpdateVocabularyFilterResponse#last_modified_time #last_modified_time} => Time
|
1022
|
+
#
|
1023
|
+
# @example Request syntax with placeholder values
|
1024
|
+
#
|
1025
|
+
# resp = client.update_vocabulary_filter({
|
1026
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
1027
|
+
# words: ["Word"],
|
1028
|
+
# vocabulary_filter_file_uri: "Uri",
|
1029
|
+
# })
|
1030
|
+
#
|
1031
|
+
# @example Response structure
|
1032
|
+
#
|
1033
|
+
# resp.vocabulary_filter_name #=> String
|
1034
|
+
# resp.language_code #=> String, one of "en-US", "es-US", "en-AU", "fr-CA", "en-GB", "de-DE", "pt-BR", "fr-FR", "it-IT", "ko-KR", "es-ES", "en-IN", "hi-IN", "ar-SA", "ru-RU", "zh-CN", "nl-NL", "id-ID", "ta-IN", "fa-IR", "en-IE", "en-AB", "en-WL", "pt-PT", "te-IN", "tr-TR", "de-CH", "he-IL", "ms-MY", "ja-JP", "ar-AE"
|
1035
|
+
# resp.last_modified_time #=> Time
|
1036
|
+
#
|
1037
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter AWS API Documentation
|
1038
|
+
#
|
1039
|
+
# @overload update_vocabulary_filter(params = {})
|
1040
|
+
# @param [Hash] params ({})
|
1041
|
+
def update_vocabulary_filter(params = {}, options = {})
|
1042
|
+
req = build_request(:update_vocabulary_filter, params)
|
1043
|
+
req.send_request(options)
|
1044
|
+
end
|
1045
|
+
|
806
1046
|
# @!endgroup
|
807
1047
|
|
808
1048
|
# @param params ({})
|
@@ -816,7 +1056,7 @@ module Aws::TranscribeService
|
|
816
1056
|
params: params,
|
817
1057
|
config: config)
|
818
1058
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
819
|
-
context[:gem_version] = '1.
|
1059
|
+
context[:gem_version] = '1.35.0'
|
820
1060
|
Seahorse::Client::Request.new(handlers, context)
|
821
1061
|
end
|
822
1062
|
|
@@ -14,15 +14,20 @@ module Aws::TranscribeService
|
|
14
14
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
15
15
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
16
16
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
17
|
+
CreateVocabularyFilterRequest = Shapes::StructureShape.new(name: 'CreateVocabularyFilterRequest')
|
18
|
+
CreateVocabularyFilterResponse = Shapes::StructureShape.new(name: 'CreateVocabularyFilterResponse')
|
17
19
|
CreateVocabularyRequest = Shapes::StructureShape.new(name: 'CreateVocabularyRequest')
|
18
20
|
CreateVocabularyResponse = Shapes::StructureShape.new(name: 'CreateVocabularyResponse')
|
19
21
|
DataAccessRoleArn = Shapes::StringShape.new(name: 'DataAccessRoleArn')
|
20
22
|
DateTime = Shapes::TimestampShape.new(name: 'DateTime')
|
21
23
|
DeleteTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteTranscriptionJobRequest')
|
24
|
+
DeleteVocabularyFilterRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyFilterRequest')
|
22
25
|
DeleteVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyRequest')
|
23
26
|
FailureReason = Shapes::StringShape.new(name: 'FailureReason')
|
24
27
|
GetTranscriptionJobRequest = Shapes::StructureShape.new(name: 'GetTranscriptionJobRequest')
|
25
28
|
GetTranscriptionJobResponse = Shapes::StructureShape.new(name: 'GetTranscriptionJobResponse')
|
29
|
+
GetVocabularyFilterRequest = Shapes::StructureShape.new(name: 'GetVocabularyFilterRequest')
|
30
|
+
GetVocabularyFilterResponse = Shapes::StructureShape.new(name: 'GetVocabularyFilterResponse')
|
26
31
|
GetVocabularyRequest = Shapes::StructureShape.new(name: 'GetVocabularyRequest')
|
27
32
|
GetVocabularyResponse = Shapes::StructureShape.new(name: 'GetVocabularyResponse')
|
28
33
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
@@ -34,6 +39,8 @@ module Aws::TranscribeService
|
|
34
39
|
ListTranscriptionJobsResponse = Shapes::StructureShape.new(name: 'ListTranscriptionJobsResponse')
|
35
40
|
ListVocabulariesRequest = Shapes::StructureShape.new(name: 'ListVocabulariesRequest')
|
36
41
|
ListVocabulariesResponse = Shapes::StructureShape.new(name: 'ListVocabulariesResponse')
|
42
|
+
ListVocabularyFiltersRequest = Shapes::StructureShape.new(name: 'ListVocabularyFiltersRequest')
|
43
|
+
ListVocabularyFiltersResponse = Shapes::StructureShape.new(name: 'ListVocabularyFiltersResponse')
|
37
44
|
MaxAlternatives = Shapes::IntegerShape.new(name: 'MaxAlternatives')
|
38
45
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
39
46
|
MaxSpeakers = Shapes::IntegerShape.new(name: 'MaxSpeakers')
|
@@ -56,13 +63,21 @@ module Aws::TranscribeService
|
|
56
63
|
TranscriptionJobStatus = Shapes::StringShape.new(name: 'TranscriptionJobStatus')
|
57
64
|
TranscriptionJobSummaries = Shapes::ListShape.new(name: 'TranscriptionJobSummaries')
|
58
65
|
TranscriptionJobSummary = Shapes::StructureShape.new(name: 'TranscriptionJobSummary')
|
66
|
+
UpdateVocabularyFilterRequest = Shapes::StructureShape.new(name: 'UpdateVocabularyFilterRequest')
|
67
|
+
UpdateVocabularyFilterResponse = Shapes::StructureShape.new(name: 'UpdateVocabularyFilterResponse')
|
59
68
|
UpdateVocabularyRequest = Shapes::StructureShape.new(name: 'UpdateVocabularyRequest')
|
60
69
|
UpdateVocabularyResponse = Shapes::StructureShape.new(name: 'UpdateVocabularyResponse')
|
61
70
|
Uri = Shapes::StringShape.new(name: 'Uri')
|
62
71
|
Vocabularies = Shapes::ListShape.new(name: 'Vocabularies')
|
72
|
+
VocabularyFilterInfo = Shapes::StructureShape.new(name: 'VocabularyFilterInfo')
|
73
|
+
VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
|
74
|
+
VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
|
75
|
+
VocabularyFilters = Shapes::ListShape.new(name: 'VocabularyFilters')
|
63
76
|
VocabularyInfo = Shapes::StructureShape.new(name: 'VocabularyInfo')
|
64
77
|
VocabularyName = Shapes::StringShape.new(name: 'VocabularyName')
|
65
78
|
VocabularyState = Shapes::StringShape.new(name: 'VocabularyState')
|
79
|
+
Word = Shapes::StringShape.new(name: 'Word')
|
80
|
+
Words = Shapes::ListShape.new(name: 'Words')
|
66
81
|
|
67
82
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: FailureReason, location_name: "Message"))
|
68
83
|
BadRequestException.struct_class = Types::BadRequestException
|
@@ -70,6 +85,17 @@ module Aws::TranscribeService
|
|
70
85
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
71
86
|
ConflictException.struct_class = Types::ConflictException
|
72
87
|
|
88
|
+
CreateVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
|
89
|
+
CreateVocabularyFilterRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
90
|
+
CreateVocabularyFilterRequest.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
|
91
|
+
CreateVocabularyFilterRequest.add_member(:vocabulary_filter_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFilterFileUri"))
|
92
|
+
CreateVocabularyFilterRequest.struct_class = Types::CreateVocabularyFilterRequest
|
93
|
+
|
94
|
+
CreateVocabularyFilterResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
95
|
+
CreateVocabularyFilterResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
96
|
+
CreateVocabularyFilterResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
|
97
|
+
CreateVocabularyFilterResponse.struct_class = Types::CreateVocabularyFilterResponse
|
98
|
+
|
73
99
|
CreateVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
|
74
100
|
CreateVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
75
101
|
CreateVocabularyRequest.add_member(:phrases, Shapes::ShapeRef.new(shape: Phrases, location_name: "Phrases"))
|
@@ -86,6 +112,9 @@ module Aws::TranscribeService
|
|
86
112
|
DeleteTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName"))
|
87
113
|
DeleteTranscriptionJobRequest.struct_class = Types::DeleteTranscriptionJobRequest
|
88
114
|
|
115
|
+
DeleteVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
|
116
|
+
DeleteVocabularyFilterRequest.struct_class = Types::DeleteVocabularyFilterRequest
|
117
|
+
|
89
118
|
DeleteVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
|
90
119
|
DeleteVocabularyRequest.struct_class = Types::DeleteVocabularyRequest
|
91
120
|
|
@@ -95,6 +124,15 @@ module Aws::TranscribeService
|
|
95
124
|
GetTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob"))
|
96
125
|
GetTranscriptionJobResponse.struct_class = Types::GetTranscriptionJobResponse
|
97
126
|
|
127
|
+
GetVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
|
128
|
+
GetVocabularyFilterRequest.struct_class = Types::GetVocabularyFilterRequest
|
129
|
+
|
130
|
+
GetVocabularyFilterResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
131
|
+
GetVocabularyFilterResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
132
|
+
GetVocabularyFilterResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
|
133
|
+
GetVocabularyFilterResponse.add_member(:download_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "DownloadUri"))
|
134
|
+
GetVocabularyFilterResponse.struct_class = Types::GetVocabularyFilterResponse
|
135
|
+
|
98
136
|
GetVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
|
99
137
|
GetVocabularyRequest.struct_class = Types::GetVocabularyRequest
|
100
138
|
|
@@ -138,6 +176,15 @@ module Aws::TranscribeService
|
|
138
176
|
ListVocabulariesResponse.add_member(:vocabularies, Shapes::ShapeRef.new(shape: Vocabularies, location_name: "Vocabularies"))
|
139
177
|
ListVocabulariesResponse.struct_class = Types::ListVocabulariesResponse
|
140
178
|
|
179
|
+
ListVocabularyFiltersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
180
|
+
ListVocabularyFiltersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
181
|
+
ListVocabularyFiltersRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "NameContains"))
|
182
|
+
ListVocabularyFiltersRequest.struct_class = Types::ListVocabularyFiltersRequest
|
183
|
+
|
184
|
+
ListVocabularyFiltersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
185
|
+
ListVocabularyFiltersResponse.add_member(:vocabulary_filters, Shapes::ShapeRef.new(shape: VocabularyFilters, location_name: "VocabularyFilters"))
|
186
|
+
ListVocabularyFiltersResponse.struct_class = Types::ListVocabularyFiltersResponse
|
187
|
+
|
141
188
|
Media.add_member(:media_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "MediaFileUri"))
|
142
189
|
Media.struct_class = Types::Media
|
143
190
|
|
@@ -152,6 +199,8 @@ module Aws::TranscribeService
|
|
152
199
|
Settings.add_member(:channel_identification, Shapes::ShapeRef.new(shape: Boolean, location_name: "ChannelIdentification"))
|
153
200
|
Settings.add_member(:show_alternatives, Shapes::ShapeRef.new(shape: Boolean, location_name: "ShowAlternatives"))
|
154
201
|
Settings.add_member(:max_alternatives, Shapes::ShapeRef.new(shape: MaxAlternatives, location_name: "MaxAlternatives"))
|
202
|
+
Settings.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
203
|
+
Settings.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location_name: "VocabularyFilterMethod"))
|
155
204
|
Settings.struct_class = Types::Settings
|
156
205
|
|
157
206
|
StartTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName"))
|
@@ -198,6 +247,16 @@ module Aws::TranscribeService
|
|
198
247
|
TranscriptionJobSummary.add_member(:output_location_type, Shapes::ShapeRef.new(shape: OutputLocationType, location_name: "OutputLocationType"))
|
199
248
|
TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
|
200
249
|
|
250
|
+
UpdateVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
|
251
|
+
UpdateVocabularyFilterRequest.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
|
252
|
+
UpdateVocabularyFilterRequest.add_member(:vocabulary_filter_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFilterFileUri"))
|
253
|
+
UpdateVocabularyFilterRequest.struct_class = Types::UpdateVocabularyFilterRequest
|
254
|
+
|
255
|
+
UpdateVocabularyFilterResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
256
|
+
UpdateVocabularyFilterResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
257
|
+
UpdateVocabularyFilterResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
|
258
|
+
UpdateVocabularyFilterResponse.struct_class = Types::UpdateVocabularyFilterResponse
|
259
|
+
|
201
260
|
UpdateVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
|
202
261
|
UpdateVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
203
262
|
UpdateVocabularyRequest.add_member(:phrases, Shapes::ShapeRef.new(shape: Phrases, location_name: "Phrases"))
|
@@ -212,12 +271,21 @@ module Aws::TranscribeService
|
|
212
271
|
|
213
272
|
Vocabularies.member = Shapes::ShapeRef.new(shape: VocabularyInfo)
|
214
273
|
|
274
|
+
VocabularyFilterInfo.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
275
|
+
VocabularyFilterInfo.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
276
|
+
VocabularyFilterInfo.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
|
277
|
+
VocabularyFilterInfo.struct_class = Types::VocabularyFilterInfo
|
278
|
+
|
279
|
+
VocabularyFilters.member = Shapes::ShapeRef.new(shape: VocabularyFilterInfo)
|
280
|
+
|
215
281
|
VocabularyInfo.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
216
282
|
VocabularyInfo.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
217
283
|
VocabularyInfo.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
|
218
284
|
VocabularyInfo.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState"))
|
219
285
|
VocabularyInfo.struct_class = Types::VocabularyInfo
|
220
286
|
|
287
|
+
Words.member = Shapes::ShapeRef.new(shape: Word)
|
288
|
+
|
221
289
|
|
222
290
|
# @api private
|
223
291
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -249,6 +317,18 @@ module Aws::TranscribeService
|
|
249
317
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
250
318
|
end)
|
251
319
|
|
320
|
+
api.add_operation(:create_vocabulary_filter, Seahorse::Model::Operation.new.tap do |o|
|
321
|
+
o.name = "CreateVocabularyFilter"
|
322
|
+
o.http_method = "POST"
|
323
|
+
o.http_request_uri = "/"
|
324
|
+
o.input = Shapes::ShapeRef.new(shape: CreateVocabularyFilterRequest)
|
325
|
+
o.output = Shapes::ShapeRef.new(shape: CreateVocabularyFilterResponse)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
328
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
330
|
+
end)
|
331
|
+
|
252
332
|
api.add_operation(:delete_transcription_job, Seahorse::Model::Operation.new.tap do |o|
|
253
333
|
o.name = "DeleteTranscriptionJob"
|
254
334
|
o.http_method = "POST"
|
@@ -272,6 +352,18 @@ module Aws::TranscribeService
|
|
272
352
|
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
273
353
|
end)
|
274
354
|
|
355
|
+
api.add_operation(:delete_vocabulary_filter, Seahorse::Model::Operation.new.tap do |o|
|
356
|
+
o.name = "DeleteVocabularyFilter"
|
357
|
+
o.http_method = "POST"
|
358
|
+
o.http_request_uri = "/"
|
359
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteVocabularyFilterRequest)
|
360
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
361
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
362
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
365
|
+
end)
|
366
|
+
|
275
367
|
api.add_operation(:get_transcription_job, Seahorse::Model::Operation.new.tap do |o|
|
276
368
|
o.name = "GetTranscriptionJob"
|
277
369
|
o.http_method = "POST"
|
@@ -296,6 +388,18 @@ module Aws::TranscribeService
|
|
296
388
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
297
389
|
end)
|
298
390
|
|
391
|
+
api.add_operation(:get_vocabulary_filter, Seahorse::Model::Operation.new.tap do |o|
|
392
|
+
o.name = "GetVocabularyFilter"
|
393
|
+
o.http_method = "POST"
|
394
|
+
o.http_request_uri = "/"
|
395
|
+
o.input = Shapes::ShapeRef.new(shape: GetVocabularyFilterRequest)
|
396
|
+
o.output = Shapes::ShapeRef.new(shape: GetVocabularyFilterResponse)
|
397
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
398
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
399
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
400
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
401
|
+
end)
|
402
|
+
|
299
403
|
api.add_operation(:list_transcription_jobs, Seahorse::Model::Operation.new.tap do |o|
|
300
404
|
o.name = "ListTranscriptionJobs"
|
301
405
|
o.http_method = "POST"
|
@@ -330,6 +434,23 @@ module Aws::TranscribeService
|
|
330
434
|
)
|
331
435
|
end)
|
332
436
|
|
437
|
+
api.add_operation(:list_vocabulary_filters, Seahorse::Model::Operation.new.tap do |o|
|
438
|
+
o.name = "ListVocabularyFilters"
|
439
|
+
o.http_method = "POST"
|
440
|
+
o.http_request_uri = "/"
|
441
|
+
o.input = Shapes::ShapeRef.new(shape: ListVocabularyFiltersRequest)
|
442
|
+
o.output = Shapes::ShapeRef.new(shape: ListVocabularyFiltersResponse)
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
446
|
+
o[:pager] = Aws::Pager.new(
|
447
|
+
limit_key: "max_results",
|
448
|
+
tokens: {
|
449
|
+
"next_token" => "next_token"
|
450
|
+
}
|
451
|
+
)
|
452
|
+
end)
|
453
|
+
|
333
454
|
api.add_operation(:start_transcription_job, Seahorse::Model::Operation.new.tap do |o|
|
334
455
|
o.name = "StartTranscriptionJob"
|
335
456
|
o.http_method = "POST"
|
@@ -354,6 +475,18 @@ module Aws::TranscribeService
|
|
354
475
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
355
476
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
356
477
|
end)
|
478
|
+
|
479
|
+
api.add_operation(:update_vocabulary_filter, Seahorse::Model::Operation.new.tap do |o|
|
480
|
+
o.name = "UpdateVocabularyFilter"
|
481
|
+
o.http_method = "POST"
|
482
|
+
o.http_request_uri = "/"
|
483
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateVocabularyFilterRequest)
|
484
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateVocabularyFilterResponse)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
488
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
489
|
+
end)
|
357
490
|
end
|
358
491
|
|
359
492
|
end
|
@@ -40,6 +40,88 @@ module Aws::TranscribeService
|
|
40
40
|
include Aws::Structure
|
41
41
|
end
|
42
42
|
|
43
|
+
# @note When making an API call, you may pass CreateVocabularyFilterRequest
|
44
|
+
# data as a hash:
|
45
|
+
#
|
46
|
+
# {
|
47
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
48
|
+
# language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
|
49
|
+
# words: ["Word"],
|
50
|
+
# vocabulary_filter_file_uri: "Uri",
|
51
|
+
# }
|
52
|
+
#
|
53
|
+
# @!attribute [rw] vocabulary_filter_name
|
54
|
+
# The vocabulary filter name. The name must be unique within the
|
55
|
+
# account that contains it.
|
56
|
+
# @return [String]
|
57
|
+
#
|
58
|
+
# @!attribute [rw] language_code
|
59
|
+
# The language code of the words in the vocabulary filter. All words
|
60
|
+
# in the filter must be in the same language. The vocabulary filter
|
61
|
+
# can only be used with transcription jobs in the specified language.
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
# @!attribute [rw] words
|
65
|
+
# The words to use in the vocabulary filter. Only use characters from
|
66
|
+
# the character set defined for custom vocabularies. For a list of
|
67
|
+
# character sets, see [Character Sets for Custom Vocabularies][1].
|
68
|
+
#
|
69
|
+
# If you provide a list of words in the `Words` parameter, you can't
|
70
|
+
# use the `VocabularyFilterFileUri` parameter.
|
71
|
+
#
|
72
|
+
#
|
73
|
+
#
|
74
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
75
|
+
# @return [Array<String>]
|
76
|
+
#
|
77
|
+
# @!attribute [rw] vocabulary_filter_file_uri
|
78
|
+
# The Amazon S3 location of a text file used as input to create the
|
79
|
+
# vocabulary filter. Only use characters from the character set
|
80
|
+
# defined for custom vocabularies. For a list of character sets, see
|
81
|
+
# [Character Sets for Custom Vocabularies][1].
|
82
|
+
#
|
83
|
+
# The specified file must be less than 50 KB of UTF-8 characters.
|
84
|
+
#
|
85
|
+
# If you provide the location of a list of words in the
|
86
|
+
# `VocabularyFilterFileUri` parameter, you can't use the `Words`
|
87
|
+
# parameter.
|
88
|
+
#
|
89
|
+
#
|
90
|
+
#
|
91
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
92
|
+
# @return [String]
|
93
|
+
#
|
94
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilterRequest AWS API Documentation
|
95
|
+
#
|
96
|
+
class CreateVocabularyFilterRequest < Struct.new(
|
97
|
+
:vocabulary_filter_name,
|
98
|
+
:language_code,
|
99
|
+
:words,
|
100
|
+
:vocabulary_filter_file_uri)
|
101
|
+
include Aws::Structure
|
102
|
+
end
|
103
|
+
|
104
|
+
# @!attribute [rw] vocabulary_filter_name
|
105
|
+
# The name of the vocabulary filter.
|
106
|
+
# @return [String]
|
107
|
+
#
|
108
|
+
# @!attribute [rw] language_code
|
109
|
+
# The language code of the words in the collection.
|
110
|
+
# @return [String]
|
111
|
+
#
|
112
|
+
# @!attribute [rw] last_modified_time
|
113
|
+
# The date and time that the vocabulary filter was modified.
|
114
|
+
# @return [Time]
|
115
|
+
#
|
116
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilterResponse AWS API Documentation
|
117
|
+
#
|
118
|
+
class CreateVocabularyFilterResponse < Struct.new(
|
119
|
+
:vocabulary_filter_name,
|
120
|
+
:language_code,
|
121
|
+
:last_modified_time)
|
122
|
+
include Aws::Structure
|
123
|
+
end
|
124
|
+
|
43
125
|
# @note When making an API call, you may pass CreateVocabularyRequest
|
44
126
|
# data as a hash:
|
45
127
|
#
|
@@ -150,6 +232,24 @@ module Aws::TranscribeService
|
|
150
232
|
include Aws::Structure
|
151
233
|
end
|
152
234
|
|
235
|
+
# @note When making an API call, you may pass DeleteVocabularyFilterRequest
|
236
|
+
# data as a hash:
|
237
|
+
#
|
238
|
+
# {
|
239
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
240
|
+
# }
|
241
|
+
#
|
242
|
+
# @!attribute [rw] vocabulary_filter_name
|
243
|
+
# The name of the vocabulary filter to remove.
|
244
|
+
# @return [String]
|
245
|
+
#
|
246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilterRequest AWS API Documentation
|
247
|
+
#
|
248
|
+
class DeleteVocabularyFilterRequest < Struct.new(
|
249
|
+
:vocabulary_filter_name)
|
250
|
+
include Aws::Structure
|
251
|
+
end
|
252
|
+
|
153
253
|
# @note When making an API call, you may pass DeleteVocabularyRequest
|
154
254
|
# data as a hash:
|
155
255
|
#
|
@@ -197,6 +297,52 @@ module Aws::TranscribeService
|
|
197
297
|
include Aws::Structure
|
198
298
|
end
|
199
299
|
|
300
|
+
# @note When making an API call, you may pass GetVocabularyFilterRequest
|
301
|
+
# data as a hash:
|
302
|
+
#
|
303
|
+
# {
|
304
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
305
|
+
# }
|
306
|
+
#
|
307
|
+
# @!attribute [rw] vocabulary_filter_name
|
308
|
+
# The name of the vocabulary filter for which to return information.
|
309
|
+
# @return [String]
|
310
|
+
#
|
311
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilterRequest AWS API Documentation
|
312
|
+
#
|
313
|
+
class GetVocabularyFilterRequest < Struct.new(
|
314
|
+
:vocabulary_filter_name)
|
315
|
+
include Aws::Structure
|
316
|
+
end
|
317
|
+
|
318
|
+
# @!attribute [rw] vocabulary_filter_name
|
319
|
+
# The name of the vocabulary filter.
|
320
|
+
# @return [String]
|
321
|
+
#
|
322
|
+
# @!attribute [rw] language_code
|
323
|
+
# The language code of the words in the vocabulary filter.
|
324
|
+
# @return [String]
|
325
|
+
#
|
326
|
+
# @!attribute [rw] last_modified_time
|
327
|
+
# The date and time that the contents of the vocabulary filter were
|
328
|
+
# updated.
|
329
|
+
# @return [Time]
|
330
|
+
#
|
331
|
+
# @!attribute [rw] download_uri
|
332
|
+
# The URI of the list of words in the vocabulary filter. You can use
|
333
|
+
# this URI to get the list of words.
|
334
|
+
# @return [String]
|
335
|
+
#
|
336
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilterResponse AWS API Documentation
|
337
|
+
#
|
338
|
+
class GetVocabularyFilterResponse < Struct.new(
|
339
|
+
:vocabulary_filter_name,
|
340
|
+
:language_code,
|
341
|
+
:last_modified_time,
|
342
|
+
:download_uri)
|
343
|
+
include Aws::Structure
|
344
|
+
end
|
345
|
+
|
200
346
|
# @note When making an API call, you may pass GetVocabularyRequest
|
201
347
|
# data as a hash:
|
202
348
|
#
|
@@ -464,6 +610,66 @@ module Aws::TranscribeService
|
|
464
610
|
include Aws::Structure
|
465
611
|
end
|
466
612
|
|
613
|
+
# @note When making an API call, you may pass ListVocabularyFiltersRequest
|
614
|
+
# data as a hash:
|
615
|
+
#
|
616
|
+
# {
|
617
|
+
# next_token: "NextToken",
|
618
|
+
# max_results: 1,
|
619
|
+
# name_contains: "VocabularyFilterName",
|
620
|
+
# }
|
621
|
+
#
|
622
|
+
# @!attribute [rw] next_token
|
623
|
+
# If the result of the previous request to `ListVocabularyFilters` was
|
624
|
+
# truncated, include the `NextToken` to fetch the next set of
|
625
|
+
# collections.
|
626
|
+
# @return [String]
|
627
|
+
#
|
628
|
+
# @!attribute [rw] max_results
|
629
|
+
# The maximum number of filters to return in the response. If there
|
630
|
+
# are fewer results in the list, this response contains only the
|
631
|
+
# actual results.
|
632
|
+
# @return [Integer]
|
633
|
+
#
|
634
|
+
# @!attribute [rw] name_contains
|
635
|
+
# Filters the response so that it only contains vocabulary filters
|
636
|
+
# whose name contains the specified string.
|
637
|
+
# @return [String]
|
638
|
+
#
|
639
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFiltersRequest AWS API Documentation
|
640
|
+
#
|
641
|
+
class ListVocabularyFiltersRequest < Struct.new(
|
642
|
+
:next_token,
|
643
|
+
:max_results,
|
644
|
+
:name_contains)
|
645
|
+
include Aws::Structure
|
646
|
+
end
|
647
|
+
|
648
|
+
# @!attribute [rw] next_token
|
649
|
+
# The `ListVocabularyFilters` operation returns a page of collections
|
650
|
+
# at a time. The maximum size of the page is set by the `MaxResults`
|
651
|
+
# parameter. If there are more jobs in the list than the page size,
|
652
|
+
# Amazon Transcribe returns the `NextPage` token. Include the token in
|
653
|
+
# the next request to the `ListVocabularyFilters` operation to return
|
654
|
+
# in the next page of jobs.
|
655
|
+
# @return [String]
|
656
|
+
#
|
657
|
+
# @!attribute [rw] vocabulary_filters
|
658
|
+
# The list of vocabulary filters. It will contain at most `MaxResults`
|
659
|
+
# number of filters. If there are more filters, call the
|
660
|
+
# `ListVocabularyFilters` operation again with the `NextToken`
|
661
|
+
# parameter in the request set to the value of the `NextToken` field
|
662
|
+
# in the response.
|
663
|
+
# @return [Array<Types::VocabularyFilterInfo>]
|
664
|
+
#
|
665
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFiltersResponse AWS API Documentation
|
666
|
+
#
|
667
|
+
class ListVocabularyFiltersResponse < Struct.new(
|
668
|
+
:next_token,
|
669
|
+
:vocabulary_filters)
|
670
|
+
include Aws::Structure
|
671
|
+
end
|
672
|
+
|
467
673
|
# Describes the input media file in a transcription request.
|
468
674
|
#
|
469
675
|
# @note When making an API call, you may pass Media
|
@@ -528,6 +734,8 @@ module Aws::TranscribeService
|
|
528
734
|
# channel_identification: false,
|
529
735
|
# show_alternatives: false,
|
530
736
|
# max_alternatives: 1,
|
737
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
738
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask
|
531
739
|
# }
|
532
740
|
#
|
533
741
|
# @!attribute [rw] vocabulary_name
|
@@ -583,6 +791,19 @@ module Aws::TranscribeService
|
|
583
791
|
# `ShowAlternatives` field to true.
|
584
792
|
# @return [Integer]
|
585
793
|
#
|
794
|
+
# @!attribute [rw] vocabulary_filter_name
|
795
|
+
# The name of the vocabulary filter to use when transcribing the
|
796
|
+
# audio. The filter that you specify must have the same language code
|
797
|
+
# as the transcription job.
|
798
|
+
# @return [String]
|
799
|
+
#
|
800
|
+
# @!attribute [rw] vocabulary_filter_method
|
801
|
+
# Set to `mask` to remove filtered text from the transcript and
|
802
|
+
# replace it with three asterisks ("***") as placeholder text.
|
803
|
+
# Set to `remove` to remove filtered text from the transcript without
|
804
|
+
# using placeholder text.
|
805
|
+
# @return [String]
|
806
|
+
#
|
586
807
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/Settings AWS API Documentation
|
587
808
|
#
|
588
809
|
class Settings < Struct.new(
|
@@ -591,7 +812,9 @@ module Aws::TranscribeService
|
|
591
812
|
:max_speaker_labels,
|
592
813
|
:channel_identification,
|
593
814
|
:show_alternatives,
|
594
|
-
:max_alternatives
|
815
|
+
:max_alternatives,
|
816
|
+
:vocabulary_filter_name,
|
817
|
+
:vocabulary_filter_method)
|
595
818
|
include Aws::Structure
|
596
819
|
end
|
597
820
|
|
@@ -615,6 +838,8 @@ module Aws::TranscribeService
|
|
615
838
|
# channel_identification: false,
|
616
839
|
# show_alternatives: false,
|
617
840
|
# max_alternatives: 1,
|
841
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
842
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask
|
618
843
|
# },
|
619
844
|
# job_execution_settings: {
|
620
845
|
# allow_deferred_execution: false,
|
@@ -943,6 +1168,79 @@ module Aws::TranscribeService
|
|
943
1168
|
include Aws::Structure
|
944
1169
|
end
|
945
1170
|
|
1171
|
+
# @note When making an API call, you may pass UpdateVocabularyFilterRequest
|
1172
|
+
# data as a hash:
|
1173
|
+
#
|
1174
|
+
# {
|
1175
|
+
# vocabulary_filter_name: "VocabularyFilterName", # required
|
1176
|
+
# words: ["Word"],
|
1177
|
+
# vocabulary_filter_file_uri: "Uri",
|
1178
|
+
# }
|
1179
|
+
#
|
1180
|
+
# @!attribute [rw] vocabulary_filter_name
|
1181
|
+
# The name of the vocabulary filter to update.
|
1182
|
+
# @return [String]
|
1183
|
+
#
|
1184
|
+
# @!attribute [rw] words
|
1185
|
+
# The words to use in the vocabulary filter. Only use characters from
|
1186
|
+
# the character set defined for custom vocabularies. For a list of
|
1187
|
+
# character sets, see [Character Sets for Custom Vocabularies][1].
|
1188
|
+
#
|
1189
|
+
# If you provide a list of words in the `Words` parameter, you can't
|
1190
|
+
# use the `VocabularyFilterFileUri` parameter.
|
1191
|
+
#
|
1192
|
+
#
|
1193
|
+
#
|
1194
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
1195
|
+
# @return [Array<String>]
|
1196
|
+
#
|
1197
|
+
# @!attribute [rw] vocabulary_filter_file_uri
|
1198
|
+
# The Amazon S3 location of a text file used as input to create the
|
1199
|
+
# vocabulary filter. Only use characters from the character set
|
1200
|
+
# defined for custom vocabularies. For a list of character sets, see
|
1201
|
+
# [Character Sets for Custom Vocabularies][1].
|
1202
|
+
#
|
1203
|
+
# The specified file must be less than 50 KB of UTF-8 characters.
|
1204
|
+
#
|
1205
|
+
# If you provide the location of a list of words in the
|
1206
|
+
# `VocabularyFilterFileUri` parameter, you can't use the `Words`
|
1207
|
+
# parameter.
|
1208
|
+
#
|
1209
|
+
#
|
1210
|
+
#
|
1211
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets
|
1212
|
+
# @return [String]
|
1213
|
+
#
|
1214
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilterRequest AWS API Documentation
|
1215
|
+
#
|
1216
|
+
class UpdateVocabularyFilterRequest < Struct.new(
|
1217
|
+
:vocabulary_filter_name,
|
1218
|
+
:words,
|
1219
|
+
:vocabulary_filter_file_uri)
|
1220
|
+
include Aws::Structure
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
# @!attribute [rw] vocabulary_filter_name
|
1224
|
+
# The name of the updated vocabulary filter.
|
1225
|
+
# @return [String]
|
1226
|
+
#
|
1227
|
+
# @!attribute [rw] language_code
|
1228
|
+
# The language code of the words in the vocabulary filter.
|
1229
|
+
# @return [String]
|
1230
|
+
#
|
1231
|
+
# @!attribute [rw] last_modified_time
|
1232
|
+
# The date and time that the vocabulary filter was updated.
|
1233
|
+
# @return [Time]
|
1234
|
+
#
|
1235
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilterResponse AWS API Documentation
|
1236
|
+
#
|
1237
|
+
class UpdateVocabularyFilterResponse < Struct.new(
|
1238
|
+
:vocabulary_filter_name,
|
1239
|
+
:language_code,
|
1240
|
+
:last_modified_time)
|
1241
|
+
include Aws::Structure
|
1242
|
+
end
|
1243
|
+
|
946
1244
|
# @note When making an API call, you may pass UpdateVocabularyRequest
|
947
1245
|
# data as a hash:
|
948
1246
|
#
|
@@ -1028,6 +1326,30 @@ module Aws::TranscribeService
|
|
1028
1326
|
include Aws::Structure
|
1029
1327
|
end
|
1030
1328
|
|
1329
|
+
# Provides information about a vocabulary filter.
|
1330
|
+
#
|
1331
|
+
# @!attribute [rw] vocabulary_filter_name
|
1332
|
+
# The name of the vocabulary filter. The name must be unique in the
|
1333
|
+
# account that holds the filter.
|
1334
|
+
# @return [String]
|
1335
|
+
#
|
1336
|
+
# @!attribute [rw] language_code
|
1337
|
+
# The language code of the words in the vocabulary filter.
|
1338
|
+
# @return [String]
|
1339
|
+
#
|
1340
|
+
# @!attribute [rw] last_modified_time
|
1341
|
+
# The date and time that the vocabulary was last updated.
|
1342
|
+
# @return [Time]
|
1343
|
+
#
|
1344
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/VocabularyFilterInfo AWS API Documentation
|
1345
|
+
#
|
1346
|
+
class VocabularyFilterInfo < Struct.new(
|
1347
|
+
:vocabulary_filter_name,
|
1348
|
+
:language_code,
|
1349
|
+
:last_modified_time)
|
1350
|
+
include Aws::Structure
|
1351
|
+
end
|
1352
|
+
|
1031
1353
|
# Provides information about a custom vocabulary.
|
1032
1354
|
#
|
1033
1355
|
# @!attribute [rw] vocabulary_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-transcribeservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|