pub struct Config {
pub pipeline: Pipeline,
pub capture_amplifier: Option<CaptureAmplifier>,
pub high_pass_filter: Option<HighPassFilter>,
pub echo_canceller: Option<EchoCanceller>,
pub noise_suppression: Option<NoiseSuppression>,
pub gain_controller: Option<GainController>,
}Expand description
The parameters and behavior of the audio processing module are controlled
by changing the default values in this Config struct.
The config is applied by passing the struct to the
Processor::set_config() method.
Fields§
§pipeline: PipelineSets the properties of the audio processing pipeline.
capture_amplifier: Option<CaptureAmplifier>Enables and configures capture-side pre-amplifier/capture-level adjustment.
high_pass_filter: Option<HighPassFilter>Enables and configures high pass filter. Strongly recommended if echo cancellation is enabled. Enabling AECM or noise suppression force-enables high pass filter.
echo_canceller: Option<EchoCanceller>Enables and configures acoustic echo cancellation.
noise_suppression: Option<NoiseSuppression>Enables and configures background noise suppression. Force-enables high pass filtering.
gain_controller: Option<GainController>Enables and configures automatic gain control (v1 or v2).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Config
impl JsonSchema for Config
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Copy for Config
impl StructuralPartialEq for Config
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