#[non_exhaustive]pub struct Config {
pub noise_suppression: bool,
pub auto_gain: bool,
pub residual_echo_detection: bool,
}Expand description
Echo cancellation settings.
#[non_exhaustive]: construct via Config::default and set fields, so new
options can be added without breaking callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.noise_suppression: boolAlso suppress steady background noise: fans, hum, street noise.
On by default, matching what a browser gives a call. Turn it off to capture music, or anything else where “steady” doesn’t mean “unwanted”.
auto_gain: boolAlso level the microphone toward a consistent loudness.
On by default, again matching the browser. Turn it off when the input level is already managed, e.g. by an audio interface.
residual_echo_detection: boolAlso estimate the likelihood that echo remains after processing.
Off by default because it adds work and is only needed when
Stats::residual_echo_likelihood is observed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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