#[non_exhaustive]pub struct TranscriptNormalization {
pub entries: Vec<Entry>,
/* private fields */
}Expand description
Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entries: Vec<Entry>A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [“cat” => “dog”, “mountain cat” => “mountain dog”] will never be applied because we will always process the first entry before it. At most 100 entries.
Implementations§
Source§impl TranscriptNormalization
impl TranscriptNormalization
pub fn new() -> Self
Sourcepub fn set_entries<T, V>(self, v: T) -> Self
pub fn set_entries<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TranscriptNormalization
impl Clone for TranscriptNormalization
Source§fn clone(&self) -> TranscriptNormalization
fn clone(&self) -> TranscriptNormalization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscriptNormalization
impl Debug for TranscriptNormalization
Source§impl Default for TranscriptNormalization
impl Default for TranscriptNormalization
Source§fn default() -> TranscriptNormalization
fn default() -> TranscriptNormalization
Returns the “default value” for a type. Read more
Source§impl Message for TranscriptNormalization
impl Message for TranscriptNormalization
Source§impl PartialEq for TranscriptNormalization
impl PartialEq for TranscriptNormalization
impl StructuralPartialEq for TranscriptNormalization
Auto Trait Implementations§
impl Freeze for TranscriptNormalization
impl RefUnwindSafe for TranscriptNormalization
impl Send for TranscriptNormalization
impl Sync for TranscriptNormalization
impl Unpin for TranscriptNormalization
impl UnwindSafe for TranscriptNormalization
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
Mutably borrows from an owned value. Read more