pub struct HifiGanVocoder { /* private fields */ }Expand description
HiFi-GAN vocoder.
High-fidelity generative adversarial network for mel-to-audio.
§Note
This is a stub - requires model weights.
Implementations§
Source§impl HifiGanVocoder
impl HifiGanVocoder
Sourcepub fn new(sample_rate: u32, n_mels: usize) -> HifiGanVocoder
pub fn new(sample_rate: u32, n_mels: usize) -> HifiGanVocoder
Create new HiFi-GAN vocoder
Sourcepub fn default_config() -> HifiGanVocoder
pub fn default_config() -> HifiGanVocoder
Create with default settings (22050Hz, 80 mels)
Trait Implementations§
Source§impl Debug for HifiGanVocoder
impl Debug for HifiGanVocoder
Auto Trait Implementations§
impl Freeze for HifiGanVocoder
impl RefUnwindSafe for HifiGanVocoder
impl Send for HifiGanVocoder
impl Sync for HifiGanVocoder
impl Unpin for HifiGanVocoder
impl UnsafeUnpin for HifiGanVocoder
impl UnwindSafe for HifiGanVocoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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