import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StartTranscriptionJobRequest, StartTranscriptionJobResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StartTranscriptionJobCommand}. */ export interface StartTranscriptionJobCommandInput extends StartTranscriptionJobRequest { } /** * @public * * The output of {@link StartTranscriptionJobCommand}. */ export interface StartTranscriptionJobCommandOutput extends StartTranscriptionJobResponse, __MetadataBearer { } declare const StartTranscriptionJobCommand_base: { new (input: StartTranscriptionJobCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartTranscriptionJobCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Transcribes the audio from a media file and applies any additional Request Parameters * you choose to include in your request.

*

To make a StartTranscriptionJob request, you must first upload your media * file into an Amazon S3 bucket; you can then specify the Amazon S3 * location of the file using the Media parameter.

*

You must include the following parameters in your StartTranscriptionJob * request:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TranscribeClient, StartTranscriptionJobCommand } from "@aws-sdk/client-transcribe"; // ES Modules import * // const { TranscribeClient, StartTranscriptionJobCommand } = require("@aws-sdk/client-transcribe"); // CommonJS import * // import type { TranscribeClientConfig } from "@aws-sdk/client-transcribe"; * const config = {}; // type is TranscribeClientConfig * const client = new TranscribeClient(config); * const input = { // StartTranscriptionJobRequest * TranscriptionJobName: "STRING_VALUE", // required * LanguageCode: "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", * MediaSampleRateHertz: Number("int"), * MediaFormat: "mp3" || "mp4" || "wav" || "flac" || "ogg" || "amr" || "webm" || "m4a", * Media: { // Media * MediaFileUri: "STRING_VALUE", * RedactedMediaFileUri: "STRING_VALUE", * }, * OutputBucketName: "STRING_VALUE", * OutputKey: "STRING_VALUE", * OutputEncryptionKMSKeyId: "STRING_VALUE", * KMSEncryptionContext: { // KMSEncryptionContextMap * "": "STRING_VALUE", * }, * Settings: { // Settings * VocabularyName: "STRING_VALUE", * ShowSpeakerLabels: true || false, * MaxSpeakerLabels: Number("int"), * ChannelIdentification: true || false, * ShowAlternatives: true || false, * MaxAlternatives: Number("int"), * VocabularyFilterName: "STRING_VALUE", * VocabularyFilterMethod: "remove" || "mask" || "tag", * }, * ModelSettings: { // ModelSettings * LanguageModelName: "STRING_VALUE", * }, * JobExecutionSettings: { // JobExecutionSettings * AllowDeferredExecution: true || false, * DataAccessRoleArn: "STRING_VALUE", * }, * ContentRedaction: { // ContentRedaction * RedactionType: "PII", // required * RedactionOutput: "redacted" || "redacted_and_unredacted", // required * PiiEntityTypes: [ // PiiEntityTypes * "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", * ], * }, * IdentifyLanguage: true || false, * IdentifyMultipleLanguages: true || false, * LanguageOptions: [ // LanguageOptions * "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", * ], * Subtitles: { // Subtitles * Formats: [ // SubtitleFormats * "vtt" || "srt", * ], * OutputStartIndex: Number("int"), * }, * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * LanguageIdSettings: { // LanguageIdSettingsMap * "": { // LanguageIdSettings * VocabularyName: "STRING_VALUE", * VocabularyFilterName: "STRING_VALUE", * LanguageModelName: "STRING_VALUE", * }, * }, * ToxicityDetection: [ // ToxicityDetection * { // ToxicityDetectionSettings * ToxicityCategories: [ // ToxicityCategories // required * "ALL", * ], * }, * ], * }; * const command = new StartTranscriptionJobCommand(input); * const response = await client.send(command); * // { // StartTranscriptionJobResponse * // TranscriptionJob: { // TranscriptionJob * // TranscriptionJobName: "STRING_VALUE", * // TranscriptionJobStatus: "QUEUED" || "IN_PROGRESS" || "FAILED" || "COMPLETED", * // LanguageCode: "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", * // MediaSampleRateHertz: Number("int"), * // MediaFormat: "mp3" || "mp4" || "wav" || "flac" || "ogg" || "amr" || "webm" || "m4a", * // Media: { // Media * // MediaFileUri: "STRING_VALUE", * // RedactedMediaFileUri: "STRING_VALUE", * // }, * // Transcript: { // Transcript * // TranscriptFileUri: "STRING_VALUE", * // RedactedTranscriptFileUri: "STRING_VALUE", * // }, * // StartTime: new Date("TIMESTAMP"), * // CreationTime: new Date("TIMESTAMP"), * // CompletionTime: new Date("TIMESTAMP"), * // FailureReason: "STRING_VALUE", * // Settings: { // Settings * // VocabularyName: "STRING_VALUE", * // ShowSpeakerLabels: true || false, * // MaxSpeakerLabels: Number("int"), * // ChannelIdentification: true || false, * // ShowAlternatives: true || false, * // MaxAlternatives: Number("int"), * // VocabularyFilterName: "STRING_VALUE", * // VocabularyFilterMethod: "remove" || "mask" || "tag", * // }, * // ModelSettings: { // ModelSettings * // LanguageModelName: "STRING_VALUE", * // }, * // JobExecutionSettings: { // JobExecutionSettings * // AllowDeferredExecution: true || false, * // DataAccessRoleArn: "STRING_VALUE", * // }, * // ContentRedaction: { // ContentRedaction * // RedactionType: "PII", // required * // RedactionOutput: "redacted" || "redacted_and_unredacted", // required * // PiiEntityTypes: [ // PiiEntityTypes * // "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", * // ], * // }, * // IdentifyLanguage: true || false, * // IdentifyMultipleLanguages: true || false, * // LanguageOptions: [ // LanguageOptions * // "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", * // ], * // IdentifiedLanguageScore: Number("float"), * // LanguageCodes: [ // LanguageCodeList * // { // LanguageCodeItem * // LanguageCode: "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", * // DurationInSeconds: Number("float"), * // }, * // ], * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // Subtitles: { // SubtitlesOutput * // Formats: [ // SubtitleFormats * // "vtt" || "srt", * // ], * // SubtitleFileUris: [ // SubtitleFileUris * // "STRING_VALUE", * // ], * // OutputStartIndex: Number("int"), * // }, * // LanguageIdSettings: { // LanguageIdSettingsMap * // "": { // LanguageIdSettings * // VocabularyName: "STRING_VALUE", * // VocabularyFilterName: "STRING_VALUE", * // LanguageModelName: "STRING_VALUE", * // }, * // }, * // ToxicityDetection: [ // ToxicityDetection * // { // ToxicityDetectionSettings * // ToxicityCategories: [ // ToxicityCategories // required * // "ALL", * // ], * // }, * // ], * // }, * // }; * * ``` * * @param StartTranscriptionJobCommandInput - {@link StartTranscriptionJobCommandInput} * @returns {@link StartTranscriptionJobCommandOutput} * @see {@link StartTranscriptionJobCommandInput} for command's `input` shape. * @see {@link StartTranscriptionJobCommandOutput} for command's `response` shape. * @see {@link TranscribeClientResolvedConfig | config} for TranscribeClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Your request didn't pass one or more validation tests. This can occur when a * parameter has an invalid value, when you combine parameters in a way that isn't * supported, when the entity you're trying to delete doesn't exist, or if it's in a * non-terminal state (such as IN PROGRESS). See the exception message field * for more information.

* * @throws {@link ConflictException} (client fault) *

A resource already exists with this name. Resource names must be unique within an * Amazon Web Services account.

* * @throws {@link InternalFailureException} (server fault) *

There was an internal error. Check the error message, correct the issue, and try your * request again.

* * @throws {@link LimitExceededException} (client fault) *

You've either sent too many requests or your input file is too long. Wait before * retrying your request, or use a smaller file and try your request again.

* * @throws {@link TranscribeServiceException} *

Base exception class for all service exceptions from Transcribe service.

* * * @public */ export declare class StartTranscriptionJobCommand extends StartTranscriptionJobCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartTranscriptionJobRequest; output: StartTranscriptionJobResponse; }; sdk: { input: StartTranscriptionJobCommandInput; output: StartTranscriptionJobCommandOutput; }; }; }