pub struct DiarizationResult {
pub speakers: Vec<Speaker>,
pub segments: Vec<SpeakerSegment>,
pub duration_ms: u64,
}Expand description
Complete diarization result
Fields§
§speakers: Vec<Speaker>Identified speakers
segments: Vec<SpeakerSegment>Timeline of speaker segments
duration_ms: u64Total audio duration in milliseconds
Implementations§
Source§impl DiarizationResult
impl DiarizationResult
Sourcepub fn new() -> DiarizationResult
pub fn new() -> DiarizationResult
Create empty result
Sourcepub fn speaker_count(&self) -> usize
pub fn speaker_count(&self) -> usize
Number of speakers detected
Sourcepub fn segments_for_speaker(&self, speaker_id: usize) -> Vec<&SpeakerSegment>
pub fn segments_for_speaker(&self, speaker_id: usize) -> Vec<&SpeakerSegment>
Get segments for a specific speaker
Sourcepub fn speaking_time_ms(&self, speaker_id: usize) -> u64
pub fn speaking_time_ms(&self, speaker_id: usize) -> u64
Get speaking time for a speaker
Trait Implementations§
Source§impl Clone for DiarizationResult
impl Clone for DiarizationResult
Source§fn clone(&self) -> DiarizationResult
fn clone(&self) -> DiarizationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiarizationResult
impl Debug for DiarizationResult
Source§impl Default for DiarizationResult
impl Default for DiarizationResult
Source§fn default() -> DiarizationResult
fn default() -> DiarizationResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiarizationResult
impl RefUnwindSafe for DiarizationResult
impl Send for DiarizationResult
impl Sync for DiarizationResult
impl Unpin for DiarizationResult
impl UnsafeUnpin for DiarizationResult
impl UnwindSafe for DiarizationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more