pub struct WhisperState { /* private fields */ }Implementations§
Source§impl WhisperState
impl WhisperState
pub fn new(context: &WhisperContext) -> Result<Self>
pub fn full(&mut self, params: FullParams, audio: &[f32]) -> Result<()>
pub fn full_parallel( &mut self, params: FullParams, audio: &[f32], n_processors: i32, ) -> Result<()>
pub fn full_n_segments(&self) -> i32
pub fn full_lang_id(&self) -> i32
pub fn full_get_segment_text(&self, i_segment: i32) -> Result<String>
pub fn full_get_segment_timestamps(&self, i_segment: i32) -> (i64, i64)
pub fn full_get_segment_speaker_turn_next(&self, i_segment: i32) -> bool
pub fn full_n_tokens(&self, i_segment: i32) -> i32
pub fn full_get_token_text( &self, i_segment: i32, i_token: i32, ) -> Result<String>
pub fn full_get_token_id(&self, i_segment: i32, i_token: i32) -> i32
pub fn full_get_token_data( &self, i_segment: i32, i_token: i32, ) -> Option<whisper_token_data>
pub fn full_get_token_prob(&self, i_segment: i32, i_token: i32) -> f32
Trait Implementations§
Source§impl Drop for WhisperState
impl Drop for WhisperState
impl Send for WhisperState
Auto Trait Implementations§
impl Freeze for WhisperState
impl RefUnwindSafe for WhisperState
impl !Sync for WhisperState
impl Unpin for WhisperState
impl UnwindSafe for WhisperState
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