pub struct Transcript {
pub text: String,
pub language: Option<String>,
pub timestamp_kind: TimestampKind,
pub segments: Vec<Segment>,
pub words: Vec<Word>,
pub tokens: Vec<Token>,
pub timings: Timings,
}Expand description
A fully-materialized transcription result.
Fields§
§text: StringThe full transcript text.
language: Option<String>The model-detected language (ISO code), if it predicted one. None
when a language hint was given, the model lacks LID, or none applies.
timestamp_kind: TimestampKindThe finest timestamp granularity actually populated below.
segments: Vec<Segment>Segment rows (empty unless segment-or-finer timestamps were produced).
words: Vec<Word>Word rows (empty unless word-or-finer timestamps were produced).
tokens: Vec<Token>Token rows (empty unless token timestamps were produced).
timings: TimingsStage timings for the run.
Trait Implementations§
Source§impl Clone for Transcript
impl Clone for Transcript
Source§fn clone(&self) -> Transcript
fn clone(&self) -> Transcript
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Transcript
impl Debug for Transcript
Source§impl Default for Transcript
impl Default for Transcript
Source§fn default() -> Transcript
fn default() -> Transcript
Returns the “default value” for a type. Read more
Source§impl PartialEq for Transcript
impl PartialEq for Transcript
Source§fn eq(&self, other: &Transcript) -> bool
fn eq(&self, other: &Transcript) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Transcript
Auto Trait Implementations§
impl Freeze for Transcript
impl RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl UnsafeUnpin for Transcript
impl UnwindSafe for Transcript
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