From 0bd1a4d6a9893e45438505514a063d9deee91f21 Mon Sep 17 00:00:00 2001 From: Xingchen Song(宋星辰) <xingchensong1996@163.com> Date: 星期二, 11 六月 2024 14:00:10 +0800 Subject: [PATCH] [fix] better solution for handling empty result (#1796) --- runtime/onnxruntime/include/funasrruntime.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/onnxruntime/include/funasrruntime.h b/runtime/onnxruntime/include/funasrruntime.h index cc9ba3d..ac9a3bd 100644 --- a/runtime/onnxruntime/include/funasrruntime.h +++ b/runtime/onnxruntime/include/funasrruntime.h @@ -106,9 +106,9 @@ _FUNASRAPI FUNASR_RESULT FunOfflineInfer(FUNASR_HANDLE handle, const char* sz_filename, FUNASR_MODE mode, QM_CALLBACK fn_callback, const std::vector<std::vector<float>> &hw_emb, int sampling_rate=16000, bool itn=true, FUNASR_DEC_HANDLE dec_handle=nullptr); -#if !defined(__APPLE__) +//#if !defined(__APPLE__) _FUNASRAPI const std::vector<std::vector<float>> CompileHotwordEmbedding(FUNASR_HANDLE handle, std::string &hotwords, ASR_TYPE mode=ASR_OFFLINE); -#endif +//#endif _FUNASRAPI void FunOfflineUninit(FUNASR_HANDLE handle); -- Gitblit v1.9.1