Update whisper.cpp to 8e46ba80d3c1dcf532a0029f9bcdf99ce9ce7d40
This commit is contained in:
parent
3ca3a5deb6
commit
66f8aaeb86
3 changed files with 18 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue