pub enum TimestampMode {
Tokens,
Words,
Sentences,
}Expand description
Timestamp output mode for transcription results
Determines how token-level timestamps are grouped and presented:
Tokens: Raw token-level output from the model (most detailed)Words: Tokens grouped into individual wordsSentences: Tokens grouped by sentence boundaries (., ?, !)
§Model-Specific Recommendations
- Parakeet CTC (English): Use
Wordsmode. The CTC model only outputs lowercase alphabet without punctuation, so sentence segmentation is not possible. - Parakeet TDT (Multilingual): Use
Sentencesmode. The TDT model predicts punctuation, enabling natural sentence boundaries.
Variants§
Tokens
Raw token-level timestamps from the model
Words
Word-level timestamps (groups subword tokens)
Sentences
Sentence-level timestamps (groups by punctuation)
Note: Only works with models that predict punctuation (e.g., Parakeet TDT).
CTC models don’t predict punctuation, so use Words mode instead.
Trait Implementations§
Source§impl Clone for TimestampMode
impl Clone for TimestampMode
Source§fn clone(&self) -> TimestampMode
fn clone(&self) -> TimestampMode
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 TimestampMode
impl Debug for TimestampMode
Source§impl Default for TimestampMode
impl Default for TimestampMode
Source§fn default() -> TimestampMode
fn default() -> TimestampMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimestampMode
impl PartialEq for TimestampMode
impl Copy for TimestampMode
impl Eq for TimestampMode
impl StructuralPartialEq for TimestampMode
Auto Trait Implementations§
impl Freeze for TimestampMode
impl RefUnwindSafe for TimestampMode
impl Send for TimestampMode
impl Sync for TimestampMode
impl Unpin for TimestampMode
impl UnwindSafe for TimestampMode
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
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>
Converts
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>
Converts
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 more