Struct kalosm_sound::WhisperBuilder
source · pub struct WhisperBuilder { /* private fields */ }
Expand description
A builder with configuration for a Whisper model.
Implementations§
source§impl WhisperBuilder
impl WhisperBuilder
sourcepub fn with_cpu(self, cpu: bool) -> WhisperBuilder
pub fn with_cpu(self, cpu: bool) -> WhisperBuilder
Set if the model should run on CPU rather than on GPU.
sourcepub fn with_source(self, model: WhisperSource) -> WhisperBuilder
pub fn with_source(self, model: WhisperSource) -> WhisperBuilder
Set the model to be used.
sourcepub fn with_language(self, language: Option<WhisperLanguage>) -> WhisperBuilder
pub fn with_language(self, language: Option<WhisperLanguage>) -> WhisperBuilder
Set the language to be used.
Trait Implementations§
source§impl Debug for WhisperBuilder
impl Debug for WhisperBuilder
source§impl Default for WhisperBuilder
impl Default for WhisperBuilder
source§fn default() -> WhisperBuilder
fn default() -> WhisperBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WhisperBuilder
impl Send for WhisperBuilder
impl Sync for WhisperBuilder
impl Unpin for WhisperBuilder
impl UnwindSafe for WhisperBuilder
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