#[non_exhaustive]pub struct VadResult {
pub probs: Vec<f32>,
pub first_frame: i64,
pub segments: Vec<VadSegment>,
}Expand description
The result of one VadSession::run, VadSession::stream_feed or
VadSession::stream_flush.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.probs: Vec<f32>Speech probability per frame produced by the call.
first_frame: i64Stream position of probs[0], in frames: 0 after a run; for a feed
or flush, the frames the stream had scored before the call.
segments: Vec<VadSegment>Speech segments, in time order; run only (empty after a feed or flush).
Trait Implementations§
impl StructuralPartialEq for VadResult
Auto Trait Implementations§
impl Freeze for VadResult
impl RefUnwindSafe for VadResult
impl Send for VadResult
impl Sync for VadResult
impl Unpin for VadResult
impl UnsafeUnpin for VadResult
impl UnwindSafe for VadResult
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