pub struct SubprocessTranscriber { /* private fields */ }Expand description
A whisper transcriber that runs inference in a child process.
Implementations§
Source§impl SubprocessTranscriber
impl SubprocessTranscriber
Sourcepub fn new(model_path: &Path, language: &str) -> Result<Self>
pub fn new(model_path: &Path, language: &str) -> Result<Self>
Spawn the worker process with the given model and language.
The worker binary is expected at the same location as the current executable (same target directory).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubprocessTranscriber
impl RefUnwindSafe for SubprocessTranscriber
impl Send for SubprocessTranscriber
impl Sync for SubprocessTranscriber
impl Unpin for SubprocessTranscriber
impl UnsafeUnpin for SubprocessTranscriber
impl UnwindSafe for SubprocessTranscriber
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