pub struct FastSpeech2Synthesizer { /* private fields */ }Expand description
FastSpeech2-style TTS synthesizer.
Non-autoregressive, parallel synthesis for fast inference.
§Note
This is a stub - requires model weights.
Implementations§
Source§impl FastSpeech2Synthesizer
impl FastSpeech2Synthesizer
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
Trait Implementations§
Source§impl Debug for FastSpeech2Synthesizer
impl Debug for FastSpeech2Synthesizer
Source§impl SpeechSynthesizer for FastSpeech2Synthesizer
impl SpeechSynthesizer for FastSpeech2Synthesizer
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 FastSpeech2Synthesizer
impl RefUnwindSafe for FastSpeech2Synthesizer
impl Send for FastSpeech2Synthesizer
impl Sync for FastSpeech2Synthesizer
impl Unpin for FastSpeech2Synthesizer
impl UnwindSafe for FastSpeech2Synthesizer
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