pub struct WordBoundary {
pub text: String,
pub offset: u64,
pub duration: u64,
pub estimated: bool,
}Expand description
A word boundary event with timing information.
Mirrors Swift’s WordBoundary.
Fields§
§text: StringThe spoken word text.
offset: u64Offset from start of audio in milliseconds.
duration: u64Duration of the word in milliseconds.
estimated: boolTrue when the timings are proportional estimates (unpatched voices, sherpa-onnx’s 150-wpm model); false when measured (cloud provider timings that track the audio).
Trait Implementations§
Source§impl Clone for WordBoundary
impl Clone for WordBoundary
Source§impl Debug for WordBoundary
impl Debug for WordBoundary
Source§impl PartialEq for WordBoundary
impl PartialEq for WordBoundary
impl StructuralPartialEq for WordBoundary
Auto Trait Implementations§
impl Freeze for WordBoundary
impl RefUnwindSafe for WordBoundary
impl Send for WordBoundary
impl Sync for WordBoundary
impl Unpin for WordBoundary
impl UnsafeUnpin for WordBoundary
impl UnwindSafe for WordBoundary
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