pub struct DenoiseOptions {
pub frame_size: usize,
pub hop_size: usize,
pub speech_low_hz: f32,
pub speech_high_hz: f32,
pub noise_estimation_percentile: f32,
pub noise_reduction: f32,
pub residual_floor: f32,
pub wet_mix: f32,
}Expand description
Parameters for the speech-focused denoiser.
The algorithm combines a speech-band filter, a short-time spectral suppressor, and an adaptive residual-noise gate. It is intended to attenuate steady background noise and background music, not to perform full source separation.
Fields§
§frame_size: usizeFFT frame size used by the spectral gate.
hop_size: usizeFrame hop size in samples.
speech_low_hz: f32Lower cutoff for the speech-band high-pass filter.
speech_high_hz: f32Upper cutoff for the speech-band low-pass filter.
noise_estimation_percentile: f32Fraction of the quietest frames used to estimate the noise profile.
noise_reduction: f32Multiplier applied to the estimated noise spectrum.
residual_floor: f32Residual spectral floor kept to reduce musical-noise artifacts.
wet_mix: f32Blend between denoised output and the speech-band filtered signal.
Trait Implementations§
Source§impl Clone for DenoiseOptions
impl Clone for DenoiseOptions
Source§fn clone(&self) -> DenoiseOptions
fn clone(&self) -> DenoiseOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DenoiseOptions
impl Debug for DenoiseOptions
Source§impl Default for DenoiseOptions
impl Default for DenoiseOptions
impl Copy for DenoiseOptions
Auto Trait Implementations§
impl Freeze for DenoiseOptions
impl RefUnwindSafe for DenoiseOptions
impl Send for DenoiseOptions
impl Sync for DenoiseOptions
impl Unpin for DenoiseOptions
impl UnsafeUnpin for DenoiseOptions
impl UnwindSafe for DenoiseOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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