pub struct WhisperCppTranscriber { /* private fields */ }Expand description
Data type for whisper cpp transcriber.
Implementations§
Source§impl WhisperCppTranscriber
impl WhisperCppTranscriber
Sourcepub fn new(config: WhisperCppConfig) -> Self
pub fn new(config: WhisperCppConfig) -> Self
Creates a new value.
Sourcepub fn with_model_store(self, store: ModelStore) -> Self
pub fn with_model_store(self, store: ModelStore) -> Self
Returns this value with model store.
Sourcepub fn on_progress<F>(self, callback: F) -> Selfwhere
F: FnMut(WhisperCppProgressEvent) + 'static,
pub fn on_progress<F>(self, callback: F) -> Selfwhere
F: FnMut(WhisperCppProgressEvent) + 'static,
Returns on progress.
Sourcepub fn transcribe_file(
&mut self,
input: &Path,
) -> Result<WhisperCppTranscription>
pub fn transcribe_file( &mut self, input: &Path, ) -> Result<WhisperCppTranscription>
Returns transcribe file.
Sourcepub fn transcribe_file_with_progress(
&mut self,
input: &Path,
progress: &mut dyn FnMut(WhisperCppProgressEvent),
) -> Result<WhisperCppTranscription>
pub fn transcribe_file_with_progress( &mut self, input: &Path, progress: &mut dyn FnMut(WhisperCppProgressEvent), ) -> Result<WhisperCppTranscription>
Returns transcribe file with progress.
Auto Trait Implementations§
impl Freeze for WhisperCppTranscriber
impl !RefUnwindSafe for WhisperCppTranscriber
impl !Send for WhisperCppTranscriber
impl !Sync for WhisperCppTranscriber
impl Unpin for WhisperCppTranscriber
impl UnsafeUnpin for WhisperCppTranscriber
impl !UnwindSafe for WhisperCppTranscriber
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