Struct rustpotter::GainNormalizationConfig
source · pub struct GainNormalizationConfig {
pub enabled: bool,
pub gain_ref: Option<f32>,
pub min_gain: f32,
pub max_gain: f32,
}Expand description
Configures the gain-normalizer audio filter used.
Fields§
§enabled: boolEnables the filter.
gain_ref: Option<f32>Set the rms level reference used to calculate the gain applied. If unset the estimated wakeword rms level is used.
min_gain: f32Min gain applied. (precision of 0.1)
max_gain: f32Max gain applied. (precision of 0.1)
Trait Implementations§
source§impl Debug for GainNormalizationConfig
impl Debug for GainNormalizationConfig
source§impl Default for GainNormalizationConfig
impl Default for GainNormalizationConfig
source§fn default() -> GainNormalizationConfig
fn default() -> GainNormalizationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GainNormalizationConfig
impl Send for GainNormalizationConfig
impl Sync for GainNormalizationConfig
impl Unpin for GainNormalizationConfig
impl UnwindSafe for GainNormalizationConfig
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