/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.transcribe.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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 AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CallAnalyticsJobSettings implements Serializable, Cloneable, StructuredPojo { /** ** The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom * vocabulary names are case sensitive. *
*/ private String vocabularyName; /** ** 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 VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
*
* Specify how you want your custom vocabulary filter applied to your transcript. *
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
*
* 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 don't match, the custom language model isn't applied. There are no errors * or warnings associated with a language mismatch. *
*/ private String languageModelName; private ContentRedaction contentRedaction; /** ** 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.
*
* 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 LanguageIdSettings
with the relevant
* sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
*
* LanguageIdSettings
supports 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 LanguageOptions
when using LanguageIdSettings
to
* ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is
* in en-US
but Amazon Transcribe determines that the language spoken in your media is
* en-AU
, your custom vocabulary is not applied to your transcription. If you include
* LanguageOptions
and include en-US
as 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 the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
*
* For a list of languages supported with Call Analytics, refer to Supported languages and * language-specific features. *
*/ private java.util.Map* The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom * vocabulary names are case sensitive. *
* * @param vocabularyName * The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom * vocabulary names are case sensitive. */ public void setVocabularyName(String vocabularyName) { this.vocabularyName = vocabularyName; } /** ** The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom * vocabulary names are case sensitive. *
* * @return The name of the custom vocabulary you want to include in your Call Analytics transcription request. * Custom vocabulary names are case sensitive. */ public String getVocabularyName() { return this.vocabularyName; } /** ** The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom * vocabulary names are case sensitive. *
* * @param vocabularyName * The name of the custom vocabulary you want to include in your Call Analytics transcription request. Custom * vocabulary names are case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public CallAnalyticsJobSettings withVocabularyName(String vocabularyName) { setVocabularyName(vocabularyName); return this; } /** ** 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 VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
*
* Note that if you include VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
*/
public void setVocabularyFilterName(String vocabularyFilterName) {
this.vocabularyFilterName = 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 VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
*
* Note that if you include VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
*/
public String getVocabularyFilterName() {
return this.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 VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
*
* Note that if you include VocabularyFilterName
in your request, you must also include
* VocabularyFilterMethod
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CallAnalyticsJobSettings withVocabularyFilterName(String vocabularyFilterName) {
setVocabularyFilterName(vocabularyFilterName);
return this;
}
/**
*
* Specify how you want your custom vocabulary filter applied to your transcript. *
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
* @see VocabularyFilterMethod
*/
public void setVocabularyFilterMethod(String vocabularyFilterMethod) {
this.vocabularyFilterMethod = vocabularyFilterMethod;
}
/**
*
* Specify how you want your custom vocabulary filter applied to your transcript. *
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
* @see VocabularyFilterMethod
*/
public String getVocabularyFilterMethod() {
return this.vocabularyFilterMethod;
}
/**
*
* Specify how you want your custom vocabulary filter applied to your transcript. *
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VocabularyFilterMethod
*/
public CallAnalyticsJobSettings withVocabularyFilterMethod(String vocabularyFilterMethod) {
setVocabularyFilterMethod(vocabularyFilterMethod);
return this;
}
/**
*
* Specify how you want your custom vocabulary filter applied to your transcript. *
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
*
* To replace words with ***
, choose mask
.
*
* To delete words, choose remove
.
*
* To flag words without changing them, choose tag
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VocabularyFilterMethod
*/
public CallAnalyticsJobSettings withVocabularyFilterMethod(VocabularyFilterMethod vocabularyFilterMethod) {
this.vocabularyFilterMethod = vocabularyFilterMethod.toString();
return this;
}
/**
*
* 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 don't match, the custom language model isn't applied. There are no errors * or warnings associated with a language mismatch. *
* * @param 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 don't match, the custom language model isn't applied. There are no * errors or warnings associated with a language mismatch. */ public void setLanguageModelName(String languageModelName) { this.languageModelName = 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 don't match, the custom language model isn't applied. There are no errors * or warnings associated with a language mismatch. *
* * @return 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 don't match, the custom language model isn't applied. There are * no errors or warnings associated with a language mismatch. */ public String getLanguageModelName() { return this.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 don't match, the custom language model isn't applied. There are no errors * or warnings associated with a language mismatch. *
* * @param 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 don't match, the custom language model isn't applied. There are no * errors or warnings associated with a language mismatch. * @return Returns a reference to this object so that method calls can be chained together. */ public CallAnalyticsJobSettings withLanguageModelName(String languageModelName) { setLanguageModelName(languageModelName); return this; } /** * @param contentRedaction */ public void setContentRedaction(ContentRedaction contentRedaction) { this.contentRedaction = contentRedaction; } /** * @return */ public ContentRedaction getContentRedaction() { return this.contentRedaction; } /** * @param contentRedaction * @return Returns a reference to this object so that method calls can be chained together. */ public CallAnalyticsJobSettings withContentRedaction(ContentRedaction contentRedaction) { setContentRedaction(contentRedaction); return this; } /** *
* 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.
*
* 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 (
* 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.
* @see LanguageCode
*/
public java.util.Listar-SA
), your media file must be encoded at a sample
* rate of 16,000 Hz or higher.
*
* 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 (
* 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 (
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setLanguageOptions(java.util.Collection)} or {@link #withLanguageOptions(java.util.Collection)} if you
* want to override the existing values.
* ar-SA
), your media file must be encoded at a
* sample rate of 16,000 Hz or higher.
* @see LanguageCode
*/
public void setLanguageOptions(java.util.Collectionar-SA
), your media file must be encoded at a sample
* rate of 16,000 Hz or higher.
*
* 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 (
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LanguageCode
*/
public CallAnalyticsJobSettings withLanguageOptions(String... languageOptions) {
if (this.languageOptions == null) {
setLanguageOptions(new java.util.ArrayListar-SA
), your media file must be encoded at a sample
* rate of 16,000 Hz or higher.
*
* 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 (
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LanguageCode
*/
public CallAnalyticsJobSettings withLanguageOptions(java.util.Collectionar-SA
), your media file must be encoded at a sample
* rate of 16,000 Hz or higher.
*
* 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 (
* 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
*
* It's recommended that you include
* 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
*
* For a list of languages supported with Call Analytics, refer to Supported languages and
* language-specific features.
* ar-SA
), your media file must be encoded at a
* sample rate of 16,000 Hz or higher.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LanguageCode
*/
public CallAnalyticsJobSettings withLanguageOptions(LanguageCode... languageOptions) {
java.util.ArrayListLanguageIdSettings
with the relevant
* sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
* LanguageIdSettings
supports 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.
* LanguageOptions
when using LanguageIdSettings
to
* ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is
* in en-US
but Amazon Transcribe determines that the language spoken in your media is
* en-AU
, your custom vocabulary is not applied to your transcription. If you include
* LanguageOptions
and include en-US
as the only English language dialect, your custom
* vocabulary is applied to your transcription.
* parameter with the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
* LanguageIdSettings
with the
* relevant sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
* LanguageIdSettings
supports 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 LanguageOptions
when using LanguageIdSettings
* to ensure that the correct language dialect is identified. For example, if you specify a custom
* vocabulary that is in en-US
but Amazon Transcribe determines that the language spoken in
* your media is en-AU
, your custom vocabulary is not applied to your transcription. If
* you include LanguageOptions
and include en-US
as 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 the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
*
* For a list of languages supported with Call Analytics, refer to Supported languages and
* language-specific features.
*/
public java.util.Map
* 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
*
* It's recommended that you include
* 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
*
* For a list of languages supported with Call Analytics, refer to Supported languages and
* language-specific features.
* LanguageIdSettings
with the relevant
* sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
* LanguageIdSettings
supports 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.
* LanguageOptions
when using LanguageIdSettings
to
* ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is
* in en-US
but Amazon Transcribe determines that the language spoken in your media is
* en-AU
, your custom vocabulary is not applied to your transcription. If you include
* LanguageOptions
and include en-US
as the only English language dialect, your custom
* vocabulary is applied to your transcription.
* parameter with the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
* LanguageIdSettings
with the
* relevant sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
* LanguageIdSettings
supports 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 LanguageOptions
when using LanguageIdSettings
* to ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary
* that is in en-US
but Amazon Transcribe determines that the language spoken in your media is
* en-AU
, your custom vocabulary is not applied to your transcription. If you include
* LanguageOptions
and include en-US
as 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 the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
*
* For a list of languages supported with Call Analytics, refer to Supported languages and
* language-specific features.
*/
public void setLanguageIdSettings(java.util.Map
* 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
*
* It's recommended that you include
* 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
*
* For a list of languages supported with Call Analytics, refer to Supported languages and
* language-specific features.
* LanguageIdSettings
with the relevant
* sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
* LanguageIdSettings
supports 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.
* LanguageOptions
when using LanguageIdSettings
to
* ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary that is
* in en-US
but Amazon Transcribe determines that the language spoken in your media is
* en-AU
, your custom vocabulary is not applied to your transcription. If you include
* LanguageOptions
and include en-US
as the only English language dialect, your custom
* vocabulary is applied to your transcription.
* parameter with the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
* LanguageIdSettings
with the
* relevant sub-parameters (VocabularyName
, LanguageModelName
, and
* VocabularyFilterName
).
* LanguageIdSettings
supports 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 LanguageOptions
when using LanguageIdSettings
* to ensure that the correct language dialect is identified. For example, if you specify a custom vocabulary
* that is in en-US
but Amazon Transcribe determines that the language spoken in your media is
* en-AU
, your custom vocabulary is not applied to your transcription. If you include
* LanguageOptions
and include en-US
as 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 the
LanguageModelName
, VocabularyName
, or
* VocabularyFilterName
sub-parameters.
*
* For a list of languages supported with Call Analytics, refer to Supported languages and
* language-specific features.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CallAnalyticsJobSettings withLanguageIdSettings(java.util.Map