pub struct Timeline { /* private fields */ }Available on crate feature
silero and non-target_family=wasm only.Expand description
The turns of one recording so far, and how far into it they reach.
Implementations§
Source§impl Timeline
impl Timeline
pub fn wholly_admitted(&self, span: &Range<u64>) -> Option<bool>
pub fn is_broken(&self) -> bool
Sourcepub fn broken() -> Self
pub fn broken() -> Self
A timeline nothing can be judged by: every segment held against it is dropped.
Sourcepub fn speaker(&self, span: &Range<u64>) -> Option<&SpeakerName>
pub fn speaker(&self, span: &Range<u64>) -> Option<&SpeakerName>
The enrolled voice of the turn that covers most of span.
Sourcepub fn speaking(&self) -> Option<Speaker>
pub fn speaking(&self) -> Option<Speaker>
Whose voice the latest turn is. None before anyone speaks.
Sourcepub fn owner_name(&self) -> Option<&SpeakerName>
pub fn owner_name(&self) -> Option<&SpeakerName>
The name covering the longest span of admitted owner audio.
pub fn admitted_is_owner(&self) -> bool
Sourcepub fn admitted_audio(&self, samples: &[f32], from: u64) -> Vec<f32>
pub fn admitted_audio(&self, samples: &[f32], from: u64) -> Vec<f32>
The audio of turns that may be typed: the owner’s, and those too short to tell.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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