pub struct SoftTurnDetector { /* private fields */ }Expand description
Detects proactive silence — user stopped speaking but model didn’t respond.
Implementations§
Source§impl SoftTurnDetector
impl SoftTurnDetector
Sourcepub fn on_vad_end(&mut self)
pub fn on_vad_end(&mut self)
Called when VAD end is observed.
Sourcepub fn on_model_response(&mut self)
pub fn on_model_response(&mut self)
Called when the model produces any response (text, audio, tool call). Resets the detector — no soft turn needed.
Auto Trait Implementations§
impl Freeze for SoftTurnDetector
impl RefUnwindSafe for SoftTurnDetector
impl Send for SoftTurnDetector
impl Sync for SoftTurnDetector
impl Unpin for SoftTurnDetector
impl UnwindSafe for SoftTurnDetector
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