#[non_exhaustive]pub enum DenoiseModel {
FastEnhancerT,
}Expand description
Single-channel speech-enhancement (denoise) model selector.
A closed, #[non_exhaustive] set: today the only value is
DenoiseModel::FastEnhancerT. Naming the model rather than taking a bool
keeps adding further models a non-breaking widening (a new variant), and
keeps the caller on record about which model, and which license, they
invoked. The model weights ship with the binding that bundles them; the core
loads them from MicrophoneConfig::denoise_model_path and embeds no model
bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FastEnhancerT
FastEnhancer-T: the tiny tier of FastEnhancer, the VoiceBank-DEMAND waveform checkpoint. Maps a window of noisy speech samples to a hop of cleaned speech samples, frame by frame, for streaming use.
Trait Implementations§
Source§impl Clone for DenoiseModel
impl Clone for DenoiseModel
Source§fn clone(&self) -> DenoiseModel
fn clone(&self) -> DenoiseModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DenoiseModel
Source§impl Debug for DenoiseModel
impl Debug for DenoiseModel
impl Eq for DenoiseModel
Source§impl PartialEq for DenoiseModel
impl PartialEq for DenoiseModel
Source§fn eq(&self, other: &DenoiseModel) -> bool
fn eq(&self, other: &DenoiseModel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DenoiseModel
Auto Trait Implementations§
impl Freeze for DenoiseModel
impl RefUnwindSafe for DenoiseModel
impl Send for DenoiseModel
impl Sync for DenoiseModel
impl Unpin for DenoiseModel
impl UnsafeUnpin for DenoiseModel
impl UnwindSafe for DenoiseModel
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