From adb43c14b81d304bc7499035a50ca4a49d4a7a8a Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 13 二月 2023 12:21:21 +0800
Subject: [PATCH] export model
---
funasr/runtime/python/onnxruntime/rapid_paraformer/utils.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/funasr/runtime/python/onnxruntime/rapid_paraformer/utils.py b/funasr/runtime/python/onnxruntime/rapid_paraformer/utils.py
index adab790..839adb4 100644
--- a/funasr/runtime/python/onnxruntime/rapid_paraformer/utils.py
+++ b/funasr/runtime/python/onnxruntime/rapid_paraformer/utils.py
@@ -165,7 +165,8 @@
frame_shift=self.frame_shift,
dither=self.dither,
energy_floor=0.0,
- sample_frequency=self.fs)
+ sample_frequency=self.fs,
+ window_type=self.window)
feat = mat.astype(np.float32)
feat_len = np.array(mat.shape[0]).astype(np.int32)
return feat, feat_len
--
Gitblit v1.9.1