@aws-sdk/client-transcribe 3.1172.0 → 3.1174.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.
- package/README.md +7 -0
- package/dist-cjs/index.js +222 -11
- package/dist-es/Transcribe.js +2 -0
- package/dist-es/commands/TranscribeAudioCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +51 -0
- package/dist-es/models/errors.js +2 -0
- package/dist-es/schemas/schemas_0.js +145 -10
- package/dist-types/Transcribe.d.ts +7 -0
- package/dist-types/TranscribeClient.d.ts +3 -2
- package/dist-types/commands/CreateCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/CreateLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/CreateMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/CreateVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/CreateVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/DeleteCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/DeleteCallAnalyticsJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/DeleteMedicalScribeJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteMedicalTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/DeleteTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/DeleteVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/DescribeLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/GetCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/GetCallAnalyticsJobCommand.d.ts +5 -4
- package/dist-types/commands/GetMedicalScribeJobCommand.d.ts +5 -4
- package/dist-types/commands/GetMedicalTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/GetMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/GetTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/GetVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/GetVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/ListCallAnalyticsCategoriesCommand.d.ts +5 -4
- package/dist-types/commands/ListCallAnalyticsJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListLanguageModelsCommand.d.ts +5 -4
- package/dist-types/commands/ListMedicalScribeJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListMedicalTranscriptionJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListMedicalVocabulariesCommand.d.ts +5 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -4
- package/dist-types/commands/ListTranscriptionJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListVocabulariesCommand.d.ts +5 -4
- package/dist-types/commands/ListVocabularyFiltersCommand.d.ts +5 -4
- package/dist-types/commands/StartCallAnalyticsJobCommand.d.ts +5 -4
- package/dist-types/commands/StartMedicalScribeJobCommand.d.ts +5 -4
- package/dist-types/commands/StartMedicalTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/StartTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/TagResourceCommand.d.ts +5 -4
- package/dist-types/commands/TranscribeAudioCommand.d.ts +218 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +5 -4
- package/dist-types/commands/UpdateCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/UpdateLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/UpdateMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/UpdateVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/UpdateVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +83 -0
- package/dist-types/models/errors.d.ts +49 -4
- package/dist-types/models/models_0.d.ts +533 -13
- package/dist-types/schemas/schemas_0.d.ts +15 -0
- package/dist-types/ts3.4/Transcribe.d.ts +17 -0
- package/dist-types/ts3.4/TranscribeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/TranscribeAudioCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +57 -0
- package/dist-types/ts3.4/models/errors.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +102 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { TranscribeAudioRequest, TranscribeAudioResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link TranscribeAudioCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface TranscribeAudioCommandInput extends TranscribeAudioRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link TranscribeAudioCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface TranscribeAudioCommandOutput extends TranscribeAudioResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const TranscribeAudioCommand_base: {
|
|
22
|
+
new (input: TranscribeAudioCommandInput): import("@smithy/core/client").CommandImpl<TranscribeAudioCommandInput, TranscribeAudioCommandOutput, import("..").TranscribeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: TranscribeAudioCommandInput): import("@smithy/core/client").CommandImpl<TranscribeAudioCommandInput, TranscribeAudioCommandOutput, import("..").TranscribeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Transcribes a media file and returns the transcript in the same response. There is
|
|
28
|
+
* no job to start and no status to poll.</p>
|
|
29
|
+
* <p>Use <code>TranscribeAudio</code> when you already have a complete media file and want
|
|
30
|
+
* the transcript right away. For large files, long audio, or bulk processing, use .</p>
|
|
31
|
+
* <p>You must include the following parameters in your <code>TranscribeAudio</code>
|
|
32
|
+
* request:</p>
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>
|
|
36
|
+
* <code>Media</code>: Your audio, either as inline bytes
|
|
37
|
+
* (<code>MediaBytes</code>) or as the Amazon S3 location of a media
|
|
38
|
+
* file (<code>MediaFileUri</code>).</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>One of <code>Language</code> or <code>LanguageDetectionMode</code>: Specify
|
|
42
|
+
* the language of your audio, or have Amazon Transcribe identify it.</p>
|
|
43
|
+
* </li>
|
|
44
|
+
* </ul>
|
|
45
|
+
* <p>Your audio must be between 0.5 seconds and 1 hour long. Supported formats are WAV,
|
|
46
|
+
* MP3, FLAC, M4A, MP4, Ogg, WebM, and AMR.</p>
|
|
47
|
+
* <p>If you send your audio in the request (<code>MediaBytes</code>), the file can be up to
|
|
48
|
+
* 25 MB. If you provide an Amazon S3 location (<code>MediaFileUri</code>), the
|
|
49
|
+
* file can be up to 500 MB.</p>
|
|
50
|
+
* <p>Amazon Transcribe always turns on smart formatting, also known as inverse text
|
|
51
|
+
* normalization (ITN). It writes numbers, dates, currency, and similar items in their
|
|
52
|
+
* usual written form. For example, "one hundred" becomes "100". You can't turn smart
|
|
53
|
+
* formatting off.</p>
|
|
54
|
+
* <p>By default, Amazon Transcribe returns the transcript in
|
|
55
|
+
* <code>TranscriptResponse</code>. If you include <code>OutputConfiguration</code>,
|
|
56
|
+
* Amazon Transcribe writes the transcript to the Amazon S3 location you
|
|
57
|
+
* specify instead, and the response contains only that location.</p>
|
|
58
|
+
* @example
|
|
59
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
60
|
+
* ```javascript
|
|
61
|
+
* import { TranscribeClient, TranscribeAudioCommand } from "@aws-sdk/client-transcribe"; // ES Modules import
|
|
62
|
+
* // const { TranscribeClient, TranscribeAudioCommand } = require("@aws-sdk/client-transcribe"); // CommonJS import
|
|
63
|
+
* // import type { TranscribeClientConfig } from "@aws-sdk/client-transcribe";
|
|
64
|
+
* const config = {}; // type is TranscribeClientConfig
|
|
65
|
+
* const client = new TranscribeClient(config);
|
|
66
|
+
* const input = { // TranscribeAudioRequest
|
|
67
|
+
* Media: { // SyncMedia Union: only one key present
|
|
68
|
+
* MediaBytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
69
|
+
* MediaFileUri: "STRING_VALUE",
|
|
70
|
+
* },
|
|
71
|
+
* Language: "en" || "es" || "fr" || "it" || "de" || "ja" || "pt" || "ko" || "zh-CN" || "zh-TW" || "zh-HK",
|
|
72
|
+
* LanguageDetectionMode: "IDENTIFY_LANGUAGE",
|
|
73
|
+
* LanguageOptions: [ // SyncLanguageOptions
|
|
74
|
+
* "en" || "es" || "fr" || "it" || "de" || "ja" || "pt" || "ko" || "zh-CN" || "zh-TW" || "zh-HK",
|
|
75
|
+
* ],
|
|
76
|
+
* ChannelIdentification: true || false,
|
|
77
|
+
* ShowSpeakerLabels: true || false,
|
|
78
|
+
* MaxSpeakerLabels: Number("int"),
|
|
79
|
+
* VocabularySettings: [ // VocabularySettingsList
|
|
80
|
+
* { // VocabularySettingsEntry
|
|
81
|
+
* Language: "en" || "es" || "fr" || "it" || "de" || "ja" || "pt" || "ko" || "zh-CN" || "zh-TW" || "zh-HK", // required
|
|
82
|
+
* VocabularyName: "STRING_VALUE",
|
|
83
|
+
* Phrases: [ // VocabularyPhraseList
|
|
84
|
+
* { // VocabularyPhrase
|
|
85
|
+
* Text: "STRING_VALUE", // required
|
|
86
|
+
* DisplayAs: "STRING_VALUE",
|
|
87
|
+
* },
|
|
88
|
+
* ],
|
|
89
|
+
* },
|
|
90
|
+
* ],
|
|
91
|
+
* VocabularyFilterSettings: { // VocabularyFilterSettings
|
|
92
|
+
* VocabularyFilterMethod: "remove" || "mask" || "tag", // required
|
|
93
|
+
* Filters: [ // VocabularyFilterEntryList // required
|
|
94
|
+
* { // VocabularyFilterEntry
|
|
95
|
+
* Language: "en" || "es" || "fr" || "it" || "de" || "ja" || "pt" || "ko" || "zh-CN" || "zh-TW" || "zh-HK", // required
|
|
96
|
+
* VocabularyFilterName: "STRING_VALUE",
|
|
97
|
+
* Words: [ // Words
|
|
98
|
+
* "STRING_VALUE",
|
|
99
|
+
* ],
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* ContentRedaction: { // ContentRedaction
|
|
104
|
+
* RedactionType: "PII", // required
|
|
105
|
+
* RedactionOutput: "redacted" || "redacted_and_unredacted", // required
|
|
106
|
+
* PiiEntityTypes: [ // PiiEntityTypes
|
|
107
|
+
* "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",
|
|
108
|
+
* ],
|
|
109
|
+
* },
|
|
110
|
+
* OutputConfiguration: { // SyncOutputConfiguration
|
|
111
|
+
* OutputMediaFileUri: "STRING_VALUE", // required
|
|
112
|
+
* },
|
|
113
|
+
* };
|
|
114
|
+
* const command = new TranscribeAudioCommand(input);
|
|
115
|
+
* const response = await client.send(command);
|
|
116
|
+
* // { // TranscribeAudioResponse
|
|
117
|
+
* // OutputConfiguration: { // SyncOutputConfiguration
|
|
118
|
+
* // OutputMediaFileUri: "STRING_VALUE", // required
|
|
119
|
+
* // },
|
|
120
|
+
* // TranscriptResponse: { // TranscriptResponse
|
|
121
|
+
* // Metadata: { // TranscribeAudioMetadata
|
|
122
|
+
* // LanguageCode: "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",
|
|
123
|
+
* // LanguageCodes: [ // SyncLanguageCodeList
|
|
124
|
+
* // { // SyncLanguageCodeItem
|
|
125
|
+
* // LanguageCode: "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",
|
|
126
|
+
* // DurationInSeconds: Number("float"),
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
129
|
+
* // MediaFormat: "mp3" || "mp4" || "wav" || "flac" || "ogg" || "amr" || "webm" || "m4a",
|
|
130
|
+
* // MediaSampleRateHertz: Number("int"),
|
|
131
|
+
* // SpeakersCount: Number("int"),
|
|
132
|
+
* // NumberOfChannels: Number("int"),
|
|
133
|
+
* // },
|
|
134
|
+
* // Results: { // TranscribeAudioResults
|
|
135
|
+
* // Transcript: "STRING_VALUE",
|
|
136
|
+
* // Items: [ // SyncItemList
|
|
137
|
+
* // { // SyncItem
|
|
138
|
+
* // Id: Number("int"),
|
|
139
|
+
* // Content: "STRING_VALUE",
|
|
140
|
+
* // StartTime: Number("double"),
|
|
141
|
+
* // EndTime: Number("double"),
|
|
142
|
+
* // LanguageCode: "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",
|
|
143
|
+
* // ChannelLabel: "STRING_VALUE",
|
|
144
|
+
* // SpeakerLabel: "STRING_VALUE",
|
|
145
|
+
* // VocabularyFilterMatch: true || false,
|
|
146
|
+
* // Redactions: [ // SyncRedactionList
|
|
147
|
+
* // { // SyncRedaction
|
|
148
|
+
* // 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",
|
|
149
|
+
* // },
|
|
150
|
+
* // ],
|
|
151
|
+
* // },
|
|
152
|
+
* // ],
|
|
153
|
+
* // },
|
|
154
|
+
* // RedactedResults: {
|
|
155
|
+
* // Transcript: "STRING_VALUE",
|
|
156
|
+
* // Items: [
|
|
157
|
+
* // {
|
|
158
|
+
* // Id: Number("int"),
|
|
159
|
+
* // Content: "STRING_VALUE",
|
|
160
|
+
* // StartTime: Number("double"),
|
|
161
|
+
* // EndTime: Number("double"),
|
|
162
|
+
* // LanguageCode: "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",
|
|
163
|
+
* // ChannelLabel: "STRING_VALUE",
|
|
164
|
+
* // SpeakerLabel: "STRING_VALUE",
|
|
165
|
+
* // VocabularyFilterMatch: true || false,
|
|
166
|
+
* // Redactions: [
|
|
167
|
+
* // {
|
|
168
|
+
* // 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",
|
|
169
|
+
* // },
|
|
170
|
+
* // ],
|
|
171
|
+
* // },
|
|
172
|
+
* // ],
|
|
173
|
+
* // },
|
|
174
|
+
* // },
|
|
175
|
+
* // };
|
|
176
|
+
*
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* @param TranscribeAudioCommandInput - {@link TranscribeAudioCommandInput}
|
|
180
|
+
* @returns {@link TranscribeAudioCommandOutput}
|
|
181
|
+
* @see {@link TranscribeAudioCommandInput} for command's `input` shape.
|
|
182
|
+
* @see {@link TranscribeAudioCommandOutput} for command's `response` shape.
|
|
183
|
+
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
184
|
+
*
|
|
185
|
+
* @throws {@link BadRequestException} (client fault)
|
|
186
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
187
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
188
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
189
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
190
|
+
* for more information.</p>
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link InternalFailureException} (server fault)
|
|
193
|
+
* <p>There was an internal error. Check the error message, correct the issue, and try your
|
|
194
|
+
* request again.</p>
|
|
195
|
+
*
|
|
196
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
197
|
+
* <p>You've either sent too many requests or your input file is too long. Wait before
|
|
198
|
+
* retrying your request, or use a smaller file and try your request again.</p>
|
|
199
|
+
*
|
|
200
|
+
* @throws {@link TranscribeServiceException}
|
|
201
|
+
* <p>Base exception class for all service exceptions from Transcribe service.</p>
|
|
202
|
+
*
|
|
203
|
+
*
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
export declare class TranscribeAudioCommand extends TranscribeAudioCommand_base {
|
|
207
|
+
/** @internal type navigation helper, not in runtime. */
|
|
208
|
+
protected static __types: {
|
|
209
|
+
api: {
|
|
210
|
+
input: TranscribeAudioRequest;
|
|
211
|
+
output: TranscribeAudioResponse;
|
|
212
|
+
};
|
|
213
|
+
sdk: {
|
|
214
|
+
input: TranscribeAudioCommandInput;
|
|
215
|
+
output: TranscribeAudioCommandOutput;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
}
|
|
@@ -54,10 +54,11 @@ declare const UntagResourceCommand_base: {
|
|
|
54
54
|
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link BadRequestException} (client fault)
|
|
57
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
57
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
58
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
59
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
60
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
61
|
+
* for more information.</p>
|
|
61
62
|
*
|
|
62
63
|
* @throws {@link ConflictException} (client fault)
|
|
63
64
|
* <p>A resource already exists with this name. Resource names must be unique within an
|
|
@@ -219,10 +219,11 @@ declare const UpdateCallAnalyticsCategoryCommand_base: {
|
|
|
219
219
|
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
220
220
|
*
|
|
221
221
|
* @throws {@link BadRequestException} (client fault)
|
|
222
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
222
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
223
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
224
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
225
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
226
|
+
* for more information.</p>
|
|
226
227
|
*
|
|
227
228
|
* @throws {@link ConflictException} (client fault)
|
|
228
229
|
* <p>A resource already exists with this name. Resource names must be unique within an
|
|
@@ -68,10 +68,11 @@ declare const UpdateLanguageModelCommand_base: {
|
|
|
68
68
|
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link BadRequestException} (client fault)
|
|
71
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
71
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
72
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
73
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
74
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
75
|
+
* for more information.</p>
|
|
75
76
|
*
|
|
76
77
|
* @throws {@link ConflictException} (client fault)
|
|
77
78
|
* <p>A resource already exists with this name. Resource names must be unique within an
|
|
@@ -58,10 +58,11 @@ declare const UpdateMedicalVocabularyCommand_base: {
|
|
|
58
58
|
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link BadRequestException} (client fault)
|
|
61
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
61
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
62
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
63
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
64
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
65
|
+
* for more information.</p>
|
|
65
66
|
*
|
|
66
67
|
* @throws {@link ConflictException} (client fault)
|
|
67
68
|
* <p>A resource already exists with this name. Resource names must be unique within an
|
|
@@ -71,10 +71,11 @@ declare const UpdateVocabularyCommand_base: {
|
|
|
71
71
|
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
72
72
|
*
|
|
73
73
|
* @throws {@link BadRequestException} (client fault)
|
|
74
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
74
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
75
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
76
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
77
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
78
|
+
* for more information.</p>
|
|
78
79
|
*
|
|
79
80
|
* @throws {@link ConflictException} (client fault)
|
|
80
81
|
* <p>A resource already exists with this name. Resource names must be unique within an
|
|
@@ -68,10 +68,11 @@ declare const UpdateVocabularyFilterCommand_base: {
|
|
|
68
68
|
* @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link BadRequestException} (client fault)
|
|
71
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
71
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
72
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
73
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
74
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
75
|
+
* for more information.</p>
|
|
75
76
|
*
|
|
76
77
|
* @throws {@link ConflictException} (client fault)
|
|
77
78
|
* <p>A resource already exists with this name. Resource names must be unique within an
|
|
@@ -36,6 +36,7 @@ export * from "./StartMedicalScribeJobCommand";
|
|
|
36
36
|
export * from "./StartMedicalTranscriptionJobCommand";
|
|
37
37
|
export * from "./StartTranscriptionJobCommand";
|
|
38
38
|
export * from "./TagResourceCommand";
|
|
39
|
+
export * from "./TranscribeAudioCommand";
|
|
39
40
|
export * from "./UntagResourceCommand";
|
|
40
41
|
export * from "./UpdateCallAnalyticsCategoryCommand";
|
|
41
42
|
export * from "./UpdateLanguageModelCommand";
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const BadRequestExceptionReason: {
|
|
6
|
+
readonly AUDIO_FILE_TOO_LARGE: "audioFileTooLarge";
|
|
7
|
+
readonly AUDIO_TOO_LONG: "audioTooLong";
|
|
8
|
+
readonly AUDIO_TOO_SHORT: "audioTooShort";
|
|
9
|
+
readonly INVALID_AUDIO: "invalidAudio";
|
|
10
|
+
readonly MEDIA_DOWNLOAD_FAILED: "mediaDownloadFailed";
|
|
11
|
+
readonly UNSUPPORTED_AUDIO_FORMAT: "unsupportedAudioFormat";
|
|
12
|
+
readonly UNSUPPORTED_CHANNEL_COUNT: "unsupportedChannelCount";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type BadRequestExceptionReason = (typeof BadRequestExceptionReason)[keyof typeof BadRequestExceptionReason];
|
|
1
18
|
/**
|
|
2
19
|
* @public
|
|
3
20
|
* @enum
|
|
@@ -485,6 +502,17 @@ export declare const ToxicityCategory: {
|
|
|
485
502
|
* @public
|
|
486
503
|
*/
|
|
487
504
|
export type ToxicityCategory = (typeof ToxicityCategory)[keyof typeof ToxicityCategory];
|
|
505
|
+
/**
|
|
506
|
+
* @public
|
|
507
|
+
* @enum
|
|
508
|
+
*/
|
|
509
|
+
export declare const LanguageDetectionMode: {
|
|
510
|
+
readonly IDENTIFY_LANGUAGE: "IDENTIFY_LANGUAGE";
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* @public
|
|
514
|
+
*/
|
|
515
|
+
export type LanguageDetectionMode = (typeof LanguageDetectionMode)[keyof typeof LanguageDetectionMode];
|
|
488
516
|
/**
|
|
489
517
|
* @public
|
|
490
518
|
* @enum
|
|
@@ -510,3 +538,58 @@ export declare const Pronouns: {
|
|
|
510
538
|
* @public
|
|
511
539
|
*/
|
|
512
540
|
export type Pronouns = (typeof Pronouns)[keyof typeof Pronouns];
|
|
541
|
+
/**
|
|
542
|
+
* @public
|
|
543
|
+
* @enum
|
|
544
|
+
*/
|
|
545
|
+
export declare const SyncLanguageCode: {
|
|
546
|
+
readonly DE_CH: "de-CH";
|
|
547
|
+
readonly DE_DE: "de-DE";
|
|
548
|
+
readonly EN_AB: "en-AB";
|
|
549
|
+
readonly EN_AU: "en-AU";
|
|
550
|
+
readonly EN_GB: "en-GB";
|
|
551
|
+
readonly EN_IE: "en-IE";
|
|
552
|
+
readonly EN_IN: "en-IN";
|
|
553
|
+
readonly EN_NZ: "en-NZ";
|
|
554
|
+
readonly EN_US: "en-US";
|
|
555
|
+
readonly EN_WL: "en-WL";
|
|
556
|
+
readonly EN_ZA: "en-ZA";
|
|
557
|
+
readonly ES_ES: "es-ES";
|
|
558
|
+
readonly ES_MX: "es-MX";
|
|
559
|
+
readonly ES_US: "es-US";
|
|
560
|
+
readonly FR_CA: "fr-CA";
|
|
561
|
+
readonly FR_FR: "fr-FR";
|
|
562
|
+
readonly IT_IT: "it-IT";
|
|
563
|
+
readonly JA_JP: "ja-JP";
|
|
564
|
+
readonly KO_KR: "ko-KR";
|
|
565
|
+
readonly PT_BR: "pt-BR";
|
|
566
|
+
readonly PT_PT: "pt-PT";
|
|
567
|
+
readonly ZH_CN: "zh-CN";
|
|
568
|
+
readonly ZH_HK: "zh-HK";
|
|
569
|
+
readonly ZH_TW: "zh-TW";
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* @public
|
|
573
|
+
*/
|
|
574
|
+
export type SyncLanguageCode = (typeof SyncLanguageCode)[keyof typeof SyncLanguageCode];
|
|
575
|
+
/**
|
|
576
|
+
* @public
|
|
577
|
+
* @enum
|
|
578
|
+
*/
|
|
579
|
+
export declare const SyncLanguage: {
|
|
580
|
+
readonly DE: "de";
|
|
581
|
+
readonly EN: "en";
|
|
582
|
+
readonly ES: "es";
|
|
583
|
+
readonly FR: "fr";
|
|
584
|
+
readonly IT: "it";
|
|
585
|
+
readonly JA: "ja";
|
|
586
|
+
readonly KO: "ko";
|
|
587
|
+
readonly PT: "pt";
|
|
588
|
+
readonly ZH_CN: "zh-CN";
|
|
589
|
+
readonly ZH_HK: "zh-HK";
|
|
590
|
+
readonly ZH_TW: "zh-TW";
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* @public
|
|
594
|
+
*/
|
|
595
|
+
export type SyncLanguage = (typeof SyncLanguage)[keyof typeof SyncLanguage];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
+
import type { BadRequestExceptionReason } from "./enums";
|
|
2
3
|
import { TranscribeServiceException as __BaseException } from "./TranscribeServiceException";
|
|
3
4
|
/**
|
|
4
|
-
* <p>Your request didn't pass one or more validation tests. This can occur when
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* <p>Your request didn't pass one or more validation tests. This can occur when a
|
|
6
|
+
* parameter has an invalid value, when you combine parameters in a way that isn't
|
|
7
|
+
* supported, when the entity you're trying to delete doesn't exist, or if it's in a
|
|
8
|
+
* non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field
|
|
9
|
+
* for more information.</p>
|
|
8
10
|
* @public
|
|
9
11
|
*/
|
|
10
12
|
export declare class BadRequestException extends __BaseException {
|
|
@@ -12,6 +14,49 @@ export declare class BadRequestException extends __BaseException {
|
|
|
12
14
|
readonly name: "BadRequestException";
|
|
13
15
|
readonly $fault: "client";
|
|
14
16
|
Message?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* <p>A code that identifies why the audio in your request was rejected. Currently,
|
|
19
|
+
* <code>TranscribeAudio</code> returns this field, and only for problems with your
|
|
20
|
+
* audio. It isn't returned for other validation errors.</p>
|
|
21
|
+
* <p>Possible values:</p>
|
|
22
|
+
* <ul>
|
|
23
|
+
* <li>
|
|
24
|
+
* <p>
|
|
25
|
+
* <code>audioTooLong</code>: The audio is longer than the maximum duration of 1
|
|
26
|
+
* hour.</p>
|
|
27
|
+
* </li>
|
|
28
|
+
* <li>
|
|
29
|
+
* <p>
|
|
30
|
+
* <code>audioTooShort</code>: The audio is shorter than 0.5 seconds.</p>
|
|
31
|
+
* </li>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>
|
|
34
|
+
* <code>audioFileTooLarge</code>: The audio is larger than the maximum
|
|
35
|
+
* size.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>
|
|
39
|
+
* <code>unsupportedAudioFormat</code>: The media format isn't supported.</p>
|
|
40
|
+
* </li>
|
|
41
|
+
* <li>
|
|
42
|
+
* <p>
|
|
43
|
+
* <code>unsupportedChannelCount</code>: You enabled
|
|
44
|
+
* <code>ChannelIdentification</code> and the audio has more than two
|
|
45
|
+
* channels.</p>
|
|
46
|
+
* </li>
|
|
47
|
+
* <li>
|
|
48
|
+
* <p>
|
|
49
|
+
* <code>invalidAudio</code>: Amazon Transcribe couldn't decode the audio.</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>
|
|
53
|
+
* <code>mediaDownloadFailed</code>: Amazon Transcribe couldn't download the audio at
|
|
54
|
+
* your <code>MediaFileUri</code>.</p>
|
|
55
|
+
* </li>
|
|
56
|
+
* </ul>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
Reason?: BadRequestExceptionReason | undefined;
|
|
15
60
|
/**
|
|
16
61
|
* @internal
|
|
17
62
|
*/
|