pub struct Builder { /* private fields */ }Expand description
A builder for CallAnalyticsJobSettings.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn vocabulary_name(self, input: impl Into<String>) -> Self
pub fn vocabulary_name(self, input: impl Into<String>) -> Self
The name of the custom vocabulary you want to include in your Call Analytics transcription request. Vocabulary names are case sensitive.
sourcepub fn set_vocabulary_name(self, input: Option<String>) -> Self
pub fn set_vocabulary_name(self, input: Option<String>) -> Self
The name of the custom vocabulary you want to include in your Call Analytics transcription request. Vocabulary names are case sensitive.
sourcepub fn vocabulary_filter_name(self, input: impl Into<String>) -> Self
pub fn vocabulary_filter_name(self, input: impl Into<String>) -> Self
The name of the custom vocabulary filter you want to include in your Call Analytics transcription request. Vocabulary filter names are case sensitive.
Note that if you include VocabularyFilterName in your request, you must also include VocabularyFilterMethod.
sourcepub fn set_vocabulary_filter_name(self, input: Option<String>) -> Self
pub fn set_vocabulary_filter_name(self, input: Option<String>) -> Self
The name of the custom vocabulary filter you want to include in your Call Analytics transcription request. Vocabulary filter names are case sensitive.
Note that if you include VocabularyFilterName in your request, you must also include VocabularyFilterMethod.
sourcepub fn vocabulary_filter_method(self, input: VocabularyFilterMethod) -> Self
pub fn vocabulary_filter_method(self, input: VocabularyFilterMethod) -> Self
Specify how you want your 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.
sourcepub fn set_vocabulary_filter_method(
self,
input: Option<VocabularyFilterMethod>
) -> Self
pub fn set_vocabulary_filter_method(
self,
input: Option<VocabularyFilterMethod>
) -> Self
Specify how you want your 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.
sourcepub fn language_model_name(self, input: impl Into<String>) -> Self
pub fn language_model_name(self, input: impl Into<String>) -> Self
The name of the custom language model you want to use when processing your Call Analytics job. Note that language model names are case sensitive.
The language of the specified language model must match the language code you specify in your transcription request. If the languages don't match, the language model isn't applied. There are no errors or warnings associated with a language mismatch.
sourcepub fn set_language_model_name(self, input: Option<String>) -> Self
pub fn set_language_model_name(self, input: Option<String>) -> Self
The name of the custom language model you want to use when processing your Call Analytics job. Note that language model names are case sensitive.
The language of the specified language model must match the language code you specify in your transcription request. If the languages don't match, the language model isn't applied. There are no errors or warnings associated with a language mismatch.
sourcepub fn content_redaction(self, input: ContentRedaction) -> Self
pub fn content_redaction(self, input: ContentRedaction) -> Self
Allows you to redact or flag specified personally identifiable information (PII) in your transcript. If you use ContentRedaction, you must also include the sub-parameters: PiiEntityTypes, RedactionOutput, and RedactionType.
sourcepub fn set_content_redaction(self, input: Option<ContentRedaction>) -> Self
pub fn set_content_redaction(self, input: Option<ContentRedaction>) -> Self
Allows you to redact or flag specified personally identifiable information (PII) in your transcript. If you use ContentRedaction, you must also include the sub-parameters: PiiEntityTypes, RedactionOutput, and RedactionType.
sourcepub fn language_options(self, input: LanguageCode) -> Self
pub fn language_options(self, input: LanguageCode) -> Self
Appends an item to language_options.
To override the contents of this collection use set_language_options.
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.
sourcepub fn set_language_options(self, input: Option<Vec<LanguageCode>>) -> Self
pub fn set_language_options(self, input: Option<Vec<LanguageCode>>) -> Self
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.
sourcepub fn language_id_settings(self, k: LanguageCode, v: LanguageIdSettings) -> Self
pub fn language_id_settings(self, k: LanguageCode, v: LanguageIdSettings) -> Self
Adds a key-value pair to language_id_settings.
To override the contents of this collection use set_language_id_settings.
If using automatic language identification (IdentifyLanguage) 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).
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. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The languages you specify must match the languages of the specified custom language models, custom vocabularies, and custom vocabulary filters.
To include language options using IdentifyLanguage without including a custom language model, a custom vocabulary, or a custom vocabulary filter, use LanguageOptions instead of LanguageIdSettings. Including language options can improve the accuracy of automatic language identification.
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 the LanguageModelName sub-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 the parameter with the VocabularyName or VocabularyFilterName (or both) sub-parameter.
sourcepub fn set_language_id_settings(
self,
input: Option<HashMap<LanguageCode, LanguageIdSettings>>
) -> Self
pub fn set_language_id_settings(
self,
input: Option<HashMap<LanguageCode, LanguageIdSettings>>
) -> Self
If using automatic language identification (IdentifyLanguage) 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).
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. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The languages you specify must match the languages of the specified custom language models, custom vocabularies, and custom vocabulary filters.
To include language options using IdentifyLanguage without including a custom language model, a custom vocabulary, or a custom vocabulary filter, use LanguageOptions instead of LanguageIdSettings. Including language options can improve the accuracy of automatic language identification.
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 the LanguageModelName sub-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 the parameter with the VocabularyName or VocabularyFilterName (or both) sub-parameter.
sourcepub fn build(self) -> CallAnalyticsJobSettings
pub fn build(self) -> CallAnalyticsJobSettings
Consumes the builder and constructs a CallAnalyticsJobSettings.