From ae3e2567602546e66c0f358463617e560fc70e20 Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期四, 20 四月 2023 14:50:55 +0800
Subject: [PATCH] add offline vad for onnxruntime

---
 funasr/runtime/onnxruntime/src/Model.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/onnxruntime/src/Model.cpp b/funasr/runtime/onnxruntime/src/Model.cpp
index 7ddb635..2f864a9 100644
--- a/funasr/runtime/onnxruntime/src/Model.cpp
+++ b/funasr/runtime/onnxruntime/src/Model.cpp
@@ -1,10 +1,10 @@
 #include "precomp.h"
 
-Model *create_model(const char *path, int nThread, bool quantize)
+Model *create_model(const char *path, int nThread, bool quantize, bool use_vad)
 {
     Model *mm;
 
-    mm = new paraformer::ModelImp(path, nThread, quantize);
+    mm = new paraformer::ModelImp(path, nThread, quantize, use_vad);
 
     return mm;
 }

--
Gitblit v1.9.1