From a9335f487d34f35424ad86a5e641e42ece31facf Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Thu, 2 Jul 2026 17:16:43 -0500 Subject: [PATCH] feat(transcription): expose onnx model_dir for the dispatcher (T3.4) --- src-tauri/src/transcription/onnx_models.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src-tauri/src/transcription/onnx_models.rs b/src-tauri/src/transcription/onnx_models.rs index eab6386..437f7ef 100644 --- a/src-tauri/src/transcription/onnx_models.rs +++ b/src-tauri/src/transcription/onnx_models.rs @@ -34,6 +34,12 @@ fn onnx_dir(id: &str) -> PathBuf { models_dir().join("onnx-whisper").join(id) } +/// Directory holding a model's ONNX artifacts — what `OnnxNpuTranscriber::load` +/// expects as its `model` path. +pub fn model_dir(id: &str) -> PathBuf { + onnx_dir(id) +} + /// Local paths for the given model id (whether or not they exist yet). pub fn model_files(id: &str) -> OnnxModelFiles { let dir = onnx_dir(id);