Update whisper.cpp

This commit is contained in:
Niko 2023-10-06 21:49:40 -06:00
parent f2d528e3c1
commit 4b45810dca
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B
4 changed files with 36 additions and 1 deletions

View file

@ -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