pub struct VocoderManager { /* private fields */ }Expand description
Vocoder manager with multiple architecture support
Implementations§
Source§impl VocoderManager
impl VocoderManager
Sourcepub fn add_vocoder(&mut self, name: String, vocoder: Box<dyn Vocoder>)
pub fn add_vocoder(&mut self, name: String, vocoder: Box<dyn Vocoder>)
Add vocoder
Sourcepub fn set_default_vocoder(&mut self, name: String)
pub fn set_default_vocoder(&mut self, name: String)
Set default vocoder
Sourcepub fn get_vocoder(&self, name: &str) -> Result<&dyn Vocoder>
pub fn get_vocoder(&self, name: &str) -> Result<&dyn Vocoder>
Get vocoder by name
Sourcepub fn get_default_vocoder(&self) -> Result<&dyn Vocoder>
pub fn get_default_vocoder(&self) -> Result<&dyn Vocoder>
Get default vocoder
Sourcepub fn list_vocoders(&self) -> Vec<&str>
pub fn list_vocoders(&self) -> Vec<&str>
List available vocoders
Trait Implementations§
Source§impl Default for VocoderManager
impl Default for VocoderManager
Source§impl Vocoder for VocoderManager
impl Vocoder for VocoderManager
Source§fn vocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mel: &'life1 MelSpectrogram,
config: Option<&'life2 SynthesisConfig>,
) -> Pin<Box<dyn Future<Output = Result<AudioBuffer>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn vocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mel: &'life1 MelSpectrogram,
config: Option<&'life2 SynthesisConfig>,
) -> Pin<Box<dyn Future<Output = Result<AudioBuffer>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Convert mel spectrogram to audio Read more
Source§fn vocode_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
mel_stream: Box<dyn Stream<Item = MelSpectrogram> + Send + Unpin>,
config: Option<&'life1 SynthesisConfig>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<AudioBuffer>> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn vocode_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
mel_stream: Box<dyn Stream<Item = MelSpectrogram> + Send + Unpin>,
config: Option<&'life1 SynthesisConfig>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<AudioBuffer>> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Streaming vocoding for real-time applications Read more
Source§fn vocode_batch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mels: &'life1 [MelSpectrogram],
configs: Option<&'life2 [SynthesisConfig]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AudioBuffer>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn vocode_batch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mels: &'life1 [MelSpectrogram],
configs: Option<&'life2 [SynthesisConfig]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AudioBuffer>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Batch vocoding for efficient processing of multiple inputs Read more
Source§fn metadata(&self) -> VocoderMetadata
fn metadata(&self) -> VocoderMetadata
Get vocoder metadata and capabilities Read more
Auto Trait Implementations§
impl Freeze for VocoderManager
impl !RefUnwindSafe for VocoderManager
impl Send for VocoderManager
impl Sync for VocoderManager
impl Unpin for VocoderManager
impl !UnwindSafe for VocoderManager
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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