From 0bb5d87d1ee98289bbe241e1f2caf1ab8e64c69c Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期六, 22 四月 2023 20:34:07 +0800
Subject: [PATCH] Merge branch 'dev_knf' of https://github.com/alibaba-damo-academy/FunASR into dev_knf

---
 funasr/runtime/onnxruntime/include/ComDefine.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/funasr/runtime/onnxruntime/include/ComDefine.h b/funasr/runtime/onnxruntime/include/ComDefine.h
index f131e5e..6929e49 100644
--- a/funasr/runtime/onnxruntime/include/ComDefine.h
+++ b/funasr/runtime/onnxruntime/include/ComDefine.h
@@ -8,4 +8,21 @@
 #define S_ALL    3
 #define S_ERR    4
 
+#ifndef MODEL_SAMPLE_RATE
+#define MODEL_SAMPLE_RATE 16000
+#endif
+
+#ifndef VAD_SILENCE_DYRATION
+#define VAD_SILENCE_DYRATION 15000
+#endif
+
+#ifndef VAD_MAX_LEN
+#define VAD_MAX_LEN 800
+#endif
+
+#ifndef VAD_SPEECH_NOISE_THRES
+#define VAD_SPEECH_NOISE_THRES 0.9
+#endif
+
+
 #endif

--
Gitblit v1.9.1