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: bool
Enables 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: f32
Min gain applied. (precision of 0.1)
max_gain: f32
Max 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
Source§impl From<&GainNormalizationConfig> for Option<GainNormalizerFilter>
impl From<&GainNormalizationConfig> for Option<GainNormalizerFilter>
Source§fn from(config: &GainNormalizationConfig) -> Self
fn from(config: &GainNormalizationConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GainNormalizationConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more