pub struct EnhancedWhisperState<'a> { /* private fields */ }Expand description
Enhanced state with fallback support
Implementations§
Source§impl<'a> EnhancedWhisperState<'a>
impl<'a> EnhancedWhisperState<'a>
pub fn new(state: &'a mut WhisperState) -> Self
Sourcepub fn transcribe_with_fallback(
&mut self,
params: EnhancedTranscriptionParams,
audio: &[f32],
) -> Result<TranscriptionResult>
pub fn transcribe_with_fallback( &mut self, params: EnhancedTranscriptionParams, audio: &[f32], ) -> Result<TranscriptionResult>
Transcribe with temperature fallback
Auto Trait Implementations§
impl<'a> Freeze for EnhancedWhisperState<'a>
impl<'a> RefUnwindSafe for EnhancedWhisperState<'a>
impl<'a> Send for EnhancedWhisperState<'a>
impl<'a> !Sync for EnhancedWhisperState<'a>
impl<'a> Unpin for EnhancedWhisperState<'a>
impl<'a> !UnwindSafe for EnhancedWhisperState<'a>
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