pub struct TurnPrediction {
pub state: TurnState,
pub confidence: f32,
pub latency_ms: u64,
pub stage_times: Vec<StageTiming>,
pub audio_duration_ms: u64,
}Expand description
A turn detection prediction with confidence and timing metadata.
Fields§
§state: TurnState§confidence: f32§latency_ms: u64§stage_times: Vec<StageTiming>Per-stage timing breakdown in pipeline order.
audio_duration_ms: u64Duration of audio in the detector’s buffer at prediction time (ms).
For PipecatSmartTurn this reflects how much of the 8 s ring buffer was filled. With soft reset the buffer may span multiple speech segments, so this can exceed the current segment duration.
Trait Implementations§
Source§impl Clone for TurnPrediction
impl Clone for TurnPrediction
Source§fn clone(&self) -> TurnPrediction
fn clone(&self) -> TurnPrediction
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 moreAuto Trait Implementations§
impl Freeze for TurnPrediction
impl RefUnwindSafe for TurnPrediction
impl Send for TurnPrediction
impl Sync for TurnPrediction
impl Unpin for TurnPrediction
impl UnsafeUnpin for TurnPrediction
impl UnwindSafe for TurnPrediction
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