From ce734cca04a5971f264a98c8aeaadc750049e14f Mon Sep 17 00:00:00 2001 From: 0/0 Date: Wed, 14 Dec 2022 17:11:09 -0700 Subject: [PATCH] add WhisperTokenData type --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fcc614c..c724f55 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,5 +12,6 @@ pub use utilities::*; pub use whisper_ctx::WhisperContext; pub use whisper_params::{FullParams, SamplingStrategy}; -pub type WhisperToken = std::ffi::c_int; +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;