pub enum STTError {
ProviderError(String, String),
TranscriptionFailed(String, f32, u32),
StreamingNotSupported(String),
InvalidAudioFormat(String, u32, u32, u16, u16),
IoError(Error, String, String),
ModelNotFound(String, String),
Other(String, String),
}Expand description
STT-related errors
Variants§
ProviderError(String, String)
Provider-specific error
TranscriptionFailed(String, f32, u32)
Transcription failed
StreamingNotSupported(String)
Streaming not supported
InvalidAudioFormat(String, u32, u32, u16, u16)
Invalid audio format
IoError(Error, String, String)
IO error
ModelNotFound(String, String)
Model not found
Other(String, String)
Other errors
Trait Implementations§
Source§impl Error for STTError
impl Error for STTError
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 STTError
impl !RefUnwindSafe for STTError
impl Send for STTError
impl Sync for STTError
impl Unpin for STTError
impl UnsafeUnpin for STTError
impl !UnwindSafe for STTError
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