pub enum RecognitionError {
Show 20 variants
ModelLoadError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
ModelError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
AudioProcessingError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
TranscriptionError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
PhonemeRecognitionError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
AudioAnalysisError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
ConfigurationError {
message: String,
},
FeatureNotSupported {
feature: String,
},
InvalidInput {
message: String,
},
ResourceError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
UnsupportedFormat(String),
InvalidFormat(String),
ModelNotFound {
model: String,
available: Vec<String>,
suggestions: Vec<String>,
},
LanguageNotSupported {
language: String,
supported: Vec<String>,
suggestions: Vec<String>,
},
DeviceNotAvailable {
device: String,
reason: String,
fallback: String,
},
InsufficientMemory {
required_mb: u64,
available_mb: u64,
recommendation: String,
},
RecognitionTimeout {
timeout_ms: u64,
audio_duration_ms: u64,
suggestion: String,
},
MemoryError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
TrainingError {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
SynchronizationError {
message: String,
},
}Expand description
Recognition-specific error types Recognition Error
Variants§
ModelLoadError
Model loading failed
ModelError
Model operation error
AudioProcessingError
Audio processing error
TranscriptionError
Transcription error
PhonemeRecognitionError
Phoneme recognition error
AudioAnalysisError
Audio analysis error
ConfigurationError
Configuration error
FeatureNotSupported
Feature not supported
InvalidInput
Invalid input
ResourceError
Resource error
UnsupportedFormat(String)
Unsupported audio format
InvalidFormat(String)
Invalid audio format
ModelNotFound
Model not found with suggestions
Fields
LanguageNotSupported
Language not supported with suggestions
Fields
DeviceNotAvailable
GPU/Device not available with fallback info
Fields
InsufficientMemory
Insufficient memory with recommendation
Fields
RecognitionTimeout
Recognition timeout with retry suggestion
Fields
MemoryError
Memory error
TrainingError
Training error
SynchronizationError
Synchronization error (mutex poisoning, lock failure)
Trait Implementations§
Source§impl Debug for RecognitionError
impl Debug for RecognitionError
Source§impl Display for RecognitionError
impl Display for RecognitionError
Source§impl Error for RecognitionError
impl Error for RecognitionError
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()
Source§impl ErrorEnhancer for RecognitionError
impl ErrorEnhancer for RecognitionError
Source§fn enhance_error(&self) -> ErrorEnhancement
fn enhance_error(&self) -> ErrorEnhancement
Enhance an error with detailed context and solutions
Source§fn get_enhanced_message(&self) -> String
fn get_enhanced_message(&self) -> String
Get formatted error message with solutions
Source§fn get_quick_fixes(&self) -> Vec<String>
fn get_quick_fixes(&self) -> Vec<String>
Get quick fix suggestions
Source§fn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
Check if error is recoverable
Source§fn get_contextual_message(&self, system_info: &SystemInfo) -> String
fn get_contextual_message(&self, system_info: &SystemInfo) -> String
Get context-aware error message based on system state
Source§fn get_environment_solutions(&self, env: &EnvironmentInfo) -> Vec<Solution>
fn get_environment_solutions(&self, env: &EnvironmentInfo) -> Vec<Solution>
Get environment-specific solutions
Source§impl From<Error> for RecognitionError
impl From<Error> for RecognitionError
Source§impl From<RecognitionError> for SdkBridgeError
impl From<RecognitionError> for SdkBridgeError
Source§fn from(source: RecognitionError) -> Self
fn from(source: RecognitionError) -> Self
Converts to this type from the input type.
Source§impl From<RecognitionError> for VoirsError
impl From<RecognitionError> for VoirsError
Source§fn from(err: RecognitionError) -> Self
fn from(err: RecognitionError) -> Self
Converts to this type from the input type.
Source§impl From<TrainingError> for RecognitionError
impl From<TrainingError> for RecognitionError
Source§fn from(error: TrainingError) -> Self
fn from(error: TrainingError) -> Self
Converts to this type from the input type.
Source§impl From<VoirsError> for RecognitionError
impl From<VoirsError> for RecognitionError
Source§fn from(err: VoirsError) -> Self
fn from(err: VoirsError) -> Self
Converts to this type from the input type.
Source§impl RecoverableError for RecognitionError
Implementation of RecoverableError for RecognitionError
impl RecoverableError for RecognitionError
Implementation of RecoverableError for RecognitionError
Source§fn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
Check if error is recoverable
Source§fn recovery_action(&self) -> Option<RecoveryAction>
fn recovery_action(&self) -> Option<RecoveryAction>
Suggest recovery action
Source§fn retry_delay_ms(&self) -> Option<u64>
fn retry_delay_ms(&self) -> Option<u64>
Retry delay in milliseconds
Source§impl ToVoirsError for RecognitionError
Implementation of ToVoirsError for RecognitionError
impl ToVoirsError for RecognitionError
Implementation of ToVoirsError for RecognitionError
Source§fn to_voirs_error(&self) -> RecognitionError
fn to_voirs_error(&self) -> RecognitionError
Convert to
VoiRS errorSource§fn to_error_code(&self) -> ErrorCode
fn to_error_code(&self) -> ErrorCode
Convert to error code
Source§fn error_context(&self) -> ErrorContext
fn error_context(&self) -> ErrorContext
Get error context
Auto Trait Implementations§
impl Freeze for RecognitionError
impl !RefUnwindSafe for RecognitionError
impl Send for RecognitionError
impl Sync for RecognitionError
impl Unpin for RecognitionError
impl !UnwindSafe for RecognitionError
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
fn to_sample_(self) -> U
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.