pub struct VadConfig {Show 17 fields
pub enabled: bool,
pub method: VadMethod,
pub selection: ConfigSelection,
pub onset: Option<f32>,
pub offset: Option<f32>,
pub chunk_size: Option<f64>,
pub rms_threshold: f32,
pub frame_seconds: f64,
pub hop_seconds: f64,
pub min_speech_seconds: f64,
pub padding_seconds: f64,
pub merge_gap_seconds: f64,
pub max_chunk_seconds: f64,
pub model_bundle: Option<PathBuf>,
pub model_file: Option<String>,
pub input_name: Option<String>,
pub output_name: Option<String>,
}Fields§
§enabled: bool§method: VadMethod§selection: ConfigSelection§onset: Option<f32>§offset: Option<f32>§chunk_size: Option<f64>§rms_threshold: f32§frame_seconds: f64§hop_seconds: f64§min_speech_seconds: f64§padding_seconds: f64§merge_gap_seconds: f64§max_chunk_seconds: f64§model_bundle: Option<PathBuf>§model_file: Option<String>§input_name: Option<String>§output_name: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for VadConfig
impl<'de> Deserialize<'de> for VadConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for VadConfig
Auto Trait Implementations§
impl Freeze for VadConfig
impl RefUnwindSafe for VadConfig
impl Send for VadConfig
impl Sync for VadConfig
impl Unpin for VadConfig
impl UnsafeUnpin for VadConfig
impl UnwindSafe for VadConfig
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more