Struct webrtc_audio_processing::EchoCancellation
source · [−]pub struct EchoCancellation {
pub suppression_level: EchoCancellationSuppressionLevel,
pub enable_extended_filter: bool,
pub enable_delay_agnostic: bool,
pub stream_delay_ms: Option<i32>,
}
Expand description
Echo cancellation configuration.
Fields
suppression_level: EchoCancellationSuppressionLevel
Determines the aggressiveness of the suppressor. A higher level trades off double-talk performance for increased echo suppression.
enable_extended_filter: bool
Use to enable the extended filter mode in the AEC, along with robustness measures around the reported system delays. It comes with a significant increase in AEC complexity, but is much more robust to unreliable reported delays.
enable_delay_agnostic: bool
Enables delay-agnostic echo cancellation. This feature relies on internally estimated delays between the process and reverse streams, thus not relying on reported system delays.
stream_delay_ms: Option<i32>
Sets the delay in ms between process_render_frame() receiving a far-end frame and process_capture_frame() receiving a near-end frame containing the corresponding echo. You should set this only if you are certain that the delay will be stable and constant. enable_delay_agnostic will be ignored when this option is set.
Trait Implementations
sourceimpl Clone for EchoCancellation
impl Clone for EchoCancellation
sourcefn clone(&self) -> EchoCancellation
fn clone(&self) -> EchoCancellation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EchoCancellation
impl Debug for EchoCancellation
sourceimpl From<EchoCancellation> for EchoCancellation
impl From<EchoCancellation> for EchoCancellation
sourcefn from(other: EchoCancellation) -> EchoCancellation
fn from(other: EchoCancellation) -> EchoCancellation
Converts to this type from the input type.
sourceimpl PartialEq<EchoCancellation> for EchoCancellation
impl PartialEq<EchoCancellation> for EchoCancellation
sourcefn eq(&self, other: &EchoCancellation) -> bool
fn eq(&self, other: &EchoCancellation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EchoCancellation) -> bool
fn ne(&self, other: &EchoCancellation) -> bool
This method tests for !=
.
impl StructuralPartialEq for EchoCancellation
Auto Trait Implementations
impl RefUnwindSafe for EchoCancellation
impl Send for EchoCancellation
impl Sync for EchoCancellation
impl Unpin for EchoCancellation
impl UnwindSafe for EchoCancellation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more