feat: expose whisper_rs_sys::{whisper_context,whisper_state} for callback function

This commit is contained in:
fakecore 2023-08-01 00:57:57 +08:00
parent 912e5a778f
commit 81e1466784

View file

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