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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.