pub struct AutoVcTransfer { /* private fields */ }Expand description
AutoVC-based voice style transfer.
Reference: Qian et al., 2019 - AutoVC: Zero-Shot Voice Style Transfer.
§Note
This is a stub - requires model weights.
Implementations§
Source§impl AutoVcTransfer
impl AutoVcTransfer
Sourcepub fn new(config: StyleConfig) -> Self
pub fn new(config: StyleConfig) -> Self
Create new AutoVC transfer
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create with default configuration
Trait Implementations§
Source§impl Debug for AutoVcTransfer
impl Debug for AutoVcTransfer
Source§impl StyleTransfer for AutoVcTransfer
impl StyleTransfer for AutoVcTransfer
Source§fn transfer(
&self,
source_audio: &[f32],
_target_style: &StyleVector,
) -> VoiceResult<Vec<f32>>
fn transfer( &self, source_audio: &[f32], _target_style: &StyleVector, ) -> VoiceResult<Vec<f32>>
Apply style transfer to audio. Read more
Source§fn transfer_from_reference(
&self,
source_audio: &[f32],
reference_audio: &[f32],
) -> VoiceResult<Vec<f32>>
fn transfer_from_reference( &self, source_audio: &[f32], reference_audio: &[f32], ) -> VoiceResult<Vec<f32>>
Apply style transfer using reference audio. Read more
Source§fn config(&self) -> &StyleConfig
fn config(&self) -> &StyleConfig
Get the configuration
Auto Trait Implementations§
impl Freeze for AutoVcTransfer
impl RefUnwindSafe for AutoVcTransfer
impl Send for AutoVcTransfer
impl Sync for AutoVcTransfer
impl Unpin for AutoVcTransfer
impl UnwindSafe for AutoVcTransfer
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