UNPKG

40.9 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class TranscribeService extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: TranscribeService.Types.ClientConfiguration)
13 config: Config & TranscribeService.Types.ClientConfiguration;
14 /**
15 * Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
16 */
17 createVocabulary(params: TranscribeService.Types.CreateVocabularyRequest, callback?: (err: AWSError, data: TranscribeService.Types.CreateVocabularyResponse) => void): Request<TranscribeService.Types.CreateVocabularyResponse, AWSError>;
18 /**
19 * Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
20 */
21 createVocabulary(callback?: (err: AWSError, data: TranscribeService.Types.CreateVocabularyResponse) => void): Request<TranscribeService.Types.CreateVocabularyResponse, AWSError>;
22 /**
23 * Creates a new vocabulary filter that you can use to filter words, such as profane words, from the output of a transcription job.
24 */
25 createVocabularyFilter(params: TranscribeService.Types.CreateVocabularyFilterRequest, callback?: (err: AWSError, data: TranscribeService.Types.CreateVocabularyFilterResponse) => void): Request<TranscribeService.Types.CreateVocabularyFilterResponse, AWSError>;
26 /**
27 * Creates a new vocabulary filter that you can use to filter words, such as profane words, from the output of a transcription job.
28 */
29 createVocabularyFilter(callback?: (err: AWSError, data: TranscribeService.Types.CreateVocabularyFilterResponse) => void): Request<TranscribeService.Types.CreateVocabularyFilterResponse, AWSError>;
30 /**
31 * Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.
32 */
33 deleteTranscriptionJob(params: TranscribeService.Types.DeleteTranscriptionJobRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
34 /**
35 * Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.
36 */
37 deleteTranscriptionJob(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
38 /**
39 * Deletes a vocabulary from Amazon Transcribe.
40 */
41 deleteVocabulary(params: TranscribeService.Types.DeleteVocabularyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
42 /**
43 * Deletes a vocabulary from Amazon Transcribe.
44 */
45 deleteVocabulary(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
46 /**
47 * Removes a vocabulary filter.
48 */
49 deleteVocabularyFilter(params: TranscribeService.Types.DeleteVocabularyFilterRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
50 /**
51 * Removes a vocabulary filter.
52 */
53 deleteVocabularyFilter(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
54 /**
55 * Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished and you can find the results at the location specified in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri.
56 */
57 getTranscriptionJob(params: TranscribeService.Types.GetTranscriptionJobRequest, callback?: (err: AWSError, data: TranscribeService.Types.GetTranscriptionJobResponse) => void): Request<TranscribeService.Types.GetTranscriptionJobResponse, AWSError>;
58 /**
59 * Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished and you can find the results at the location specified in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri.
60 */
61 getTranscriptionJob(callback?: (err: AWSError, data: TranscribeService.Types.GetTranscriptionJobResponse) => void): Request<TranscribeService.Types.GetTranscriptionJobResponse, AWSError>;
62 /**
63 * Gets information about a vocabulary.
64 */
65 getVocabulary(params: TranscribeService.Types.GetVocabularyRequest, callback?: (err: AWSError, data: TranscribeService.Types.GetVocabularyResponse) => void): Request<TranscribeService.Types.GetVocabularyResponse, AWSError>;
66 /**
67 * Gets information about a vocabulary.
68 */
69 getVocabulary(callback?: (err: AWSError, data: TranscribeService.Types.GetVocabularyResponse) => void): Request<TranscribeService.Types.GetVocabularyResponse, AWSError>;
70 /**
71 * Returns information about a vocabulary filter.
72 */
73 getVocabularyFilter(params: TranscribeService.Types.GetVocabularyFilterRequest, callback?: (err: AWSError, data: TranscribeService.Types.GetVocabularyFilterResponse) => void): Request<TranscribeService.Types.GetVocabularyFilterResponse, AWSError>;
74 /**
75 * Returns information about a vocabulary filter.
76 */
77 getVocabularyFilter(callback?: (err: AWSError, data: TranscribeService.Types.GetVocabularyFilterResponse) => void): Request<TranscribeService.Types.GetVocabularyFilterResponse, AWSError>;
78 /**
79 * Lists transcription jobs with the specified status.
80 */
81 listTranscriptionJobs(params: TranscribeService.Types.ListTranscriptionJobsRequest, callback?: (err: AWSError, data: TranscribeService.Types.ListTranscriptionJobsResponse) => void): Request<TranscribeService.Types.ListTranscriptionJobsResponse, AWSError>;
82 /**
83 * Lists transcription jobs with the specified status.
84 */
85 listTranscriptionJobs(callback?: (err: AWSError, data: TranscribeService.Types.ListTranscriptionJobsResponse) => void): Request<TranscribeService.Types.ListTranscriptionJobsResponse, AWSError>;
86 /**
87 * Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.
88 */
89 listVocabularies(params: TranscribeService.Types.ListVocabulariesRequest, callback?: (err: AWSError, data: TranscribeService.Types.ListVocabulariesResponse) => void): Request<TranscribeService.Types.ListVocabulariesResponse, AWSError>;
90 /**
91 * Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.
92 */
93 listVocabularies(callback?: (err: AWSError, data: TranscribeService.Types.ListVocabulariesResponse) => void): Request<TranscribeService.Types.ListVocabulariesResponse, AWSError>;
94 /**
95 * Gets information about vocabulary filters.
96 */
97 listVocabularyFilters(params: TranscribeService.Types.ListVocabularyFiltersRequest, callback?: (err: AWSError, data: TranscribeService.Types.ListVocabularyFiltersResponse) => void): Request<TranscribeService.Types.ListVocabularyFiltersResponse, AWSError>;
98 /**
99 * Gets information about vocabulary filters.
100 */
101 listVocabularyFilters(callback?: (err: AWSError, data: TranscribeService.Types.ListVocabularyFiltersResponse) => void): Request<TranscribeService.Types.ListVocabularyFiltersResponse, AWSError>;
102 /**
103 * Starts an asynchronous job to transcribe speech to text.
104 */
105 startTranscriptionJob(params: TranscribeService.Types.StartTranscriptionJobRequest, callback?: (err: AWSError, data: TranscribeService.Types.StartTranscriptionJobResponse) => void): Request<TranscribeService.Types.StartTranscriptionJobResponse, AWSError>;
106 /**
107 * Starts an asynchronous job to transcribe speech to text.
108 */
109 startTranscriptionJob(callback?: (err: AWSError, data: TranscribeService.Types.StartTranscriptionJobResponse) => void): Request<TranscribeService.Types.StartTranscriptionJobResponse, AWSError>;
110 /**
111 * Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request.
112 */
113 updateVocabulary(params: TranscribeService.Types.UpdateVocabularyRequest, callback?: (err: AWSError, data: TranscribeService.Types.UpdateVocabularyResponse) => void): Request<TranscribeService.Types.UpdateVocabularyResponse, AWSError>;
114 /**
115 * Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request.
116 */
117 updateVocabulary(callback?: (err: AWSError, data: TranscribeService.Types.UpdateVocabularyResponse) => void): Request<TranscribeService.Types.UpdateVocabularyResponse, AWSError>;
118 /**
119 * Updates a vocabulary filter with a new list of filtered words.
120 */
121 updateVocabularyFilter(params: TranscribeService.Types.UpdateVocabularyFilterRequest, callback?: (err: AWSError, data: TranscribeService.Types.UpdateVocabularyFilterResponse) => void): Request<TranscribeService.Types.UpdateVocabularyFilterResponse, AWSError>;
122 /**
123 * Updates a vocabulary filter with a new list of filtered words.
124 */
125 updateVocabularyFilter(callback?: (err: AWSError, data: TranscribeService.Types.UpdateVocabularyFilterResponse) => void): Request<TranscribeService.Types.UpdateVocabularyFilterResponse, AWSError>;
126}
127declare namespace TranscribeService {
128 export type Boolean = boolean;
129 export interface ContentRedaction {
130 /**
131 * Request parameter that defines the entities to be redacted. The only accepted value is PII.
132 */
133 RedactionType: RedactionType;
134 /**
135 * Request parameter where you choose whether to output only the redacted transcript or generate an additional unredacted transcript. When you choose redacted Amazon Transcribe outputs a JSON file with only the redacted transcript and related information. When you choose redacted_and_unredacted Amazon Transcribe outputs a JSON file with the unredacted transcript and related information in addition to the JSON file with the redacted transcript.
136 */
137 RedactionOutput: RedactionOutput;
138 }
139 export interface CreateVocabularyFilterRequest {
140 /**
141 * The vocabulary filter name. The name must be unique within the account that contains it.
142 */
143 VocabularyFilterName: VocabularyFilterName;
144 /**
145 * The language code of the words in the vocabulary filter. All words in the filter must be in the same language. The vocabulary filter can only be used with transcription jobs in the specified language.
146 */
147 LanguageCode: LanguageCode;
148 /**
149 * The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies. If you provide a list of words in the Words parameter, you can't use the VocabularyFilterFileUri parameter.
150 */
151 Words?: Words;
152 /**
153 * The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies. The specified file must be less than 50 KB of UTF-8 characters. If you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can't use the Words parameter.
154 */
155 VocabularyFilterFileUri?: Uri;
156 }
157 export interface CreateVocabularyFilterResponse {
158 /**
159 * The name of the vocabulary filter.
160 */
161 VocabularyFilterName?: VocabularyFilterName;
162 /**
163 * The language code of the words in the collection.
164 */
165 LanguageCode?: LanguageCode;
166 /**
167 * The date and time that the vocabulary filter was modified.
168 */
169 LastModifiedTime?: DateTime;
170 }
171 export interface CreateVocabularyRequest {
172 /**
173 * The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
174 */
175 VocabularyName: VocabularyName;
176 /**
177 * The language code of the vocabulary entries.
178 */
179 LanguageCode: LanguageCode;
180 /**
181 * An array of strings that contains the vocabulary entries.
182 */
183 Phrases?: Phrases;
184 /**
185 * The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is https://s3.&lt;aws-region&gt;.amazonaws.com/&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; For example: https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide. For more information about custom vocabularies, see Custom Vocabularies.
186 */
187 VocabularyFileUri?: Uri;
188 }
189 export interface CreateVocabularyResponse {
190 /**
191 * The name of the vocabulary.
192 */
193 VocabularyName?: VocabularyName;
194 /**
195 * The language code of the vocabulary entries.
196 */
197 LanguageCode?: LanguageCode;
198 /**
199 * The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.
200 */
201 VocabularyState?: VocabularyState;
202 /**
203 * The date and time that the vocabulary was created.
204 */
205 LastModifiedTime?: DateTime;
206 /**
207 * If the VocabularyState field is FAILED, this field contains information about why the job failed.
208 */
209 FailureReason?: FailureReason;
210 }
211 export type DataAccessRoleArn = string;
212 export type DateTime = Date;
213 export interface DeleteTranscriptionJobRequest {
214 /**
215 * The name of the transcription job to be deleted.
216 */
217 TranscriptionJobName: TranscriptionJobName;
218 }
219 export interface DeleteVocabularyFilterRequest {
220 /**
221 * The name of the vocabulary filter to remove.
222 */
223 VocabularyFilterName: VocabularyFilterName;
224 }
225 export interface DeleteVocabularyRequest {
226 /**
227 * The name of the vocabulary to delete.
228 */
229 VocabularyName: VocabularyName;
230 }
231 export type FailureReason = string;
232 export interface GetTranscriptionJobRequest {
233 /**
234 * The name of the job.
235 */
236 TranscriptionJobName: TranscriptionJobName;
237 }
238 export interface GetTranscriptionJobResponse {
239 /**
240 * An object that contains the results of the transcription job.
241 */
242 TranscriptionJob?: TranscriptionJob;
243 }
244 export interface GetVocabularyFilterRequest {
245 /**
246 * The name of the vocabulary filter for which to return information.
247 */
248 VocabularyFilterName: VocabularyFilterName;
249 }
250 export interface GetVocabularyFilterResponse {
251 /**
252 * The name of the vocabulary filter.
253 */
254 VocabularyFilterName?: VocabularyFilterName;
255 /**
256 * The language code of the words in the vocabulary filter.
257 */
258 LanguageCode?: LanguageCode;
259 /**
260 * The date and time that the contents of the vocabulary filter were updated.
261 */
262 LastModifiedTime?: DateTime;
263 /**
264 * The URI of the list of words in the vocabulary filter. You can use this URI to get the list of words.
265 */
266 DownloadUri?: Uri;
267 }
268 export interface GetVocabularyRequest {
269 /**
270 * The name of the vocabulary to return information about. The name is case-sensitive.
271 */
272 VocabularyName: VocabularyName;
273 }
274 export interface GetVocabularyResponse {
275 /**
276 * The name of the vocabulary to return.
277 */
278 VocabularyName?: VocabularyName;
279 /**
280 * The language code of the vocabulary entries.
281 */
282 LanguageCode?: LanguageCode;
283 /**
284 * The processing state of the vocabulary.
285 */
286 VocabularyState?: VocabularyState;
287 /**
288 * The date and time that the vocabulary was last modified.
289 */
290 LastModifiedTime?: DateTime;
291 /**
292 * If the VocabularyState field is FAILED, this field contains information about why the job failed.
293 */
294 FailureReason?: FailureReason;
295 /**
296 * The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The URI is available for a limited time.
297 */
298 DownloadUri?: Uri;
299 }
300 export interface JobExecutionSettings {
301 /**
302 * Indicates whether a job should be queued by Amazon Transcribe when the concurrent execution limit is exceeded. When the AllowDeferredExecution field is true, jobs are queued and will be executed when the number of executing jobs falls below the concurrent execution limit. If the field is false, Amazon Transcribe returns a LimitExceededException exception. If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.
303 */
304 AllowDeferredExecution?: Boolean;
305 /**
306 * The Amazon Resource Name (ARN) of a role that has access to the S3 bucket that contains the input files. Amazon Transcribe will assume this role to read queued media files. If you have specified an output S3 bucket for the transcription results, this role should have access to the output bucket as well. If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.
307 */
308 DataAccessRoleArn?: DataAccessRoleArn;
309 }
310 export type KMSKeyId = string;
311 export type LanguageCode = "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"|string;
312 export interface ListTranscriptionJobsRequest {
313 /**
314 * When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation date, with the newest jobs returned first. If you don’t specify a status, Amazon Transcribe returns all transcription jobs ordered by creation date.
315 */
316 Status?: TranscriptionJobStatus;
317 /**
318 * When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.
319 */
320 JobNameContains?: TranscriptionJobName;
321 /**
322 * If the result of the previous request to ListTranscriptionJobs was truncated, include the NextToken to fetch the next set of jobs.
323 */
324 NextToken?: NextToken;
325 /**
326 * The maximum number of jobs to return in the response. If there are fewer results in the list, this response contains only the actual results.
327 */
328 MaxResults?: MaxResults;
329 }
330 export interface ListTranscriptionJobsResponse {
331 /**
332 * The requested status of the jobs returned.
333 */
334 Status?: TranscriptionJobStatus;
335 /**
336 * The ListTranscriptionJobs operation returns a page of jobs at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe returns the NextPage token. Include the token in the next request to the ListTranscriptionJobs operation to return in the next page of jobs.
337 */
338 NextToken?: NextToken;
339 /**
340 * A list of objects containing summary information for a transcription job.
341 */
342 TranscriptionJobSummaries?: TranscriptionJobSummaries;
343 }
344 export interface ListVocabulariesRequest {
345 /**
346 * If the result of the previous request to ListVocabularies was truncated, include the NextToken to fetch the next set of jobs.
347 */
348 NextToken?: NextToken;
349 /**
350 * The maximum number of vocabularies to return in the response. If there are fewer results in the list, this response contains only the actual results.
351 */
352 MaxResults?: MaxResults;
353 /**
354 * When specified, only returns vocabularies with the VocabularyState field equal to the specified state.
355 */
356 StateEquals?: VocabularyState;
357 /**
358 * When specified, the vocabularies returned in the list are limited to vocabularies whose name contains the specified string. The search is case-insensitive, ListVocabularies will return both "vocabularyname" and "VocabularyName" in the response list.
359 */
360 NameContains?: VocabularyName;
361 }
362 export interface ListVocabulariesResponse {
363 /**
364 * The requested vocabulary state.
365 */
366 Status?: TranscriptionJobStatus;
367 /**
368 * The ListVocabularies operation returns a page of vocabularies at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe returns the NextPage token. Include the token in the next request to the ListVocabularies operation to return in the next page of jobs.
369 */
370 NextToken?: NextToken;
371 /**
372 * A list of objects that describe the vocabularies that match the search criteria in the request.
373 */
374 Vocabularies?: Vocabularies;
375 }
376 export interface ListVocabularyFiltersRequest {
377 /**
378 * If the result of the previous request to ListVocabularyFilters was truncated, include the NextToken to fetch the next set of collections.
379 */
380 NextToken?: NextToken;
381 /**
382 * The maximum number of filters to return in the response. If there are fewer results in the list, this response contains only the actual results.
383 */
384 MaxResults?: MaxResults;
385 /**
386 * Filters the response so that it only contains vocabulary filters whose name contains the specified string.
387 */
388 NameContains?: VocabularyFilterName;
389 }
390 export interface ListVocabularyFiltersResponse {
391 /**
392 * The ListVocabularyFilters operation returns a page of collections at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe returns the NextPage token. Include the token in the next request to the ListVocabularyFilters operation to return in the next page of jobs.
393 */
394 NextToken?: NextToken;
395 /**
396 * The list of vocabulary filters. It will contain at most MaxResults number of filters. If there are more filters, call the ListVocabularyFilters operation again with the NextToken parameter in the request set to the value of the NextToken field in the response.
397 */
398 VocabularyFilters?: VocabularyFilters;
399 }
400 export type MaxAlternatives = number;
401 export type MaxResults = number;
402 export type MaxSpeakers = number;
403 export interface Media {
404 /**
405 * The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is: s3://&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; For example: s3://examplebucket/example.mp4 s3://examplebucket/mediadocs/example.mp4 For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
406 */
407 MediaFileUri?: Uri;
408 }
409 export type MediaFormat = "mp3"|"mp4"|"wav"|"flac"|string;
410 export type MediaSampleRateHertz = number;
411 export type NextToken = string;
412 export type OutputBucketName = string;
413 export type OutputLocationType = "CUSTOMER_BUCKET"|"SERVICE_BUCKET"|string;
414 export type Phrase = string;
415 export type Phrases = Phrase[];
416 export type RedactionOutput = "redacted"|"redacted_and_unredacted"|string;
417 export type RedactionType = "PII"|string;
418 export interface Settings {
419 /**
420 * The name of a vocabulary to use when processing the transcription job.
421 */
422 VocabularyName?: VocabularyName;
423 /**
424 * Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recognition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels MaxSpeakerLabels field. You can't set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException.
425 */
426 ShowSpeakerLabels?: Boolean;
427 /**
428 * The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers will be identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.
429 */
430 MaxSpeakerLabels?: MaxSpeakers;
431 /**
432 * Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription. Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription. You can't set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException.
433 */
434 ChannelIdentification?: Boolean;
435 /**
436 * Determines whether the transcription contains alternative transcriptions. If you set the ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.
437 */
438 ShowAlternatives?: Boolean;
439 /**
440 * The number of alternative transcriptions that the service should return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.
441 */
442 MaxAlternatives?: MaxAlternatives;
443 /**
444 * The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
445 */
446 VocabularyFilterName?: VocabularyFilterName;
447 /**
448 * Set to mask to remove filtered text from the transcript and replace it with three asterisks ("***") as placeholder text. Set to remove to remove filtered text from the transcript without using placeholder text.
449 */
450 VocabularyFilterMethod?: VocabularyFilterMethod;
451 }
452 export interface StartTranscriptionJobRequest {
453 /**
454 * The name of the job. Note that you can't use the strings "." or ".." by themselves as the job name. The name must also be unique within an AWS account.
455 */
456 TranscriptionJobName: TranscriptionJobName;
457 /**
458 * The language code for the language used in the input media file.
459 */
460 LanguageCode: LanguageCode;
461 /**
462 * The sample rate, in Hertz, of the audio track in the input media file. If you do not specify the media sample rate, Amazon Transcribe determines the sample rate. If you specify the sample rate, it must match the sample rate detected by Amazon Transcribe. In most cases, you should leave the MediaSampleRateHertz field blank and let Amazon Transcribe determine the sample rate.
463 */
464 MediaSampleRateHertz?: MediaSampleRateHertz;
465 /**
466 * The format of the input media file.
467 */
468 MediaFormat?: MediaFormat;
469 /**
470 * An object that describes the input media for a transcription job.
471 */
472 Media: Media;
473 /**
474 * The location where the transcription is stored. If you set the OutputBucketName, Amazon Transcribe puts the transcript in the specified S3 bucket. When you call the GetTranscriptionJob operation, the operation returns this location in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri. If you enable content redaction and choose to output an unredacted transcript, that transcript's location still appears in the TranscriptFileUri. The S3 bucket must have permissions that allow Amazon Transcribe to put files in the bucket. For more information, see Permissions Required for IAM User Roles. You can specify an AWS Key Management Service (KMS) key to encrypt the output of your transcription using the OutputEncryptionKMSKeyId parameter. If you don't specify a KMS key, Amazon Transcribe uses the default Amazon S3 key for server-side encryption of transcripts that are placed in your S3 bucket. If you don't set the OutputBucketName, Amazon Transcribe generates a pre-signed URL, a shareable URL that provides secure access to your transcription, and returns it in the TranscriptFileUri field. Use this URL to download the transcription.
475 */
476 OutputBucketName?: OutputBucketName;
477 /**
478 * The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key used to encrypt the output of the transcription job. The user calling the StartTranscriptionJob operation must have permission to use the specified KMS key. You can use either of the following to identify a KMS key in the current account: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" KMS Key Alias: "alias/ExampleAlias" You can use either of the following to identify a KMS key in the current account or another account: Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef-1234567890ab" ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias" If you don't specify an encryption key, the output of the transcription job is encrypted with the default Amazon S3 key (SSE-S3). If you specify a KMS key to encrypt your output, you must also specify an output location in the OutputBucketName parameter.
479 */
480 OutputEncryptionKMSKeyId?: KMSKeyId;
481 /**
482 * A Settings object that provides optional settings for a transcription job.
483 */
484 Settings?: Settings;
485 /**
486 * Provides information about how a transcription job is executed. Use this field to indicate that the job can be queued for deferred execution if the concurrency limit is reached and there are no slots available to immediately run the job.
487 */
488 JobExecutionSettings?: JobExecutionSettings;
489 /**
490 * An object that contains the request parameters for content redaction.
491 */
492 ContentRedaction?: ContentRedaction;
493 }
494 export interface StartTranscriptionJobResponse {
495 /**
496 * An object containing details of the asynchronous transcription job.
497 */
498 TranscriptionJob?: TranscriptionJob;
499 }
500 export interface Transcript {
501 /**
502 * The S3 object location of the the transcript. Use this URI to access the transcript. If you specified an S3 bucket in the OutputBucketName field when you created the job, this is the URI of that bucket. If you chose to store the transcript in Amazon Transcribe, this is a shareable URL that provides secure access to that location.
503 */
504 TranscriptFileUri?: Uri;
505 /**
506 * The S3 object location of the redacted transcript. Use this URI to access the redacated transcript. If you specified an S3 bucket in the OutputBucketName field when you created the job, this is the URI of that bucket. If you chose to store the transcript in Amazon Transcribe, this is a shareable URL that provides secure access to that location.
507 */
508 RedactedTranscriptFileUri?: Uri;
509 }
510 export interface TranscriptionJob {
511 /**
512 * The name of the transcription job.
513 */
514 TranscriptionJobName?: TranscriptionJobName;
515 /**
516 * The status of the transcription job.
517 */
518 TranscriptionJobStatus?: TranscriptionJobStatus;
519 /**
520 * The language code for the input speech.
521 */
522 LanguageCode?: LanguageCode;
523 /**
524 * The sample rate, in Hertz, of the audio track in the input media file.
525 */
526 MediaSampleRateHertz?: MediaSampleRateHertz;
527 /**
528 * The format of the input media file.
529 */
530 MediaFormat?: MediaFormat;
531 /**
532 * An object that describes the input media for the transcription job.
533 */
534 Media?: Media;
535 /**
536 * An object that describes the output of the transcription job.
537 */
538 Transcript?: Transcript;
539 /**
540 * A timestamp that shows with the job was started processing.
541 */
542 StartTime?: DateTime;
543 /**
544 * A timestamp that shows when the job was created.
545 */
546 CreationTime?: DateTime;
547 /**
548 * A timestamp that shows when the job was completed.
549 */
550 CompletionTime?: DateTime;
551 /**
552 * If the TranscriptionJobStatus field is FAILED, this field contains information about why the job failed. The FailureReason field can contain one of the following values: Unsupported media format - The media format specified in the MediaFormat field of the request isn't valid. See the description of the MediaFormat field for a list of valid values. The media format provided does not match the detected media format - The media format of the audio file doesn't match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure that the two values match. Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn't valid. The sample rate must be between 8000 and 48000 Hertz. The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn't match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match. Invalid file size: file size too large - The size of your audio file is larger than Amazon Transcribe can process. For more information, see Limits in the Amazon Transcribe Developer Guide. Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe is configured to process. To request additional channels, see Amazon Transcribe Limits in the Amazon Web Services General Reference.
553 */
554 FailureReason?: FailureReason;
555 /**
556 * Optional settings for the transcription job. Use these settings to turn on speaker recognition, to set the maximum number of speakers that should be identified and to specify a custom vocabulary to use when processing the transcription job.
557 */
558 Settings?: Settings;
559 /**
560 * Provides information about how a transcription job is executed.
561 */
562 JobExecutionSettings?: JobExecutionSettings;
563 /**
564 * An object that describes content redaction settings for the transcription job.
565 */
566 ContentRedaction?: ContentRedaction;
567 }
568 export type TranscriptionJobName = string;
569 export type TranscriptionJobStatus = "QUEUED"|"IN_PROGRESS"|"FAILED"|"COMPLETED"|string;
570 export type TranscriptionJobSummaries = TranscriptionJobSummary[];
571 export interface TranscriptionJobSummary {
572 /**
573 * The name of the transcription job.
574 */
575 TranscriptionJobName?: TranscriptionJobName;
576 /**
577 * A timestamp that shows when the job was created.
578 */
579 CreationTime?: DateTime;
580 /**
581 * A timestamp that shows when the job started processing.
582 */
583 StartTime?: DateTime;
584 /**
585 * A timestamp that shows when the job was completed.
586 */
587 CompletionTime?: DateTime;
588 /**
589 * The language code for the input speech.
590 */
591 LanguageCode?: LanguageCode;
592 /**
593 * The status of the transcription job. When the status is COMPLETED, use the GetTranscriptionJob operation to get the results of the transcription.
594 */
595 TranscriptionJobStatus?: TranscriptionJobStatus;
596 /**
597 * If the TranscriptionJobStatus field is FAILED, a description of the error.
598 */
599 FailureReason?: FailureReason;
600 /**
601 * Indicates the location of the output of the transcription job. If the value is CUSTOMER_BUCKET then the location is the S3 bucket specified in the outputBucketName field when the transcription job was started with the StartTranscriptionJob operation. If the value is SERVICE_BUCKET then the output is stored by Amazon Transcribe and can be retrieved using the URI in the GetTranscriptionJob response's TranscriptFileUri field.
602 */
603 OutputLocationType?: OutputLocationType;
604 /**
605 * The content redaction settings of the transcription job.
606 */
607 ContentRedaction?: ContentRedaction;
608 }
609 export interface UpdateVocabularyFilterRequest {
610 /**
611 * The name of the vocabulary filter to update.
612 */
613 VocabularyFilterName: VocabularyFilterName;
614 /**
615 * The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies. If you provide a list of words in the Words parameter, you can't use the VocabularyFilterFileUri parameter.
616 */
617 Words?: Words;
618 /**
619 * The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies. The specified file must be less than 50 KB of UTF-8 characters. If you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can't use the Words parameter.
620 */
621 VocabularyFilterFileUri?: Uri;
622 }
623 export interface UpdateVocabularyFilterResponse {
624 /**
625 * The name of the updated vocabulary filter.
626 */
627 VocabularyFilterName?: VocabularyFilterName;
628 /**
629 * The language code of the words in the vocabulary filter.
630 */
631 LanguageCode?: LanguageCode;
632 /**
633 * The date and time that the vocabulary filter was updated.
634 */
635 LastModifiedTime?: DateTime;
636 }
637 export interface UpdateVocabularyRequest {
638 /**
639 * The name of the vocabulary to update. The name is case-sensitive.
640 */
641 VocabularyName: VocabularyName;
642 /**
643 * The language code of the vocabulary entries.
644 */
645 LanguageCode: LanguageCode;
646 /**
647 * An array of strings containing the vocabulary entries.
648 */
649 Phrases?: Phrases;
650 /**
651 * The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is https://s3.&lt;aws-region&gt;.amazonaws.com/&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; For example: https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide. For more information about custom vocabularies, see Custom Vocabularies.
652 */
653 VocabularyFileUri?: Uri;
654 }
655 export interface UpdateVocabularyResponse {
656 /**
657 * The name of the vocabulary that was updated.
658 */
659 VocabularyName?: VocabularyName;
660 /**
661 * The language code of the vocabulary entries.
662 */
663 LanguageCode?: LanguageCode;
664 /**
665 * The date and time that the vocabulary was updated.
666 */
667 LastModifiedTime?: DateTime;
668 /**
669 * The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.
670 */
671 VocabularyState?: VocabularyState;
672 }
673 export type Uri = string;
674 export type Vocabularies = VocabularyInfo[];
675 export interface VocabularyFilterInfo {
676 /**
677 * The name of the vocabulary filter. The name must be unique in the account that holds the filter.
678 */
679 VocabularyFilterName?: VocabularyFilterName;
680 /**
681 * The language code of the words in the vocabulary filter.
682 */
683 LanguageCode?: LanguageCode;
684 /**
685 * The date and time that the vocabulary was last updated.
686 */
687 LastModifiedTime?: DateTime;
688 }
689 export type VocabularyFilterMethod = "remove"|"mask"|string;
690 export type VocabularyFilterName = string;
691 export type VocabularyFilters = VocabularyFilterInfo[];
692 export interface VocabularyInfo {
693 /**
694 * The name of the vocabulary.
695 */
696 VocabularyName?: VocabularyName;
697 /**
698 * The language code of the vocabulary entries.
699 */
700 LanguageCode?: LanguageCode;
701 /**
702 * The date and time that the vocabulary was last modified.
703 */
704 LastModifiedTime?: DateTime;
705 /**
706 * The processing state of the vocabulary. If the state is READY you can use the vocabulary in a StartTranscriptionJob request.
707 */
708 VocabularyState?: VocabularyState;
709 }
710 export type VocabularyName = string;
711 export type VocabularyState = "PENDING"|"READY"|"FAILED"|string;
712 export type Word = string;
713 export type Words = Word[];
714 /**
715 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
716 */
717 export type apiVersion = "2017-10-26"|"latest"|string;
718 export interface ClientApiVersions {
719 /**
720 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
721 */
722 apiVersion?: apiVersion;
723 }
724 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
725 /**
726 * Contains interfaces for use with the TranscribeService client.
727 */
728 export import Types = TranscribeService;
729}
730export = TranscribeService;