Update whisper.cpp
This commit is contained in:
parent
f2d528e3c1
commit
4b45810dca
4 changed files with 36 additions and 1 deletions
|
|
@ -53,6 +53,14 @@ pub fn get_lang_str(id: i32) -> Option<&'static str> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Callback to control logging output: default behaviour is to print to stderr.
|
||||
///
|
||||
/// # C++ equivalent
|
||||
/// `void whisper_set_log_callback(whisper_log_callback callback);`
|
||||
pub unsafe fn set_log_callback(callback: whisper_rs_sys::whisper_log_callback) {
|
||||
unsafe { whisper_rs_sys::whisper_set_log_callback(callback) }
|
||||
}
|
||||
|
||||
/// Print system information.
|
||||
///
|
||||
/// # C++ equivalent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue