Class CallAnalyticsJobSettings
- java.lang.Object
-
- software.amazon.awssdk.services.transcribe.model.CallAnalyticsJobSettings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CallAnalyticsJobSettings.Builder,CallAnalyticsJobSettings>
@Generated("software.amazon.awssdk:codegen") public final class CallAnalyticsJobSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CallAnalyticsJobSettings.Builder,CallAnalyticsJobSettings>
Provides additional optional settings for your request, including content redaction, automatic language identification; allows you to apply custom language models, custom vocabulary filters, and custom vocabularies.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCallAnalyticsJobSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallAnalyticsJobSettings.Builderbuilder()ContentRedactioncontentRedaction()Returns the value of the ContentRedaction property for this object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasLanguageIdSettings()For responses, this returns true if the service returned a value for the LanguageIdSettings property.booleanhasLanguageOptions()For responses, this returns true if the service returned a value for the LanguageOptions property.Map<LanguageCode,LanguageIdSettings>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).Map<String,LanguageIdSettings>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, includeLanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName).StringlanguageModelName()The name of the custom language model you want to use when processing your Call Analytics job.List<LanguageCode>languageOptions()You can specify two or more language codes that represent the languages you think may be present in your media.List<String>languageOptionsAsStrings()You can specify two or more language codes that represent the languages you think may be present in your media.List<SdkField<?>>sdkFields()static Class<? extends CallAnalyticsJobSettings.Builder>serializableBuilderClass()Summarizationsummarization()ContainsGenerateAbstractiveSummary, which is a required parameter if you want to enable Generative call summarization in your Call Analytics request.CallAnalyticsJobSettings.BuildertoBuilder()StringtoString()Returns a string representation of this object.VocabularyFilterMethodvocabularyFilterMethod()Specify how you want your custom vocabulary filter applied to your transcript.StringvocabularyFilterMethodAsString()Specify how you want your custom vocabulary filter applied to your transcript.StringvocabularyFilterName()The name of the custom vocabulary filter you want to include in your Call Analytics transcription request.StringvocabularyName()The name of the custom vocabulary you want to include in your Call Analytics transcription request.-
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 include in your Call Analytics transcription request. Custom vocabulary names are case sensitive.
- Returns:
- The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom vocabulary names are case sensitive.
-
vocabularyFilterName
public final String vocabularyFilterName()
The name of the custom vocabulary filter you want to include in your Call Analytics transcription request. Custom vocabulary filter names are case sensitive.
Note that if you include
VocabularyFilterNamein your request, you must also includeVocabularyFilterMethod.- Returns:
- The name of the custom vocabulary filter you want to include in your Call Analytics transcription
request. Custom vocabulary filter names are case sensitive.
Note that if you include
VocabularyFilterNamein your request, you must also includeVocabularyFilterMethod.
-
vocabularyFilterMethod
public final VocabularyFilterMethod vocabularyFilterMethod()
Specify how you want your custom vocabulary filter applied to your transcript.
To replace words with
***, choosemask.To delete words, choose
remove.To flag words without changing them, choose
tag.If the service returns an enum value that is not available in the current SDK version,
vocabularyFilterMethodwill returnVocabularyFilterMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvocabularyFilterMethodAsString().- Returns:
- Specify how you want your custom vocabulary filter applied to your transcript.
To replace words with
***, choosemask.To delete words, choose
remove.To flag words without changing them, choose
tag. - See Also:
VocabularyFilterMethod
-
vocabularyFilterMethodAsString
public final String vocabularyFilterMethodAsString()
Specify how you want your custom vocabulary filter applied to your transcript.
To replace words with
***, choosemask.To delete words, choose
remove.To flag words without changing them, choose
tag.If the service returns an enum value that is not available in the current SDK version,
vocabularyFilterMethodwill returnVocabularyFilterMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvocabularyFilterMethodAsString().- Returns:
- Specify how you want your custom vocabulary filter applied to your transcript.
To replace words with
***, choosemask.To delete words, choose
remove.To flag words without changing them, choose
tag. - See Also:
VocabularyFilterMethod
-
languageModelName
public final String languageModelName()
The name of the custom language model you want to use when processing your Call Analytics 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 Call Analytics 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.
-
contentRedaction
public final ContentRedaction contentRedaction()
Returns the value of the ContentRedaction property for this object.- Returns:
- The value of the ContentRedaction property for this object.
-
languageOptions
public final List<LanguageCode> 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.
Including language options can improve the accuracy of language identification.
For a list of languages supported with Call Analytics, 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.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.
Including language options can improve the accuracy of language identification.
For a list of languages supported with Call Analytics, 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.
-
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
public final List<String> 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.
Including language options can improve the accuracy of language identification.
For a list of languages supported with Call Analytics, 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.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.
Including language options can improve the accuracy of language identification.
For a list of languages supported with Call Analytics, 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.
-
languageIdSettings
public final Map<LanguageCode,LanguageIdSettings> 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).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, custom vocabulary, or custom vocabulary filter with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelName,VocabularyName, orVocabularyFilterNamesub-parameters.For a list of languages supported with Call Analytics, refer to Supported languages and language-specific features.
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).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, custom vocabulary, or custom vocabulary filter with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelName,VocabularyName, orVocabularyFilterNamesub-parameters.For a list of languages supported with Call Analytics, refer to Supported languages and language-specific features.
-
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
public final Map<String,LanguageIdSettings> 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).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, custom vocabulary, or custom vocabulary filter with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelName,VocabularyName, orVocabularyFilterNamesub-parameters.For a list of languages supported with Call Analytics, refer to Supported languages and language-specific features.
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).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, custom vocabulary, or custom vocabulary filter with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelName,VocabularyName, orVocabularyFilterNamesub-parameters.For a list of languages supported with Call Analytics, refer to Supported languages and language-specific features.
-
summarization
public final Summarization summarization()
Contains
GenerateAbstractiveSummary, which is a required parameter if you want to enable Generative call summarization in your Call Analytics request.- Returns:
- Contains
GenerateAbstractiveSummary, which is a required parameter if you want to enable Generative call summarization in your Call Analytics request.
-
toBuilder
public CallAnalyticsJobSettings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CallAnalyticsJobSettings.Builder,CallAnalyticsJobSettings>
-
builder
public static CallAnalyticsJobSettings.Builder builder()
-
serializableBuilderClass
public static Class<? extends CallAnalyticsJobSettings.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.
-
-