From 81e146678445afe8374e8e8d4de084461c3b6044 Mon Sep 17 00:00:00 2001 From: fakecore Date: Tue, 1 Aug 2023 00:57:57 +0800 Subject: [PATCH] feat: expose whisper_rs_sys::{whisper_context,whisper_state} for callback function --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index b4228c4..4d30fee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,9 @@ pub use whisper_ctx::WhisperContext; pub use whisper_params::{FullParams, SamplingStrategy}; pub use whisper_state::WhisperState; +pub type WhisperSysContext = whisper_rs_sys::whisper_context; +pub type WhisperSysState = whisper_rs_sys::whisper_state; + pub type WhisperTokenData = whisper_rs_sys::whisper_token_data; pub type WhisperToken = whisper_rs_sys::whisper_token; pub type WhisperNewSegmentCallback = whisper_rs_sys::whisper_new_segment_callback;