pub struct EchoCanceller { /* private fields */ }Expand description
Echo canceller state.
Implementations§
Source§impl EchoCanceller
impl EchoCanceller
Sourcepub fn new(config: EchoCancellerConfig) -> Self
pub fn new(config: EchoCancellerConfig) -> Self
Create a new echo canceller with the given configuration.
Sourcepub fn feed_reference(&mut self, samples: &[f32])
pub fn feed_reference(&mut self, samples: &[f32])
Feed reference audio (TTS output) to the canceller.
Sourcepub fn process(&mut self, input: &[f32]) -> Vec<f32>
pub fn process(&mut self, input: &[f32]) -> Vec<f32>
Process mic input, cancelling echo from reference. Currently a passthrough stub – returns input unchanged.
Sourcepub fn frames_processed(&self) -> u64
pub fn frames_processed(&self) -> u64
Get number of frames processed.
Auto Trait Implementations§
impl Freeze for EchoCanceller
impl RefUnwindSafe for EchoCanceller
impl Send for EchoCanceller
impl Sync for EchoCanceller
impl Unpin for EchoCanceller
impl UnsafeUnpin for EchoCanceller
impl UnwindSafe for EchoCanceller
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