From ce17f9a441266369f6a0eea7238f514787c68796 Mon Sep 17 00:00:00 2001 From: arizhih Date: Sat, 18 May 2024 00:06:53 +0200 Subject: [PATCH] Re-export whisper_ahead --- examples/audio_transcription.rs | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/audio_transcription.rs b/examples/audio_transcription.rs index 2a8499b..60e5ea9 100644 --- a/examples/audio_transcription.rs +++ b/examples/audio_transcription.rs @@ -29,7 +29,7 @@ fn main() -> Result<(), &'static str> { (5, 4), (5, 6), ] - .map(|(n_text_layer, n_head)| whisper_rs_sys::whisper_ahead { + .map(|(n_text_layer, n_head)| whisper_rs::DtwAhead { n_text_layer, n_head, }); diff --git a/src/lib.rs b/src/lib.rs index 1822174..afd1996 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -49,3 +49,4 @@ pub type WhisperProgressCallback = whisper_rs_sys::whisper_progress_callback; pub type WhisperLogitsFilterCallback = whisper_rs_sys::whisper_logits_filter_callback; pub type WhisperAbortCallback = whisper_rs_sys::ggml_abort_callback; pub type WhisperLogCallback = whisper_rs_sys::ggml_log_callback; +pub type DtwAhead = whisper_rs_sys::whisper_ahead;