pub struct VadSegments { /* private fields */ }Expand description
Speech segments detected by VAD
Implementations§
Source§impl VadSegments
impl VadSegments
Sourcepub fn n_segments(&self) -> i32
pub fn n_segments(&self) -> i32
Get the number of segments
Sourcepub fn get_segment_t0(&self, i_segment: i32) -> f32
pub fn get_segment_t0(&self, i_segment: i32) -> f32
Get segment start time in seconds
Sourcepub fn get_segment_t1(&self, i_segment: i32) -> f32
pub fn get_segment_t1(&self, i_segment: i32) -> f32
Get segment end time in seconds
Sourcepub fn get_all_segments(&self) -> Vec<(f32, f32)>
pub fn get_all_segments(&self) -> Vec<(f32, f32)>
Get all segments as tuples of (start, end) times in seconds
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VadSegments
impl RefUnwindSafe for VadSegments
impl !Send for VadSegments
impl !Sync for VadSegments
impl Unpin for VadSegments
impl UnwindSafe for VadSegments
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