pub struct WhisperRecognizer { /* private fields */ }
Implementations§
Source§impl WhisperRecognizer
impl WhisperRecognizer
pub fn new(config: WhisperConfig) -> Result<Self>
pub fn transcribe( &mut self, sample_rate: u32, samples: Vec<f32>, ) -> WhisperRecognizerResult
Trait Implementations§
Source§impl Debug for WhisperRecognizer
impl Debug for WhisperRecognizer
Source§impl Drop for WhisperRecognizer
impl Drop for WhisperRecognizer
impl Send for WhisperRecognizer
impl Sync for WhisperRecognizer
Auto Trait Implementations§
impl Freeze for WhisperRecognizer
impl RefUnwindSafe for WhisperRecognizer
impl Unpin for WhisperRecognizer
impl UnwindSafe for WhisperRecognizer
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