#[non_exhaustive]pub struct AmazonTranscribeCallAnalyticsProcessorConfiguration {Show 13 fields
pub language_code: CallAnalyticsLanguageCode,
pub vocabulary_name: Option<String>,
pub vocabulary_filter_name: Option<String>,
pub vocabulary_filter_method: Option<VocabularyFilterMethod>,
pub language_model_name: Option<String>,
pub enable_partial_results_stabilization: bool,
pub partial_results_stability: Option<PartialResultsStability>,
pub content_identification_type: Option<ContentType>,
pub content_redaction_type: Option<ContentType>,
pub pii_entity_types: Option<String>,
pub filter_partial_results: bool,
pub post_call_analytics_settings: Option<PostCallAnalyticsSettings>,
pub call_analytics_stream_categories: Option<Vec<String>>,
}
Expand description
A structure that contains the configuration settings for an Amazon Transcribe call analytics processor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.language_code: CallAnalyticsLanguageCode
The language code in the configuration.
vocabulary_name: Option<String>
Specifies the name of the custom vocabulary to use when processing a transcription. Note that vocabulary names are case sensitive.
If the language of the specified custom vocabulary doesn't match the language identified in your media, the custom vocabulary is not applied to your transcription.
For more information, see Custom vocabularies in the Amazon Transcribe Developer Guide.
Length Constraints: Minimum length of 1. Maximum length of 200.
vocabulary_filter_name: Option<String>
Specifies the name of the custom vocabulary filter to use when processing a transcription. Note that vocabulary filter names are case sensitive.
If the language of the specified custom vocabulary filter doesn't match the language identified in your media, the vocabulary filter is not applied to your transcription.
For more information, see Using vocabulary filtering with unwanted words in the Amazon Transcribe Developer Guide.
Length Constraints: Minimum length of 1. Maximum length of 200.
vocabulary_filter_method: Option<VocabularyFilterMethod>
Specifies how to apply a vocabulary filter to a transcript.
To replace words with ***, choose mask
.
To delete words, choose remove
.
To flag words without changing them, choose tag
.
language_model_name: Option<String>
Specifies the name of the custom language model to use when processing a transcription. Note that language model names are case sensitive.
The language of the specified language model must match the language code specified in the transcription request. If the languages don't match, the custom language model isn't applied. Language mismatches don't generate errors or warnings.
For more information, see Custom language models in the Amazon Transcribe Developer Guide.
enable_partial_results_stabilization: bool
Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy. For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
partial_results_stability: Option<PartialResultsStability>
Specifies the level of stability to use when you enable partial results stabilization (EnablePartialResultsStabilization
).
Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.
For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
content_identification_type: Option<ContentType>
Labels all personally identifiable information (PII) identified in your transcript.
Content identification is performed at the segment level; PII specified in PiiEntityTypes
is flagged upon complete transcription of an audio segment.
You can’t set ContentIdentificationType
and ContentRedactionType
in the same request. If you do, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
content_redaction_type: Option<ContentType>
Redacts all personally identifiable information (PII) identified in your transcript.
Content redaction is performed at the segment level; PII specified in PiiEntityTypes
is redacted upon complete transcription of an audio segment.
You can’t set ContentRedactionType
and ContentIdentificationType
in the same request. If you do, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
pii_entity_types: Option<String>
Specifies the types of personally identifiable information (PII) to redact from a transcript. You can include as many types as you'd like, or you can select ALL
.
To include PiiEntityTypes
in your Call Analytics request, you must also include ContentIdentificationType
or ContentRedactionType
, but you can't include both.
Values must be comma-separated and can include: ADDRESS
, BANK_ACCOUNT_NUMBER
, BANK_ROUTING
, CREDIT_DEBIT_CVV
, CREDIT_DEBIT_EXPIRY
, CREDIT_DEBIT_NUMBER
, EMAIL
, NAME
, PHONE
, PIN
, SSN
, or ALL
.
Length Constraints: Minimum length of 1. Maximum length of 300.
filter_partial_results: bool
If true, UtteranceEvents
with IsPartial: true
are filtered out of the insights target.
post_call_analytics_settings: Option<PostCallAnalyticsSettings>
The settings for a post-call analysis task in an analytics configuration.
call_analytics_stream_categories: Option<Vec<String>>
By default, all CategoryEvents
are sent to the insights target. If this parameter is specified, only included categories are sent to the insights target.
Implementations§
Source§impl AmazonTranscribeCallAnalyticsProcessorConfiguration
impl AmazonTranscribeCallAnalyticsProcessorConfiguration
Sourcepub fn language_code(&self) -> &CallAnalyticsLanguageCode
pub fn language_code(&self) -> &CallAnalyticsLanguageCode
The language code in the configuration.
Sourcepub fn vocabulary_name(&self) -> Option<&str>
pub fn vocabulary_name(&self) -> Option<&str>
Specifies the name of the custom vocabulary to use when processing a transcription. Note that vocabulary names are case sensitive.
If the language of the specified custom vocabulary doesn't match the language identified in your media, the custom vocabulary is not applied to your transcription.
For more information, see Custom vocabularies in the Amazon Transcribe Developer Guide.
Length Constraints: Minimum length of 1. Maximum length of 200.
Sourcepub fn vocabulary_filter_name(&self) -> Option<&str>
pub fn vocabulary_filter_name(&self) -> Option<&str>
Specifies the name of the custom vocabulary filter to use when processing a transcription. Note that vocabulary filter names are case sensitive.
If the language of the specified custom vocabulary filter doesn't match the language identified in your media, the vocabulary filter is not applied to your transcription.
For more information, see Using vocabulary filtering with unwanted words in the Amazon Transcribe Developer Guide.
Length Constraints: Minimum length of 1. Maximum length of 200.
Sourcepub fn vocabulary_filter_method(&self) -> Option<&VocabularyFilterMethod>
pub fn vocabulary_filter_method(&self) -> Option<&VocabularyFilterMethod>
Specifies how to apply a vocabulary filter to a 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) -> Option<&str>
pub fn language_model_name(&self) -> Option<&str>
Specifies the name of the custom language model to use when processing a transcription. Note that language model names are case sensitive.
The language of the specified language model must match the language code specified in the transcription request. If the languages don't match, the custom language model isn't applied. Language mismatches don't generate errors or warnings.
For more information, see Custom language models in the Amazon Transcribe Developer Guide.
Sourcepub fn enable_partial_results_stabilization(&self) -> bool
pub fn enable_partial_results_stabilization(&self) -> bool
Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy. For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
Sourcepub fn partial_results_stability(&self) -> Option<&PartialResultsStability>
pub fn partial_results_stability(&self) -> Option<&PartialResultsStability>
Specifies the level of stability to use when you enable partial results stabilization (EnablePartialResultsStabilization
).
Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.
For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
Sourcepub fn content_identification_type(&self) -> Option<&ContentType>
pub fn content_identification_type(&self) -> Option<&ContentType>
Labels all personally identifiable information (PII) identified in your transcript.
Content identification is performed at the segment level; PII specified in PiiEntityTypes
is flagged upon complete transcription of an audio segment.
You can’t set ContentIdentificationType
and ContentRedactionType
in the same request. If you do, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
Sourcepub fn content_redaction_type(&self) -> Option<&ContentType>
pub fn content_redaction_type(&self) -> Option<&ContentType>
Redacts all personally identifiable information (PII) identified in your transcript.
Content redaction is performed at the segment level; PII specified in PiiEntityTypes
is redacted upon complete transcription of an audio segment.
You can’t set ContentRedactionType
and ContentIdentificationType
in the same request. If you do, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
Sourcepub fn pii_entity_types(&self) -> Option<&str>
pub fn pii_entity_types(&self) -> Option<&str>
Specifies the types of personally identifiable information (PII) to redact from a transcript. You can include as many types as you'd like, or you can select ALL
.
To include PiiEntityTypes
in your Call Analytics request, you must also include ContentIdentificationType
or ContentRedactionType
, but you can't include both.
Values must be comma-separated and can include: ADDRESS
, BANK_ACCOUNT_NUMBER
, BANK_ROUTING
, CREDIT_DEBIT_CVV
, CREDIT_DEBIT_EXPIRY
, CREDIT_DEBIT_NUMBER
, EMAIL
, NAME
, PHONE
, PIN
, SSN
, or ALL
.
Length Constraints: Minimum length of 1. Maximum length of 300.
Sourcepub fn filter_partial_results(&self) -> bool
pub fn filter_partial_results(&self) -> bool
If true, UtteranceEvents
with IsPartial: true
are filtered out of the insights target.
Sourcepub fn post_call_analytics_settings(&self) -> Option<&PostCallAnalyticsSettings>
pub fn post_call_analytics_settings(&self) -> Option<&PostCallAnalyticsSettings>
The settings for a post-call analysis task in an analytics configuration.
Sourcepub fn call_analytics_stream_categories(&self) -> &[String]
pub fn call_analytics_stream_categories(&self) -> &[String]
By default, all CategoryEvents
are sent to the insights target. If this parameter is specified, only included categories are sent to the insights target.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .call_analytics_stream_categories.is_none()
.
Source§impl AmazonTranscribeCallAnalyticsProcessorConfiguration
impl AmazonTranscribeCallAnalyticsProcessorConfiguration
Sourcepub fn builder() -> AmazonTranscribeCallAnalyticsProcessorConfigurationBuilder
pub fn builder() -> AmazonTranscribeCallAnalyticsProcessorConfigurationBuilder
Creates a new builder-style object to manufacture AmazonTranscribeCallAnalyticsProcessorConfiguration
.
Trait Implementations§
Source§impl Clone for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl Clone for AmazonTranscribeCallAnalyticsProcessorConfiguration
Source§fn clone(&self) -> AmazonTranscribeCallAnalyticsProcessorConfiguration
fn clone(&self) -> AmazonTranscribeCallAnalyticsProcessorConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl PartialEq for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl PartialEq for AmazonTranscribeCallAnalyticsProcessorConfiguration
Source§fn eq(
&self,
other: &AmazonTranscribeCallAnalyticsProcessorConfiguration,
) -> bool
fn eq( &self, other: &AmazonTranscribeCallAnalyticsProcessorConfiguration, ) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AmazonTranscribeCallAnalyticsProcessorConfiguration
Auto Trait Implementations§
impl Freeze for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl RefUnwindSafe for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl Send for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl Sync for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl Unpin for AmazonTranscribeCallAnalyticsProcessorConfiguration
impl UnwindSafe for AmazonTranscribeCallAnalyticsProcessorConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);