pub enum WhisperCode {
Show 14 variants
InvalidParameter,
InvalidProbability,
InvalidPcm,
Overflow,
SessionFinished,
Inference,
ModelLoad,
FailedSession,
InvalidStereoLength,
CaptureSampleOverflow,
PtsOutOfRange,
UnsupportedConversionClock,
Conversion,
Stopped,
}Expand description
Typed cause of an isolated Whisper VAD failure.
Variants§
InvalidParameter
A segmentation parameter is outside the supported domain.
InvalidProbability
An inference probability is not finite or normalized.
InvalidPcm
PCM is not finite or normalized.
Overflow
Checked arithmetic or storage capacity was exceeded.
SessionFinished
Processing followed a completed session without reset.
Inference
Inference or model reset failed.
ModelLoad
The embedded model could not be constructed.
FailedSession
A previous failure requires a successful reset.
InvalidStereoLength
Capture input did not contain complete stereo frames.
CaptureSampleOverflow
A capture sample count exceeded the supported domain.
PtsOutOfRange
The capture timestamp exceeded its supported domain.
UnsupportedConversionClock
Conversion could not establish an exact sample-aligned clock.
Conversion
Capture conversion failed.
Stopped
Processing followed stopped capture intake.
Implementations§
Source§impl WhisperCode
impl WhisperCode
Trait Implementations§
Source§impl Clone for WhisperCode
impl Clone for WhisperCode
impl Copy for WhisperCode
Source§impl Debug for WhisperCode
impl Debug for WhisperCode
impl Eq for WhisperCode
Source§impl PartialEq for WhisperCode
impl PartialEq for WhisperCode
impl StructuralPartialEq for WhisperCode
Auto Trait Implementations§
impl Freeze for WhisperCode
impl RefUnwindSafe for WhisperCode
impl Send for WhisperCode
impl Sync for WhisperCode
impl Unpin for WhisperCode
impl UnsafeUnpin for WhisperCode
impl UnwindSafe for WhisperCode
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