aws-sdk-transcribeservice 1.158.0 → 1.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribeservice/client.rb +253 -13
- data/lib/aws-sdk-transcribeservice/client_api.rb +138 -0
- data/lib/aws-sdk-transcribeservice/errors.rb +5 -0
- data/lib/aws-sdk-transcribeservice/types.rb +640 -31
- data/lib/aws-sdk-transcribeservice.rb +1 -1
- data/sig/client.rbs +50 -0
- data/sig/errors.rbs +1 -0
- data/sig/types.rbs +114 -0
- metadata +1 -1
data/sig/client.rbs
CHANGED
|
@@ -728,6 +728,56 @@ module Aws
|
|
|
728
728
|
) -> _TagResourceResponseSuccess
|
|
729
729
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
|
|
730
730
|
|
|
731
|
+
interface _TranscribeAudioResponseSuccess
|
|
732
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TranscribeAudioResponse]
|
|
733
|
+
def output_configuration: () -> Types::SyncOutputConfiguration
|
|
734
|
+
def transcript_response: () -> Types::TranscriptResponse
|
|
735
|
+
end
|
|
736
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TranscribeService/Client.html#transcribe_audio-instance_method
|
|
737
|
+
def transcribe_audio: (
|
|
738
|
+
media: {
|
|
739
|
+
media_bytes: ::String?,
|
|
740
|
+
media_file_uri: ::String?
|
|
741
|
+
},
|
|
742
|
+
?language: ("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK"),
|
|
743
|
+
?language_detection_mode: ("IDENTIFY_LANGUAGE"),
|
|
744
|
+
?language_options: Array[("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK")],
|
|
745
|
+
?channel_identification: bool,
|
|
746
|
+
?show_speaker_labels: bool,
|
|
747
|
+
?max_speaker_labels: ::Integer,
|
|
748
|
+
?vocabulary_settings: Array[
|
|
749
|
+
{
|
|
750
|
+
language: ("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK"),
|
|
751
|
+
vocabulary_name: ::String?,
|
|
752
|
+
phrases: Array[
|
|
753
|
+
{
|
|
754
|
+
text: ::String,
|
|
755
|
+
display_as: ::String?
|
|
756
|
+
}
|
|
757
|
+
]?
|
|
758
|
+
}
|
|
759
|
+
],
|
|
760
|
+
?vocabulary_filter_settings: {
|
|
761
|
+
vocabulary_filter_method: ("remove" | "mask" | "tag"),
|
|
762
|
+
filters: Array[
|
|
763
|
+
{
|
|
764
|
+
language: ("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK"),
|
|
765
|
+
vocabulary_filter_name: ::String?,
|
|
766
|
+
words: Array[::String]?
|
|
767
|
+
}
|
|
768
|
+
]
|
|
769
|
+
},
|
|
770
|
+
?content_redaction: {
|
|
771
|
+
redaction_type: ("PII"),
|
|
772
|
+
redaction_output: ("redacted" | "redacted_and_unredacted"),
|
|
773
|
+
pii_entity_types: Array[("BANK_ACCOUNT_NUMBER" | "BANK_ROUTING" | "CREDIT_DEBIT_NUMBER" | "CREDIT_DEBIT_CVV" | "CREDIT_DEBIT_EXPIRY" | "PIN" | "EMAIL" | "ADDRESS" | "NAME" | "PHONE" | "SSN" | "DATE_TIME" | "PASSPORT_NUMBER" | "DRIVER_ID" | "URL" | "AGE" | "USERNAME" | "PASSWORD" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "IP_ADDRESS" | "MAC_ADDRESS" | "LICENSE_PLATE" | "VEHICLE_IDENTIFICATION_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "SWIFT_CODE" | "ALL")]?
|
|
774
|
+
},
|
|
775
|
+
?output_configuration: {
|
|
776
|
+
output_media_file_uri: ::String
|
|
777
|
+
}
|
|
778
|
+
) -> _TranscribeAudioResponseSuccess
|
|
779
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TranscribeAudioResponseSuccess
|
|
780
|
+
|
|
731
781
|
interface _UntagResourceResponseSuccess
|
|
732
782
|
include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
|
|
733
783
|
end
|
data/sig/errors.rbs
CHANGED
data/sig/types.rbs
CHANGED
|
@@ -18,6 +18,7 @@ module Aws::TranscribeService
|
|
|
18
18
|
|
|
19
19
|
class BadRequestException
|
|
20
20
|
attr_accessor message: ::String
|
|
21
|
+
attr_accessor reason: ("audioTooLong" | "audioTooShort" | "unsupportedAudioFormat" | "unsupportedChannelCount" | "invalidAudio" | "audioFileTooLarge" | "mediaDownloadFailed")
|
|
21
22
|
SENSITIVE: []
|
|
22
23
|
end
|
|
23
24
|
|
|
@@ -852,6 +853,49 @@ module Aws::TranscribeService
|
|
|
852
853
|
SENSITIVE: []
|
|
853
854
|
end
|
|
854
855
|
|
|
856
|
+
class SyncItem
|
|
857
|
+
attr_accessor id: ::Integer
|
|
858
|
+
attr_accessor content: ::String
|
|
859
|
+
attr_accessor start_time: ::Float
|
|
860
|
+
attr_accessor end_time: ::Float
|
|
861
|
+
attr_accessor language_code: ("en-US" | "en-AB" | "en-AU" | "en-GB" | "en-IE" | "en-IN" | "en-WL" | "en-ZA" | "en-NZ" | "es-US" | "es-ES" | "es-MX" | "fr-FR" | "fr-CA" | "it-IT" | "de-DE" | "de-CH" | "ja-JP" | "pt-BR" | "pt-PT" | "zh-CN" | "zh-TW" | "zh-HK" | "ko-KR")
|
|
862
|
+
attr_accessor channel_label: ::String
|
|
863
|
+
attr_accessor speaker_label: ::String
|
|
864
|
+
attr_accessor vocabulary_filter_match: bool
|
|
865
|
+
attr_accessor redactions: ::Array[Types::SyncRedaction]
|
|
866
|
+
SENSITIVE: []
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
class SyncLanguageCodeItem
|
|
870
|
+
attr_accessor language_code: ("en-US" | "en-AB" | "en-AU" | "en-GB" | "en-IE" | "en-IN" | "en-WL" | "en-ZA" | "en-NZ" | "es-US" | "es-ES" | "es-MX" | "fr-FR" | "fr-CA" | "it-IT" | "de-DE" | "de-CH" | "ja-JP" | "pt-BR" | "pt-PT" | "zh-CN" | "zh-TW" | "zh-HK" | "ko-KR")
|
|
871
|
+
attr_accessor duration_in_seconds: ::Float
|
|
872
|
+
SENSITIVE: []
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
class SyncMedia
|
|
876
|
+
attr_accessor media_bytes: ::String
|
|
877
|
+
attr_accessor media_file_uri: ::String
|
|
878
|
+
attr_accessor unknown: untyped
|
|
879
|
+
SENSITIVE: []
|
|
880
|
+
|
|
881
|
+
class MediaBytes < SyncMedia
|
|
882
|
+
end
|
|
883
|
+
class MediaFileUri < SyncMedia
|
|
884
|
+
end
|
|
885
|
+
class Unknown < SyncMedia
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
class SyncOutputConfiguration
|
|
890
|
+
attr_accessor output_media_file_uri: ::String
|
|
891
|
+
SENSITIVE: []
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
class SyncRedaction
|
|
895
|
+
attr_accessor type: ("BANK_ACCOUNT_NUMBER" | "BANK_ROUTING" | "CREDIT_DEBIT_NUMBER" | "CREDIT_DEBIT_CVV" | "CREDIT_DEBIT_EXPIRY" | "PIN" | "EMAIL" | "ADDRESS" | "NAME" | "PHONE" | "SSN" | "DATE_TIME" | "PASSPORT_NUMBER" | "DRIVER_ID" | "URL" | "AGE" | "USERNAME" | "PASSWORD" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "IP_ADDRESS" | "MAC_ADDRESS" | "LICENSE_PLATE" | "VEHICLE_IDENTIFICATION_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "SWIFT_CODE" | "ALL")
|
|
896
|
+
SENSITIVE: []
|
|
897
|
+
end
|
|
898
|
+
|
|
855
899
|
class Tag
|
|
856
900
|
attr_accessor key: ::String
|
|
857
901
|
attr_accessor value: ::String
|
|
@@ -872,6 +916,43 @@ module Aws::TranscribeService
|
|
|
872
916
|
SENSITIVE: []
|
|
873
917
|
end
|
|
874
918
|
|
|
919
|
+
class TranscribeAudioMetadata
|
|
920
|
+
attr_accessor language_code: ("en-US" | "en-AB" | "en-AU" | "en-GB" | "en-IE" | "en-IN" | "en-WL" | "en-ZA" | "en-NZ" | "es-US" | "es-ES" | "es-MX" | "fr-FR" | "fr-CA" | "it-IT" | "de-DE" | "de-CH" | "ja-JP" | "pt-BR" | "pt-PT" | "zh-CN" | "zh-TW" | "zh-HK" | "ko-KR")
|
|
921
|
+
attr_accessor language_codes: ::Array[Types::SyncLanguageCodeItem]
|
|
922
|
+
attr_accessor media_format: ("mp3" | "mp4" | "wav" | "flac" | "ogg" | "amr" | "webm" | "m4a")
|
|
923
|
+
attr_accessor media_sample_rate_hertz: ::Integer
|
|
924
|
+
attr_accessor speakers_count: ::Integer
|
|
925
|
+
attr_accessor number_of_channels: ::Integer
|
|
926
|
+
SENSITIVE: []
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
class TranscribeAudioRequest
|
|
930
|
+
attr_accessor media: Types::SyncMedia
|
|
931
|
+
attr_accessor language: ("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK")
|
|
932
|
+
attr_accessor language_detection_mode: ("IDENTIFY_LANGUAGE")
|
|
933
|
+
attr_accessor language_options: ::Array[("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK")]
|
|
934
|
+
attr_accessor channel_identification: bool
|
|
935
|
+
attr_accessor show_speaker_labels: bool
|
|
936
|
+
attr_accessor max_speaker_labels: ::Integer
|
|
937
|
+
attr_accessor vocabulary_settings: ::Array[Types::VocabularySettingsEntry]
|
|
938
|
+
attr_accessor vocabulary_filter_settings: Types::VocabularyFilterSettings
|
|
939
|
+
attr_accessor content_redaction: Types::ContentRedaction
|
|
940
|
+
attr_accessor output_configuration: Types::SyncOutputConfiguration
|
|
941
|
+
SENSITIVE: []
|
|
942
|
+
end
|
|
943
|
+
|
|
944
|
+
class TranscribeAudioResponse
|
|
945
|
+
attr_accessor output_configuration: Types::SyncOutputConfiguration
|
|
946
|
+
attr_accessor transcript_response: Types::TranscriptResponse
|
|
947
|
+
SENSITIVE: []
|
|
948
|
+
end
|
|
949
|
+
|
|
950
|
+
class TranscribeAudioResults
|
|
951
|
+
attr_accessor transcript: ::String
|
|
952
|
+
attr_accessor items: ::Array[Types::SyncItem]
|
|
953
|
+
SENSITIVE: []
|
|
954
|
+
end
|
|
955
|
+
|
|
875
956
|
class Transcript
|
|
876
957
|
attr_accessor transcript_file_uri: ::String
|
|
877
958
|
attr_accessor redacted_transcript_file_uri: ::String
|
|
@@ -888,6 +969,13 @@ module Aws::TranscribeService
|
|
|
888
969
|
SENSITIVE: []
|
|
889
970
|
end
|
|
890
971
|
|
|
972
|
+
class TranscriptResponse
|
|
973
|
+
attr_accessor metadata: Types::TranscribeAudioMetadata
|
|
974
|
+
attr_accessor results: Types::TranscribeAudioResults
|
|
975
|
+
attr_accessor redacted_results: Types::TranscribeAudioResults
|
|
976
|
+
SENSITIVE: []
|
|
977
|
+
end
|
|
978
|
+
|
|
891
979
|
class TranscriptionJob
|
|
892
980
|
attr_accessor transcription_job_name: ::String
|
|
893
981
|
attr_accessor transcription_job_status: ("QUEUED" | "IN_PROGRESS" | "FAILED" | "COMPLETED")
|
|
@@ -1019,6 +1107,13 @@ module Aws::TranscribeService
|
|
|
1019
1107
|
SENSITIVE: []
|
|
1020
1108
|
end
|
|
1021
1109
|
|
|
1110
|
+
class VocabularyFilterEntry
|
|
1111
|
+
attr_accessor language: ("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK")
|
|
1112
|
+
attr_accessor vocabulary_filter_name: ::String
|
|
1113
|
+
attr_accessor words: ::Array[::String]
|
|
1114
|
+
SENSITIVE: []
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1022
1117
|
class VocabularyFilterInfo
|
|
1023
1118
|
attr_accessor vocabulary_filter_name: ::String
|
|
1024
1119
|
attr_accessor language_code: ("af-ZA" | "ar-AE" | "ar-SA" | "am-ET" | "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-MX" | "es-US" | "fa-AF" | "fa-IR" | "fr-CA" | "fr-FR" | "ga-IE" | "gd-GB" | "he-IL" | "hi-IN" | "ht-HT" | "id-ID" | "it-IT" | "ja-JP" | "jv-ID" | "km-KH" | "ko-KR" | "my-MM" | "ms-MY" | "nl-NL" | "pt-BR" | "pt-PT" | "ru-RU" | "ta-IN" | "te-IN" | "tr-TR" | "zh-CN" | "zh-TW" | "th-TH" | "en-ZA" | "en-NZ" | "vi-VN" | "sv-SE" | "ab-GE" | "ast-ES" | "az-AZ" | "ba-RU" | "be-BY" | "bg-BG" | "bn-IN" | "bs-BA" | "ca-ES" | "ckb-IQ" | "ckb-IR" | "cs-CZ" | "cy-WL" | "el-GR" | "et-EE" | "et-ET" | "eu-ES" | "fi-FI" | "gl-ES" | "gu-IN" | "ha-NG" | "hr-HR" | "hu-HU" | "hy-AM" | "is-IS" | "ka-GE" | "kab-DZ" | "kk-KZ" | "kn-IN" | "ky-KG" | "lg-IN" | "lt-LT" | "lv-LV" | "mhr-RU" | "mi-NZ" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "mt-MT" | "no-NO" | "ne-NP" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "ro-RO" | "rw-RW" | "si-LK" | "sk-SK" | "sl-SI" | "so-SO" | "sq-AL" | "sr-RS" | "su-ID" | "sw-BI" | "sw-KE" | "sw-RW" | "sw-TZ" | "sw-UG" | "tl-PH" | "tt-RU" | "ug-CN" | "uk-UA" | "uz-UZ" | "wo-SN" | "zh-HK" | "zu-ZA")
|
|
@@ -1026,6 +1121,12 @@ module Aws::TranscribeService
|
|
|
1026
1121
|
SENSITIVE: []
|
|
1027
1122
|
end
|
|
1028
1123
|
|
|
1124
|
+
class VocabularyFilterSettings
|
|
1125
|
+
attr_accessor vocabulary_filter_method: ("remove" | "mask" | "tag")
|
|
1126
|
+
attr_accessor filters: ::Array[Types::VocabularyFilterEntry]
|
|
1127
|
+
SENSITIVE: []
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1029
1130
|
class VocabularyInfo
|
|
1030
1131
|
attr_accessor vocabulary_name: ::String
|
|
1031
1132
|
attr_accessor language_code: ("af-ZA" | "ar-AE" | "ar-SA" | "am-ET" | "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-MX" | "es-US" | "fa-AF" | "fa-IR" | "fr-CA" | "fr-FR" | "ga-IE" | "gd-GB" | "he-IL" | "hi-IN" | "ht-HT" | "id-ID" | "it-IT" | "ja-JP" | "jv-ID" | "km-KH" | "ko-KR" | "my-MM" | "ms-MY" | "nl-NL" | "pt-BR" | "pt-PT" | "ru-RU" | "ta-IN" | "te-IN" | "tr-TR" | "zh-CN" | "zh-TW" | "th-TH" | "en-ZA" | "en-NZ" | "vi-VN" | "sv-SE" | "ab-GE" | "ast-ES" | "az-AZ" | "ba-RU" | "be-BY" | "bg-BG" | "bn-IN" | "bs-BA" | "ca-ES" | "ckb-IQ" | "ckb-IR" | "cs-CZ" | "cy-WL" | "el-GR" | "et-EE" | "et-ET" | "eu-ES" | "fi-FI" | "gl-ES" | "gu-IN" | "ha-NG" | "hr-HR" | "hu-HU" | "hy-AM" | "is-IS" | "ka-GE" | "kab-DZ" | "kk-KZ" | "kn-IN" | "ky-KG" | "lg-IN" | "lt-LT" | "lv-LV" | "mhr-RU" | "mi-NZ" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "mt-MT" | "no-NO" | "ne-NP" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "ro-RO" | "rw-RW" | "si-LK" | "sk-SK" | "sl-SI" | "so-SO" | "sq-AL" | "sr-RS" | "su-ID" | "sw-BI" | "sw-KE" | "sw-RW" | "sw-TZ" | "sw-UG" | "tl-PH" | "tt-RU" | "ug-CN" | "uk-UA" | "uz-UZ" | "wo-SN" | "zh-HK" | "zu-ZA")
|
|
@@ -1033,5 +1134,18 @@ module Aws::TranscribeService
|
|
|
1033
1134
|
attr_accessor vocabulary_state: ("PENDING" | "READY" | "FAILED")
|
|
1034
1135
|
SENSITIVE: []
|
|
1035
1136
|
end
|
|
1137
|
+
|
|
1138
|
+
class VocabularyPhrase
|
|
1139
|
+
attr_accessor text: ::String
|
|
1140
|
+
attr_accessor display_as: ::String
|
|
1141
|
+
SENSITIVE: []
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1144
|
+
class VocabularySettingsEntry
|
|
1145
|
+
attr_accessor language: ("en" | "es" | "fr" | "it" | "de" | "ja" | "pt" | "ko" | "zh-CN" | "zh-TW" | "zh-HK")
|
|
1146
|
+
attr_accessor vocabulary_name: ::String
|
|
1147
|
+
attr_accessor phrases: ::Array[Types::VocabularyPhrase]
|
|
1148
|
+
SENSITIVE: []
|
|
1149
|
+
end
|
|
1036
1150
|
end
|
|
1037
1151
|
end
|