pub struct VitsSynthesizer { /* private fields */ }Expand description
VITS-style end-to-end TTS.
Variational inference with adversarial learning.
§Note
This is a stub - requires model weights.
Implementations§
Source§impl VitsSynthesizer
impl VitsSynthesizer
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create with default configuration
Sourcepub fn add_speaker(&mut self, speaker: String)
pub fn add_speaker(&mut self, speaker: String)
Add a speaker
Sourcepub fn add_language(&mut self, language: String)
pub fn add_language(&mut self, language: String)
Add a language
Trait Implementations§
Source§impl Debug for VitsSynthesizer
impl Debug for VitsSynthesizer
Source§impl SpeechSynthesizer for VitsSynthesizer
impl SpeechSynthesizer for VitsSynthesizer
Source§fn synthesize(
&self,
request: &SynthesisRequest,
) -> SpeechResult<SynthesisResult>
fn synthesize( &self, request: &SynthesisRequest, ) -> SpeechResult<SynthesisResult>
Synthesize speech from text. Read more
Source§fn available_speakers(&self) -> Vec<String>
fn available_speakers(&self) -> Vec<String>
Get available speakers (for multi-speaker models)
Source§fn supports_language(&self, language: &str) -> bool
fn supports_language(&self, language: &str) -> bool
Check if model supports a language
Auto Trait Implementations§
impl Freeze for VitsSynthesizer
impl RefUnwindSafe for VitsSynthesizer
impl Send for VitsSynthesizer
impl Sync for VitsSynthesizer
impl Unpin for VitsSynthesizer
impl UnsafeUnpin for VitsSynthesizer
impl UnwindSafe for VitsSynthesizer
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