pub struct WhisperMetadataBuilder { /* private fields */ }Available on crate feature
whisper only.Expand description
Builder for creating an audio metadata
Implementations§
Source§impl WhisperMetadataBuilder
impl WhisperMetadataBuilder
pub fn new<S: Into<String>>(model_name: S, model_alias: S) -> Self
pub fn with_model_path(self, model_path: impl AsRef<Path>) -> Self
pub fn enable_plugin_log(self, enable: bool) -> Self
pub fn enable_debug_log(self, enable: bool) -> Self
pub fn with_threads(self, threads: u64) -> Self
pub fn enable_translate(self, enable: bool) -> Self
pub fn with_language(self, language: String) -> Self
pub fn with_processors(self, processors: u64) -> Self
pub fn with_offset_time(self, offset_t: u64) -> Self
pub fn with_duration(self, duration: u64) -> Self
pub fn with_max_context(self, max_context: i32) -> Self
pub fn with_max_len(self, max_len: u64) -> Self
pub fn split_on_word(self, split_on_word: bool) -> Self
pub fn output_txt(self, output_txt: bool) -> Self
pub fn output_vtt(self, output_vtt: bool) -> Self
pub fn output_srt(self, output_srt: bool) -> Self
pub fn output_lrc(self, output_lrc: bool) -> Self
pub fn output_csv(self, output_csv: bool) -> Self
pub fn output_json(self, output_json: bool) -> Self
pub fn with_temperature(self, temperature: f64) -> Self
pub fn detect_language(self, detect_language: bool) -> Self
pub fn with_prompt(self, prompt: String) -> Self
pub fn build(self) -> WhisperMetadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WhisperMetadataBuilder
impl RefUnwindSafe for WhisperMetadataBuilder
impl Send for WhisperMetadataBuilder
impl Sync for WhisperMetadataBuilder
impl Unpin for WhisperMetadataBuilder
impl UnwindSafe for WhisperMetadataBuilder
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<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