Update whisper.cpp to latest git (closes #240)
This commit is contained in:
parent
43e31a7345
commit
b376a1ef64
2 changed files with 10 additions and 1 deletions
|
|
@ -86,6 +86,15 @@ pub unsafe fn set_log_callback(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the current `whisper.cpp` version.
|
||||||
|
pub fn get_whisper_version() -> &str {
|
||||||
|
let ptr = unsafe { whisper_rs_sys::whisper_version() };
|
||||||
|
assert!(!ptr.is_null());
|
||||||
|
unsafe { CStr::from_ptr(ptr) }
|
||||||
|
.to_str()
|
||||||
|
.expect("Whisper version should be valid UTF-8")
|
||||||
|
}
|
||||||
|
|
||||||
/// Print system information.
|
/// Print system information.
|
||||||
///
|
///
|
||||||
/// # C++ equivalent
|
/// # C++ equivalent
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit a8d002cfd879315632a579e73f0148d06959de36
|
Subproject commit fc45bb86251f774ef817e89878bb4c2636c8a58f
|
||||||
Loading…
Add table
Add a link
Reference in a new issue