#[non_exhaustive]pub struct AmazonTranscribeProcessorConfiguration {Show 18 fields
pub language_code: Option<CallAnalyticsLanguageCode>,
pub vocabulary_name: Option<String>,
pub vocabulary_filter_name: Option<String>,
pub vocabulary_filter_method: Option<VocabularyFilterMethod>,
pub show_speaker_label: bool,
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 language_model_name: Option<String>,
pub filter_partial_results: bool,
pub identify_language: bool,
pub identify_multiple_languages: bool,
pub language_options: Option<String>,
pub preferred_language: Option<CallAnalyticsLanguageCode>,
pub vocabulary_names: Option<String>,
pub vocabulary_filter_names: Option<String>,
}
Expand description
A structure that contains the configuration settings for an Amazon Transcribe processor.
Calls to this API must include a LanguageCode
, IdentifyLanguage
, or IdentifyMultipleLanguages
parameter. If you include more than one of those parameters, your transcription job fails.
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: Option<CallAnalyticsLanguageCode>
The language code that represents the language spoken in your audio.
If you're unsure of the language spoken in your audio, consider using IdentifyLanguage
to enable automatic language identification.
For a list of languages that real-time Call Analytics supports, see the Supported languages table in the Amazon Transcribe Developer Guide.
vocabulary_name: Option<String>
The name of the custom vocabulary that you specified in your Call Analytics request.
Length Constraints: Minimum length of 1. Maximum length of 200.
vocabulary_filter_name: Option<String>
The name of the custom vocabulary filter that you specified in your Call Analytics request.
Length Constraints: Minimum length of 1. Maximum length of 200.
vocabulary_filter_method: Option<VocabularyFilterMethod>
The vocabulary filtering method used in your Call Analytics transcription.
show_speaker_label: bool
Enables speaker partitioning (diarization) in your transcription output. Speaker partitioning labels the speech from individual speakers in your media file.
For more information, see Partitioning speakers (diarization) 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>
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 set both, 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 set both, 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>
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
.
If you leave this parameter empty, the default behavior is equivalent to ALL
.
language_model_name: Option<String>
The name of the custom language model that you want to use when processing your transcription. 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 custom language model isn't applied. There are no errors or warnings associated with a language mismatch.
For more information, see Custom language models in the Amazon Transcribe Developer Guide.
filter_partial_results: bool
If true, TranscriptEvents
with IsPartial: true
are filtered out of the insights target.
identify_language: bool
Turns language identification on or off.
identify_multiple_languages: bool
Turns language identification on or off for multiple languages.
Calls to this API must include a LanguageCode
, IdentifyLanguage
, or IdentifyMultipleLanguages
parameter. If you include more than one of those parameters, your transcription job fails.
language_options: Option<String>
The language options for the transcription, such as automatic language detection.
preferred_language: Option<CallAnalyticsLanguageCode>
The preferred language for the transcription.
vocabulary_names: Option<String>
The names of the custom vocabulary or vocabularies used during transcription.
vocabulary_filter_names: Option<String>
The names of the custom vocabulary filter or filters using during transcription.
Implementations§
Source§impl AmazonTranscribeProcessorConfiguration
impl AmazonTranscribeProcessorConfiguration
Sourcepub fn language_code(&self) -> Option<&CallAnalyticsLanguageCode>
pub fn language_code(&self) -> Option<&CallAnalyticsLanguageCode>
The language code that represents the language spoken in your audio.
If you're unsure of the language spoken in your audio, consider using IdentifyLanguage
to enable automatic language identification.
For a list of languages that real-time Call Analytics supports, see the Supported languages table in the Amazon Transcribe Developer Guide.
Sourcepub fn vocabulary_name(&self) -> Option<&str>
pub fn vocabulary_name(&self) -> Option<&str>
The name of the custom vocabulary that you specified in your Call Analytics request.
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>
The name of the custom vocabulary filter that you specified in your Call Analytics request.
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>
The vocabulary filtering method used in your Call Analytics transcription.
Sourcepub fn show_speaker_label(&self) -> bool
pub fn show_speaker_label(&self) -> bool
Enables speaker partitioning (diarization) in your transcription output. Speaker partitioning labels the speech from individual speakers in your media file.
For more information, see Partitioning speakers (diarization) 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>
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 set both, 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 set both, 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>
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
.
If you leave this parameter empty, the default behavior is equivalent to ALL
.
Sourcepub fn language_model_name(&self) -> Option<&str>
pub fn language_model_name(&self) -> Option<&str>
The name of the custom language model that you want to use when processing your transcription. 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 custom language model isn't applied. There are no errors or warnings associated with a language mismatch.
For more information, see Custom language models in the Amazon Transcribe Developer Guide.
Sourcepub fn filter_partial_results(&self) -> bool
pub fn filter_partial_results(&self) -> bool
If true, TranscriptEvents
with IsPartial: true
are filtered out of the insights target.
Sourcepub fn identify_language(&self) -> bool
pub fn identify_language(&self) -> bool
Turns language identification on or off.
Sourcepub fn identify_multiple_languages(&self) -> bool
pub fn identify_multiple_languages(&self) -> bool
Turns language identification on or off for multiple languages.
Calls to this API must include a LanguageCode
, IdentifyLanguage
, or IdentifyMultipleLanguages
parameter. If you include more than one of those parameters, your transcription job fails.
Sourcepub fn language_options(&self) -> Option<&str>
pub fn language_options(&self) -> Option<&str>
The language options for the transcription, such as automatic language detection.
Sourcepub fn preferred_language(&self) -> Option<&CallAnalyticsLanguageCode>
pub fn preferred_language(&self) -> Option<&CallAnalyticsLanguageCode>
The preferred language for the transcription.
Sourcepub fn vocabulary_names(&self) -> Option<&str>
pub fn vocabulary_names(&self) -> Option<&str>
The names of the custom vocabulary or vocabularies used during transcription.
Sourcepub fn vocabulary_filter_names(&self) -> Option<&str>
pub fn vocabulary_filter_names(&self) -> Option<&str>
The names of the custom vocabulary filter or filters using during transcription.
Source§impl AmazonTranscribeProcessorConfiguration
impl AmazonTranscribeProcessorConfiguration
Sourcepub fn builder() -> AmazonTranscribeProcessorConfigurationBuilder
pub fn builder() -> AmazonTranscribeProcessorConfigurationBuilder
Creates a new builder-style object to manufacture AmazonTranscribeProcessorConfiguration
.
Trait Implementations§
Source§impl Clone for AmazonTranscribeProcessorConfiguration
impl Clone for AmazonTranscribeProcessorConfiguration
Source§fn clone(&self) -> AmazonTranscribeProcessorConfiguration
fn clone(&self) -> AmazonTranscribeProcessorConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl PartialEq for AmazonTranscribeProcessorConfiguration
impl PartialEq for AmazonTranscribeProcessorConfiguration
Source§fn eq(&self, other: &AmazonTranscribeProcessorConfiguration) -> bool
fn eq(&self, other: &AmazonTranscribeProcessorConfiguration) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AmazonTranscribeProcessorConfiguration
Auto Trait Implementations§
impl Freeze for AmazonTranscribeProcessorConfiguration
impl RefUnwindSafe for AmazonTranscribeProcessorConfiguration
impl Send for AmazonTranscribeProcessorConfiguration
impl Sync for AmazonTranscribeProcessorConfiguration
impl Unpin for AmazonTranscribeProcessorConfiguration
impl UnwindSafe for AmazonTranscribeProcessorConfiguration
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);