pub struct ConfigBuilder {
inner: Config,
}Expand description
Builder for Config.
Fields§
§inner: ConfigImplementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn models_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn models_dir(self, dir: impl Into<PathBuf>) -> Self
Override the directory model files live in.
Sourcepub fn normalizer(self, spec: impl Into<Option<ModelSpec>>) -> Self
pub fn normalizer(self, spec: impl Into<Option<ModelSpec>>) -> Self
Set or clear the normalizer. Passing None skips normalization
and its download.
Sourcepub fn normalize_options(self, options: NormalizeOptions) -> Self
pub fn normalize_options(self, options: NormalizeOptions) -> Self
Set the default normalizer options. Per-call overrides go
through crate::Engine::transcribe_with.
Sourcepub fn max_capture(self, max: Duration) -> Self
pub fn max_capture(self, max: Duration) -> Self
Cap the length of a single capture.
Sourcepub fn silence_floor(self, dbfs: f32) -> Self
pub fn silence_floor(self, dbfs: f32) -> Self
Set the silence threshold in dBFS.
Sourcepub fn diagnostics_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn diagnostics_dir(self, dir: impl Into<PathBuf>) -> Self
Point per-take diagnostics at a directory. None (the default)
writes nothing.
Sourcepub fn digest_cache_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn digest_cache_dir(self, dir: impl Into<PathBuf>) -> Self
Record verified model digests under a directory, so a file unchanged since its last verification is not hashed again.
Trait Implementations§
Source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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