pub struct NativeWhisperCppTranscriber { /* private fields */ }Expand description
Re-exports the text transcript native whisper.cpp API. 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, WhisperCppError>
pub fn transcribe_file( &mut self, input: &Path, ) -> Result<WhisperCppTranscription, WhisperCppError>
Returns transcribe file.
Sourcepub fn transcribe_file_with_progress(
&mut self,
input: &Path,
progress: &mut dyn FnMut(WhisperCppProgressEvent),
) -> Result<WhisperCppTranscription, WhisperCppError>
pub fn transcribe_file_with_progress( &mut self, input: &Path, progress: &mut dyn FnMut(WhisperCppProgressEvent), ) -> Result<WhisperCppTranscription, WhisperCppError>
Returns transcribe file with progress.
Auto Trait Implementations§
impl !RefUnwindSafe for WhisperCppTranscriber
impl !Send for WhisperCppTranscriber
impl !Sync for WhisperCppTranscriber
impl !UnwindSafe for WhisperCppTranscriber
impl Freeze for WhisperCppTranscriber
impl Unpin for WhisperCppTranscriber
impl UnsafeUnpin 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