Class LanguageIdSettings
- java.lang.Object
-
- software.amazon.awssdk.services.transcribe.model.LanguageIdSettings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LanguageIdSettings.Builder,LanguageIdSettings>
@Generated("software.amazon.awssdk:codegen") public final class LanguageIdSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LanguageIdSettings.Builder,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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLanguageIdSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageIdSettings.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlanguageModelName()The name of the custom language model you want to use when processing your transcription job.List<SdkField<?>>sdkFields()static Class<? extends LanguageIdSettings.Builder>serializableBuilderClass()LanguageIdSettings.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvocabularyFilterName()The name of the custom vocabulary filter you want to use when processing your transcription job.StringvocabularyName()The name of the custom vocabulary you want to use when processing your transcription job.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
vocabularyName
public final String vocabularyName()
The name of the custom vocabulary you want to use when processing your transcription job. Custom vocabulary names are case sensitive.
The language of the specified custom vocabulary must match the language code that you specify in your transcription request. If the languages do not match, the custom vocabulary isn't applied. There are no errors or warnings associated with a language mismatch.
- Returns:
- The name of the custom vocabulary you want to use when processing your transcription job. Custom
vocabulary names are case sensitive.
The language of the specified custom vocabulary must match the language code that you specify in your transcription request. If the languages do not match, the custom vocabulary isn't applied. There are no errors or warnings associated with a language mismatch.
-
vocabularyFilterName
public final String vocabularyFilterName()
The name of the custom vocabulary filter you want to use when processing your transcription job. Custom vocabulary filter names are case sensitive.
The language of the specified custom vocabulary filter must match the language code that you specify in your transcription request. If the languages do not match, the custom vocabulary filter isn't applied. There are no errors or warnings associated with a language mismatch.
Note that if you include
VocabularyFilterNamein your request, you must also includeVocabularyFilterMethod.- Returns:
- The name of the custom vocabulary filter you want to use when processing your transcription job. Custom
vocabulary filter names are case sensitive.
The language of the specified custom vocabulary filter must match the language code that you specify in your transcription request. If the languages do not match, the custom vocabulary filter isn't applied. There are no errors or warnings associated with a language mismatch.
Note that if you include
VocabularyFilterNamein your request, you must also includeVocabularyFilterMethod.
-
languageModelName
public final String languageModelName()
The name of the custom language model you want to use when processing your transcription job. Note that custom language model names are case sensitive.
The language of the specified custom language model must match the language code that you specify in your transcription request. If the languages do not match, the custom language model isn't applied. There are no errors or warnings associated with a language mismatch.
- Returns:
- The name of the custom language model you want to use when processing your transcription job. Note that
custom language model names are case sensitive.
The language of the specified custom language model must match the language code that you specify in your transcription request. If the languages do not match, the custom language model isn't applied. There are no errors or warnings associated with a language mismatch.
-
toBuilder
public LanguageIdSettings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LanguageIdSettings.Builder,LanguageIdSettings>
-
builder
public static LanguageIdSettings.Builder builder()
-
serializableBuilderClass
public static Class<? extends LanguageIdSettings.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-