Merge remote-tracking branch 'origin/master'

This commit is contained in:
Niko 2024-04-06 11:38:35 -06:00
commit a9e060571a
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B
3 changed files with 33 additions and 0 deletions

View file

@ -518,6 +518,20 @@ impl WhisperContext {
pub fn token_transcribe(&self) -> WhisperToken {
unsafe { whisper_rs_sys::whisper_token_transcribe(self.ctx) }
}
/// Get whether the next segment is predicted as a speaker turn
///
/// # Arguments
/// * i_segment: Segment index.
///
/// # Returns
/// bool
///
/// # C++ equivalent
/// `bool whisper_full_get_segment_speaker_turn_next(struct whisper_context * ctx, int i_segment)`
pub fn full_get_segment_speaker_turn_next(&mut self, i_segment: c_int) -> bool {
unsafe { whisper_rs_sys::whisper_full_get_segment_speaker_turn_next(self.ctx, i_segment) }
}
}
impl Drop for WhisperContext {