pub struct SpeechChunk {
pub start_time: AudioTimestamp,
pub end_time: AudioTimestamp,
pub confidence: f32,
pub avg_energy: f32,
pub frame_count: usize,
}Expand description
Speech segment with temporal metadata emitted by the detector.
Fields§
§start_time: AudioTimestampStart time of the detected speech segment.
end_time: AudioTimestampEnd time of the detected speech segment.
confidence: f32Aggregated confidence score derived from combined metrics.
avg_energy: f32Average energy observed within the segment.
frame_count: usizeNumber of frames that contributed to the segment.
Implementations§
Source§impl SpeechChunk
impl SpeechChunk
Sourcepub fn duration(&self) -> Result<AudioDuration>
pub fn duration(&self) -> Result<AudioDuration>
Duration of the speech segment.
Trait Implementations§
Source§impl Clone for SpeechChunk
impl Clone for SpeechChunk
Source§fn clone(&self) -> SpeechChunk
fn clone(&self) -> SpeechChunk
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 SpeechChunk
impl Debug for SpeechChunk
Source§impl PartialEq for SpeechChunk
impl PartialEq for SpeechChunk
impl Copy for SpeechChunk
impl StructuralPartialEq for SpeechChunk
Auto Trait Implementations§
impl Freeze for SpeechChunk
impl RefUnwindSafe for SpeechChunk
impl Send for SpeechChunk
impl Sync for SpeechChunk
impl Unpin for SpeechChunk
impl UnsafeUnpin for SpeechChunk
impl UnwindSafe for SpeechChunk
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