pub enum TTSError {
ProviderError(String, String),
VoiceNotFound(String, String),
InvalidVoiceData(String, String),
GenerationFailed(String, usize, String),
StreamingNotSupported(String),
FormatNotSupported(AudioFormat, String, String),
IoError(Error, String, String),
SerializationError(String, String),
ModelNotFound(String, String),
InvalidConfiguration(String, String, String),
ProviderNotReady(String, String, String),
Other(String, String),
}Expand description
TTS-related errors
Variants§
ProviderError(String, String)
Provider-specific error
VoiceNotFound(String, String)
Voice not found
InvalidVoiceData(String, String)
Invalid voice data
GenerationFailed(String, usize, String)
Audio generation failed
StreamingNotSupported(String)
Streaming not supported
FormatNotSupported(AudioFormat, String, String)
Format not supported
IoError(Error, String, String)
IO error
SerializationError(String, String)
Serialization error
ModelNotFound(String, String)
Model not found
InvalidConfiguration(String, String, String)
Invalid configuration
ProviderNotReady(String, String, String)
Provider not ready
Other(String, String)
Other errors
Trait Implementations§
Source§impl Error for TTSError
impl Error for TTSError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TTSError
impl !RefUnwindSafe for TTSError
impl Send for TTSError
impl Sync for TTSError
impl Unpin for TTSError
impl !UnwindSafe for TTSError
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