From aa72e0ca5f7541d5e37877a91816f03883809ad3 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 25 九月 2024 23:44:42 +0800
Subject: [PATCH] add sensevoice-small
---
runtime/onnxruntime/include/offline-stream.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/runtime/onnxruntime/include/offline-stream.h b/runtime/onnxruntime/include/offline-stream.h
index cc0f1c4..10bd6df 100644
--- a/runtime/onnxruntime/include/offline-stream.h
+++ b/runtime/onnxruntime/include/offline-stream.h
@@ -9,6 +9,7 @@
#include "vad-model.h"
#if !defined(__APPLE__)
#include "itn-model.h"
+#include "com-define.h"
#endif
namespace funasr {
@@ -26,11 +27,13 @@
bool UseVad(){return use_vad;};
bool UsePunc(){return use_punc;};
bool UseITN(){return use_itn;};
+ std::string GetModelType(){return model_type;};
private:
bool use_vad=false;
bool use_punc=false;
bool use_itn=false;
+ std::string model_type = MODEL_PARA;
};
OfflineStream *CreateOfflineStream(std::map<std::string, std::string>& model_path, int thread_num=1, bool use_gpu=false, int batch_size=1);
--
Gitblit v1.9.1