pub struct AlwaysInterrupt;Expand description
Always allow interruptions (the default; barge-in on any detected turn-start). Mirrors pipecat’s default of “no interruption strategy = always interrupt”.
Trait Implementations§
Source§impl Clone for AlwaysInterrupt
impl Clone for AlwaysInterrupt
Source§impl Debug for AlwaysInterrupt
impl Debug for AlwaysInterrupt
Source§impl Default for AlwaysInterrupt
impl Default for AlwaysInterrupt
Source§impl InterruptionStrategy for AlwaysInterrupt
impl InterruptionStrategy for AlwaysInterrupt
Source§fn should_interrupt(&self) -> bool
fn should_interrupt(&self) -> bool
Should the accumulated user speech-so-far interrupt the bot? Called when a
turn-start is proposed while the bot is speaking.
Source§fn append_transcription(&mut self, _frame: &Frame)
fn append_transcription(&mut self, _frame: &Frame)
Feed a transcription frame so word/char-count strategies accumulate.
Source§fn append_audio_volume(&mut self, _volume: f32)
fn append_audio_volume(&mut self, _volume: f32)
Feed an audio frame’s volume so amplitude strategies accumulate.
Auto Trait Implementations§
impl Freeze for AlwaysInterrupt
impl RefUnwindSafe for AlwaysInterrupt
impl Send for AlwaysInterrupt
impl Sync for AlwaysInterrupt
impl Unpin for AlwaysInterrupt
impl UnsafeUnpin for AlwaysInterrupt
impl UnwindSafe for AlwaysInterrupt
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