Class StartTranscriptionJobRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<StartTranscriptionJobRequest.Builder,StartTranscriptionJobRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final ContentRedactionMakes it possible to redact or flag specified personally identifiable information (PII) in your transcript.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the KMSEncryptionContext property.final booleanFor responses, this returns true if the service returned a value for the LanguageIdSettings property.final booleanFor responses, this returns true if the service returned a value for the LanguageOptions property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final booleanFor responses, this returns true if the service returned a value for the ToxicityDetection property.final BooleanEnables automatic language identification in your transcription job request.final BooleanEnables automatic multi-language identification in your transcription job request.final JobExecutionSettingsMakes it possible to control how your transcription job is processed.A map of plain text, non-secret key:value pairs, known as encryption context pairs, that provide an added layer of security for your data.final LanguageCodeThe language code that represents the language spoken in the input media file.final StringThe language code that represents the language spoken in the input media file.final Map<LanguageCode, LanguageIdSettings> If using automatic language identification in your request and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter, includeLanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName).final Map<String, LanguageIdSettings> If using automatic language identification in your request and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter, includeLanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName).final List<LanguageCode> You can specify two or more language codes that represent the languages you think may be present in your media.You can specify two or more language codes that represent the languages you think may be present in your media.final Mediamedia()Describes the Amazon S3 location of the media file you want to use in your request.final MediaFormatSpecify the format of your input media file.final StringSpecify the format of your input media file.final IntegerThe sample rate, in hertz, of the audio track in your input media file.final ModelSettingsSpecify the custom language model you want to include with your transcription job.final StringThe name of the Amazon S3 bucket where you want your transcription output stored.final StringThe KMS key you want to use to encrypt your transcription output.final StringUse in combination withOutputBucketNameto specify the output location of your transcript and, optionally, a unique name for your output file.static Class<? extends StartTranscriptionJobRequest.Builder> final Settingssettings()Specify additional optional settings in your request, including channel identification, alternative transcriptions, speaker partitioning.final SubtitlesProduces subtitle files for your input media.tags()Adds one or more custom tags, each in the form of a key:value pair, to a new transcription job at the time you start this new job.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final List<ToxicityDetectionSettings> Enables toxic speech detection in your transcript.final StringA unique name, chosen by you, for your transcription job.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
transcriptionJobName
A unique name, chosen by you, for your transcription job. The name that you specify is also used as the default name of your transcription output file. If you want to specify a different name for your transcription output, use the
OutputKeyparameter.This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new job with the same name as an existing job, you get a
ConflictExceptionerror.- Returns:
- A unique name, chosen by you, for your transcription job. The name that you specify is also used as the
default name of your transcription output file. If you want to specify a different name for your
transcription output, use the
OutputKeyparameter.This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new job with the same name as an existing job, you get a
ConflictExceptionerror.
-
languageCode
The language code that represents the language spoken in the input media file.
If you're unsure of the language spoken in your media file, consider using
IdentifyLanguageorIdentifyMultipleLanguagesto enable automatic language identification.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.For a list of supported languages and their associated language codes, refer to the Supported languages table.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.If the service returns an enum value that is not available in the current SDK version,
languageCodewill returnLanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageCodeAsString().- Returns:
- The language code that represents the language spoken in the input media file.
If you're unsure of the language spoken in your media file, consider using
IdentifyLanguageorIdentifyMultipleLanguagesto enable automatic language identification.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.For a list of supported languages and their associated language codes, refer to the Supported languages table.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher. - See Also:
-
languageCodeAsString
The language code that represents the language spoken in the input media file.
If you're unsure of the language spoken in your media file, consider using
IdentifyLanguageorIdentifyMultipleLanguagesto enable automatic language identification.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.For a list of supported languages and their associated language codes, refer to the Supported languages table.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.If the service returns an enum value that is not available in the current SDK version,
languageCodewill returnLanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageCodeAsString().- Returns:
- The language code that represents the language spoken in the input media file.
If you're unsure of the language spoken in your media file, consider using
IdentifyLanguageorIdentifyMultipleLanguagesto enable automatic language identification.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.For a list of supported languages and their associated language codes, refer to the Supported languages table.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher. - See Also:
-
mediaSampleRateHertz
The sample rate, in hertz, of the audio track in your input media file.
If you do not specify the media sample rate, Amazon Transcribe determines it for you. If you specify the sample rate, it must match the rate detected by Amazon Transcribe. If there's a mismatch between the value that you specify and the value detected, your job fails. In most cases, you can omit
MediaSampleRateHertzand let Amazon Transcribe determine the sample rate.- Returns:
- The sample rate, in hertz, of the audio track in your input media file.
If you do not specify the media sample rate, Amazon Transcribe determines it for you. If you specify the sample rate, it must match the rate detected by Amazon Transcribe. If there's a mismatch between the value that you specify and the value detected, your job fails. In most cases, you can omit
MediaSampleRateHertzand let Amazon Transcribe determine the sample rate.
-
mediaFormat
Specify the format of your input media file.
If the service returns an enum value that is not available in the current SDK version,
mediaFormatwill returnMediaFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommediaFormatAsString().- Returns:
- Specify the format of your input media file.
- See Also:
-
mediaFormatAsString
Specify the format of your input media file.
If the service returns an enum value that is not available in the current SDK version,
mediaFormatwill returnMediaFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommediaFormatAsString().- Returns:
- Specify the format of your input media file.
- See Also:
-
media
Describes the Amazon S3 location of the media file you want to use in your request.
- Returns:
- Describes the Amazon S3 location of the media file you want to use in your request.
-
outputBucketName
The name of the Amazon S3 bucket where you want your transcription output stored. Do not include the
S3://prefix of the specified bucket.If you want your output to go to a sub-folder of this bucket, specify it using the
OutputKeyparameter;OutputBucketNameonly accepts the name of a bucket.For example, if you want your output stored in
S3://DOC-EXAMPLE-BUCKET, setOutputBucketNametoDOC-EXAMPLE-BUCKET. However, if you want your output stored inS3://DOC-EXAMPLE-BUCKET/test-files/, setOutputBucketNametoDOC-EXAMPLE-BUCKETandOutputKeytotest-files/.Note that Amazon Transcribe must have permission to use the specified location. You can change Amazon S3 permissions using the Amazon Web Services Management Console. See also Permissions Required for IAM User Roles.
If you do not specify
OutputBucketName, your transcript is placed in a service-managed Amazon S3 bucket and you are provided with a URI to access your transcript.- Returns:
- The name of the Amazon S3 bucket where you want your transcription output stored. Do not include the
S3://prefix of the specified bucket.If you want your output to go to a sub-folder of this bucket, specify it using the
OutputKeyparameter;OutputBucketNameonly accepts the name of a bucket.For example, if you want your output stored in
S3://DOC-EXAMPLE-BUCKET, setOutputBucketNametoDOC-EXAMPLE-BUCKET. However, if you want your output stored inS3://DOC-EXAMPLE-BUCKET/test-files/, setOutputBucketNametoDOC-EXAMPLE-BUCKETandOutputKeytotest-files/.Note that Amazon Transcribe must have permission to use the specified location. You can change Amazon S3 permissions using the Amazon Web Services Management Console. See also Permissions Required for IAM User Roles.
If you do not specify
OutputBucketName, your transcript is placed in a service-managed Amazon S3 bucket and you are provided with a URI to access your transcript.
-
outputKey
Use in combination with
OutputBucketNameto specify the output location of your transcript and, optionally, a unique name for your output file. The default name for your transcription output is the same as the name you specified for your transcription job (TranscriptionJobName).Here are some examples of how you can use
OutputKey:-
If you specify 'DOC-EXAMPLE-BUCKET' as the
OutputBucketNameand 'my-transcript.json' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript.json. -
If you specify 'my-first-transcription' as the
TranscriptionJobName, 'DOC-EXAMPLE-BUCKET' as theOutputBucketName, and 'my-transcript' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript/my-first-transcription.json. -
If you specify 'DOC-EXAMPLE-BUCKET' as the
OutputBucketNameand 'test-files/my-transcript.json' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript.json. -
If you specify 'my-first-transcription' as the
TranscriptionJobName, 'DOC-EXAMPLE-BUCKET' as theOutputBucketName, and 'test-files/my-transcript' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript/my-first-transcription.json.
If you specify the name of an Amazon S3 bucket sub-folder that doesn't exist, one is created for you.
- Returns:
- Use in combination with
OutputBucketNameto specify the output location of your transcript and, optionally, a unique name for your output file. The default name for your transcription output is the same as the name you specified for your transcription job (TranscriptionJobName).Here are some examples of how you can use
OutputKey:-
If you specify 'DOC-EXAMPLE-BUCKET' as the
OutputBucketNameand 'my-transcript.json' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript.json. -
If you specify 'my-first-transcription' as the
TranscriptionJobName, 'DOC-EXAMPLE-BUCKET' as theOutputBucketName, and 'my-transcript' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript/my-first-transcription.json. -
If you specify 'DOC-EXAMPLE-BUCKET' as the
OutputBucketNameand 'test-files/my-transcript.json' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript.json. -
If you specify 'my-first-transcription' as the
TranscriptionJobName, 'DOC-EXAMPLE-BUCKET' as theOutputBucketName, and 'test-files/my-transcript' as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript/my-first-transcription.json.
If you specify the name of an Amazon S3 bucket sub-folder that doesn't exist, one is created for you.
-
-
-
outputEncryptionKMSKeyId
The KMS key you want to use to encrypt your transcription output.
If using a key located in the current Amazon Web Services account, you can specify your KMS key in one of four ways:
-
Use the KMS key ID itself. For example,
1234abcd-12ab-34cd-56ef-1234567890ab. -
Use an alias for the KMS key ID. For example,
alias/ExampleAlias. -
Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If using a key located in a different Amazon Web Services account than the current Amazon Web Services account, you can specify your KMS key in one of two ways:
-
Use the ARN for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If you do not specify an encryption key, your output 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 using the
OutputLocationparameter.Note that the role making the request must have permission to use the specified KMS key.
- Returns:
- The KMS key you want to use to encrypt your transcription output.
If using a key located in the current Amazon Web Services account, you can specify your KMS key in one of four ways:
-
Use the KMS key ID itself. For example,
1234abcd-12ab-34cd-56ef-1234567890ab. -
Use an alias for the KMS key ID. For example,
alias/ExampleAlias. -
Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If using a key located in a different Amazon Web Services account than the current Amazon Web Services account, you can specify your KMS key in one of two ways:
-
Use the ARN for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If you do not specify an encryption key, your output 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 using the
OutputLocationparameter.Note that the role making the request must have permission to use the specified KMS key.
-
-
-
hasKmsEncryptionContext
public final boolean hasKmsEncryptionContext()For responses, this returns true if the service returned a value for the KMSEncryptionContext property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
kmsEncryptionContext
A map of plain text, non-secret key:value pairs, known as encryption context pairs, that provide an added layer of security for your data. For more information, see KMS encryption context and Asymmetric keys in KMS.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasKmsEncryptionContext()method.- Returns:
- A map of plain text, non-secret key:value pairs, known as encryption context pairs, that provide an added layer of security for your data. For more information, see KMS encryption context and Asymmetric keys in KMS.
-
settings
Specify additional optional settings in your request, including channel identification, alternative transcriptions, speaker partitioning. You can use that to apply custom vocabularies and vocabulary filters.
If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use
Settingswith theVocabularyNameorVocabularyFilterName(or both) sub-parameter.If you're using automatic language identification with your request and want to include a custom language model, a custom vocabulary, or a custom vocabulary filter, use instead the
parameter with theLanguageModelName,VocabularyNameorVocabularyFilterNamesub-parameters.- Returns:
- Specify additional optional settings in your request, including channel identification, alternative
transcriptions, speaker partitioning. You can use that to apply custom vocabularies and vocabulary
filters.
If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use
Settingswith theVocabularyNameorVocabularyFilterName(or both) sub-parameter.If you're using automatic language identification with your request and want to include a custom language model, a custom vocabulary, or a custom vocabulary filter, use instead the
parameter with theLanguageModelName,VocabularyNameorVocabularyFilterNamesub-parameters.
-
modelSettings
Specify the custom language model you want to include with your transcription job. If you include
ModelSettingsin your request, you must include theLanguageModelNamesub-parameter.For more information, see Custom language models.
- Returns:
- Specify the custom language model you want to include with your transcription job. If you include
ModelSettingsin your request, you must include theLanguageModelNamesub-parameter.For more information, see Custom language models.
-
jobExecutionSettings
Makes it possible to control how your transcription job is processed. Currently, the only
JobExecutionSettingsmodification you can choose is enabling job queueing using theAllowDeferredExecutionsub-parameter.If you include
JobExecutionSettingsin your request, you must also include the sub-parameters:AllowDeferredExecutionandDataAccessRoleArn.- Returns:
- Makes it possible to control how your transcription job is processed. Currently, the only
JobExecutionSettingsmodification you can choose is enabling job queueing using theAllowDeferredExecutionsub-parameter.If you include
JobExecutionSettingsin your request, you must also include the sub-parameters:AllowDeferredExecutionandDataAccessRoleArn.
-
contentRedaction
Makes it possible to redact or flag specified personally identifiable information (PII) in your transcript. If you use
ContentRedaction, you must also include the sub-parameters:RedactionOutputandRedactionType. You can optionally includePiiEntityTypesto choose which types of PII you want to redact. If you do not includePiiEntityTypesin your request, all PII is redacted.- Returns:
- Makes it possible to redact or flag specified personally identifiable information (PII) in your
transcript. If you use
ContentRedaction, you must also include the sub-parameters:RedactionOutputandRedactionType. You can optionally includePiiEntityTypesto choose which types of PII you want to redact. If you do not includePiiEntityTypesin your request, all PII is redacted.
-
identifyLanguage
Enables automatic language identification in your transcription job request. Use this parameter if your media file contains only one language. If your media contains multiple languages, use
IdentifyMultipleLanguagesinstead.If you include
IdentifyLanguage, you can optionally include a list of language codes, usingLanguageOptions, that you think may be present in your media file. IncludingLanguageOptionsrestrictsIdentifyLanguageto only the language options that you specify, which can improve transcription accuracy.If you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter to your automatic language identification request, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName). If you includeLanguageIdSettings, also includeLanguageOptions.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.- Returns:
- Enables automatic language identification in your transcription job request. Use this parameter if your
media file contains only one language. If your media contains multiple languages, use
IdentifyMultipleLanguagesinstead.If you include
IdentifyLanguage, you can optionally include a list of language codes, usingLanguageOptions, that you think may be present in your media file. IncludingLanguageOptionsrestrictsIdentifyLanguageto only the language options that you specify, which can improve transcription accuracy.If you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter to your automatic language identification request, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName). If you includeLanguageIdSettings, also includeLanguageOptions.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.
-
identifyMultipleLanguages
Enables automatic multi-language identification in your transcription job request. Use this parameter if your media file contains more than one language. If your media contains only one language, use
IdentifyLanguageinstead.If you include
IdentifyMultipleLanguages, you can optionally include a list of language codes, usingLanguageOptions, that you think may be present in your media file. IncludingLanguageOptionsrestrictsIdentifyLanguageto only the language options that you specify, which can improve transcription accuracy.If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic language identification request, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyNameandVocabularyFilterName). If you includeLanguageIdSettings, also includeLanguageOptions.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.- Returns:
- Enables automatic multi-language identification in your transcription job request. Use this parameter if
your media file contains more than one language. If your media contains only one language, use
IdentifyLanguageinstead.If you include
IdentifyMultipleLanguages, you can optionally include a list of language codes, usingLanguageOptions, that you think may be present in your media file. IncludingLanguageOptionsrestrictsIdentifyLanguageto only the language options that you specify, which can improve transcription accuracy.If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic language identification request, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyNameandVocabularyFilterName). If you includeLanguageIdSettings, also includeLanguageOptions.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.
-
languageOptions
You can specify two or more language codes that represent the languages you think may be present in your media. Including more than five is not recommended. If you're unsure what languages are present, do not include this parameter.
If you include
LanguageOptionsin your request, you must also includeIdentifyLanguage.For more information, refer to Supported languages.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLanguageOptions()method.- Returns:
- You can specify two or more language codes that represent the languages you think may be present in your
media. Including more than five is not recommended. If you're unsure what languages are present, do not
include this parameter.
If you include
LanguageOptionsin your request, you must also includeIdentifyLanguage.For more information, refer to Supported languages.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.
-
hasLanguageOptions
public final boolean hasLanguageOptions()For responses, this returns true if the service returned a value for the LanguageOptions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
languageOptionsAsStrings
You can specify two or more language codes that represent the languages you think may be present in your media. Including more than five is not recommended. If you're unsure what languages are present, do not include this parameter.
If you include
LanguageOptionsin your request, you must also includeIdentifyLanguage.For more information, refer to Supported languages.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLanguageOptions()method.- Returns:
- You can specify two or more language codes that represent the languages you think may be present in your
media. Including more than five is not recommended. If you're unsure what languages are present, do not
include this parameter.
If you include
LanguageOptionsin your request, you must also includeIdentifyLanguage.For more information, refer to Supported languages.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.
-
subtitles
Produces subtitle files for your input media. You can specify WebVTT (*.vtt) and SubRip (*.srt) formats.
- Returns:
- Produces subtitle files for your input media. You can specify WebVTT (*.vtt) and SubRip (*.srt) formats.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
Adds one or more custom tags, each in the form of a key:value pair, to a new transcription job at the time you start this new job.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- Adds one or more custom tags, each in the form of a key:value pair, to a new transcription job at the
time you start this new job.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
-
languageIdSettings
If using automatic language identification in your request and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName). Note that multi-language identification (IdentifyMultipleLanguages) doesn't support custom language models.LanguageIdSettingssupports two to five language codes. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The language codes that you specify must match the languages of the associated custom language models, custom vocabularies, and custom vocabulary filters.It's recommended that you include
LanguageOptionswhen usingLanguageIdSettingsto ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is inen-USbut Amazon Transcribe determines that the language spoken in your media isen-AU, your custom vocabulary is not applied to your transcription. If you includeLanguageOptionsand includeen-USas the only English language dialect, your custom vocabulary is applied to your transcription.If you want to include a custom language model with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelNamesub-parameter. If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use instead theparameter with theVocabularyNameorVocabularyFilterName(or both) sub-parameter.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLanguageIdSettings()method.- Returns:
- If using automatic language identification in your request and you want to apply a custom language model,
a custom vocabulary, or a custom vocabulary filter, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName). Note that multi-language identification (IdentifyMultipleLanguages) doesn't support custom language models.LanguageIdSettingssupports two to five language codes. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The language codes that you specify must match the languages of the associated custom language models, custom vocabularies, and custom vocabulary filters.It's recommended that you include
LanguageOptionswhen usingLanguageIdSettingsto ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is inen-USbut Amazon Transcribe determines that the language spoken in your media isen-AU, your custom vocabulary is not applied to your transcription. If you includeLanguageOptionsand includeen-USas the only English language dialect, your custom vocabulary is applied to your transcription.If you want to include a custom language model with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelNamesub-parameter. If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use instead theparameter with theVocabularyNameorVocabularyFilterName(or both) sub-parameter.
-
hasLanguageIdSettings
public final boolean hasLanguageIdSettings()For responses, this returns true if the service returned a value for the LanguageIdSettings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
languageIdSettingsAsStrings
If using automatic language identification in your request and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName). Note that multi-language identification (IdentifyMultipleLanguages) doesn't support custom language models.LanguageIdSettingssupports two to five language codes. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The language codes that you specify must match the languages of the associated custom language models, custom vocabularies, and custom vocabulary filters.It's recommended that you include
LanguageOptionswhen usingLanguageIdSettingsto ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is inen-USbut Amazon Transcribe determines that the language spoken in your media isen-AU, your custom vocabulary is not applied to your transcription. If you includeLanguageOptionsand includeen-USas the only English language dialect, your custom vocabulary is applied to your transcription.If you want to include a custom language model with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelNamesub-parameter. If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use instead theparameter with theVocabularyNameorVocabularyFilterName(or both) sub-parameter.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLanguageIdSettings()method.- Returns:
- If using automatic language identification in your request and you want to apply a custom language model,
a custom vocabulary, or a custom vocabulary filter, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName). Note that multi-language identification (IdentifyMultipleLanguages) doesn't support custom language models.LanguageIdSettingssupports two to five language codes. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The language codes that you specify must match the languages of the associated custom language models, custom vocabularies, and custom vocabulary filters.It's recommended that you include
LanguageOptionswhen usingLanguageIdSettingsto ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is inen-USbut Amazon Transcribe determines that the language spoken in your media isen-AU, your custom vocabulary is not applied to your transcription. If you includeLanguageOptionsand includeen-USas the only English language dialect, your custom vocabulary is applied to your transcription.If you want to include a custom language model with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelNamesub-parameter. If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use instead theparameter with theVocabularyNameorVocabularyFilterName(or both) sub-parameter.
-
hasToxicityDetection
public final boolean hasToxicityDetection()For responses, this returns true if the service returned a value for the ToxicityDetection property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
toxicityDetection
Enables toxic speech detection in your transcript. If you include
ToxicityDetectionin your request, you must also includeToxicityCategories.For information on the types of toxic speech Amazon Transcribe can detect, see Detecting toxic speech.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasToxicityDetection()method.- Returns:
- Enables toxic speech detection in your transcript. If you include
ToxicityDetectionin your request, you must also includeToxicityCategories.For information on the types of toxic speech Amazon Transcribe can detect, see Detecting toxic speech.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<StartTranscriptionJobRequest.Builder,StartTranscriptionJobRequest> - Specified by:
toBuilderin classTranscribeRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-