pub enum ConfigError {
InvalidWindowSecs(f32),
InvalidHopSecs(f32),
HopExceedsWindow {
hop_secs: f32,
window_secs: f32,
},
SubSampleWindow {
window_secs: f32,
hop_secs: f32,
},
InvalidThreshold(f32),
InvalidMinSpeechSecs(f32),
InvalidMaxGapSecs(f32),
InvalidMaxDurationSecs(f32),
}Expand description
Validation failure for DiarizationConfig field ranges.
Produced by DiarizationConfig::validate; covers values that would
otherwise panic downstream (zero or inverted window geometry reaches the
window iterator) or silently degrade the output (out-of-range cosine
threshold, negative or non-finite durations).
Variants§
InvalidWindowSecs(f32)
window.window_secs must be finite and > 0.
InvalidHopSecs(f32)
window.hop_secs must be finite and > 0.
HopExceedsWindow
window.hop_secs must not exceed window.window_secs.
SubSampleWindow
Window geometry must quantize to at least one sample per window and hop at the configured sample rate.
InvalidThreshold(f32)
cluster.threshold is a cosine similarity and must lie in [-1, 1].
InvalidMinSpeechSecs(f32)
speech_filter.min_speech_secs must be finite and >= 0.
InvalidMaxGapSecs(f32)
speech_filter.max_gap_secs must be finite and >= 0.
InvalidMaxDurationSecs(f32)
max_duration_secs must be finite and > 0.
Trait Implementations§
Source§impl Clone for ConfigError
impl Clone for ConfigError
Source§fn clone(&self) -> ConfigError
fn clone(&self) -> ConfigError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConfigError> for LegacyPipelineError
impl From<ConfigError> for LegacyPipelineError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Source§impl PartialEq for ConfigError
impl PartialEq for ConfigError
impl StructuralPartialEq for ConfigError
Auto Trait Implementations§
impl Freeze for ConfigError
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
impl UnwindSafe for ConfigError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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> ⓘ
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> ⓘ
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 more