diff --git a/src/standalone.rs b/src/standalone.rs index 2b0d439..be123c1 100644 --- a/src/standalone.rs +++ b/src/standalone.rs @@ -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. /// /// # C++ equivalent diff --git a/sys/whisper.cpp b/sys/whisper.cpp index a8d002c..fc45bb8 160000 --- a/sys/whisper.cpp +++ b/sys/whisper.cpp @@ -1 +1 @@ -Subproject commit a8d002cfd879315632a579e73f0148d06959de36 +Subproject commit fc45bb86251f774ef817e89878bb4c2636c8a58f