From 435a5906e538de4c975c7847acfd99772881e3f1 Mon Sep 17 00:00:00 2001
From: 凌匀 <ailsa.zly@alibaba-inc.com>
Date: 星期三, 12 四月 2023 17:43:29 +0800
Subject: [PATCH] support onnxruntime of streaming vad & bug fix

---
 funasr/runtime/onnxruntime/src/paraformer_onnx.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/funasr/runtime/onnxruntime/src/paraformer_onnx.h b/funasr/runtime/onnxruntime/src/paraformer_onnx.h
index 5d3b0fe..e763be2 100644
--- a/funasr/runtime/onnxruntime/src/paraformer_onnx.h
+++ b/funasr/runtime/onnxruntime/src/paraformer_onnx.h
@@ -8,7 +8,10 @@
 
     class ModelImp : public Model {
     private:
-        //FeatureExtract* fe;
+        int fft_size=512;
+        float *fft_input;
+        fftwf_complex *fft_out;
+        fftwf_plan plan;
 
         Vocab* vocab;
         vector<float> means_list;

--
Gitblit v1.9.1