From c3ef815c08ecb1e1ffdd0c01d2c56218f2f52ccd Mon Sep 17 00:00:00 2001
From: haoneng.lhn <haoneng.lhn@alibaba-inc.com>
Date: 星期五, 11 八月 2023 10:26:32 +0800
Subject: [PATCH] update setup.py for mossformer
---
funasr/runtime/onnxruntime/src/vad-model.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/vad-model.cpp b/funasr/runtime/onnxruntime/src/vad-model.cpp
index 764db00..c164c3e 100644
--- a/funasr/runtime/onnxruntime/src/vad-model.cpp
+++ b/funasr/runtime/onnxruntime/src/vad-model.cpp
@@ -21,4 +21,11 @@
return mm;
}
+VadModel *CreateVadModel(void* fsmnvad_handle)
+{
+ VadModel *mm;
+ mm = new FsmnVadOnline((FsmnVad*)fsmnvad_handle);
+ return mm;
+}
+
} // namespace funasr
\ No newline at end of file
--
Gitblit v1.9.1