pub enum TTSError {
ProviderError(String, String),
InvalidVoiceData(String, String),
GenerationFailed(String, usize, String),
StreamingNotSupported(String),
IoError(Error, String, String),
ModelNotFound(String, String),
Other(String, String),
}Expand description
TTS-related errors
Variants§
ProviderError(String, String)
Provider-specific error
InvalidVoiceData(String, String)
Invalid voice data
GenerationFailed(String, usize, String)
Audio generation failed
StreamingNotSupported(String)
Streaming not supported
IoError(Error, String, String)
IO error
ModelNotFound(String, String)
Model not found
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 UnsafeUnpin 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