Update whisper.cpp to 8e46ba80d3c1dcf532a0029f9bcdf99ce9ce7d40

This commit is contained in:
Zero 2023-08-28 15:58:28 -06:00
parent 3ca3a5deb6
commit 66f8aaeb86
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B
3 changed files with 18 additions and 19 deletions

View file

@ -432,6 +432,23 @@ impl WhisperContext {
pub fn reset_timings(&self) {
unsafe { whisper_rs_sys::whisper_reset_timings(self.ctx) }
}
// task tokens
/// Get the ID of the translate task token.
///
/// # C++ equivalent
/// `whisper_token whisper_token_translate ()`
pub fn token_translate(&self) -> WhisperToken {
unsafe { whisper_rs_sys::whisper_token_translate(self.ctx) }
}
/// Get the ID of the transcribe task token.
///
/// # C++ equivalent
/// `whisper_token whisper_token_transcribe()`
pub fn token_transcribe(&self) -> WhisperToken {
unsafe { whisper_rs_sys::whisper_token_transcribe(self.ctx) }
}
}
impl Drop for WhisperContext {