pub struct Word {
pub text: String,
pub start: f64,
pub end: f64,
pub speaker: Option<u32>,
pub confidence: Option<f64>,
}Expand description
One word, with the moment it was spoken.
Times are seconds from the start of the audio. A clip is cut on these, so
they are f64, not milliseconds rounded somewhere on the way in.
Fields§
§text: String§start: f64§end: f64§speaker: Option<u32>Zero-based speaker index, when the provider was asked to tell speakers apart and could.
confidence: Option<f64>0–1, when the provider reports one.
Trait Implementations§
impl StructuralPartialEq for Word
Auto Trait Implementations§
impl Freeze for Word
impl RefUnwindSafe for Word
impl Send for Word
impl Sync for Word
impl Unpin for Word
impl UnsafeUnpin for Word
impl UnwindSafe for Word
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