From 651737380b2be42ae5182a777abb0938a36aedc1 Mon Sep 17 00:00:00 2001
From: jmwang66 <wangjiaming.wjm@alibaba-inc.com>
Date: 星期三, 09 八月 2023 16:48:02 +0800
Subject: [PATCH] Merge branch 'main' into dev_wjm_modelscope
---
funasr/runtime/onnxruntime/src/paraformer-online.cpp | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/paraformer-online.cpp b/funasr/runtime/onnxruntime/src/paraformer-online.cpp
index 1787f02..267d30a 100644
--- a/funasr/runtime/onnxruntime/src/paraformer-online.cpp
+++ b/funasr/runtime/onnxruntime/src/paraformer-online.cpp
@@ -125,11 +125,15 @@
}
} else {
if (input_finished) {
- if (!reserve_waveforms_.empty()) {
- waves = reserve_waveforms_;
- }
- wav_feats = lfr_splice_cache_;
- OnlineLfrCmvn(wav_feats, input_finished);
+ if (!reserve_waveforms_.empty()) {
+ waves = reserve_waveforms_;
+ }
+ wav_feats = lfr_splice_cache_;
+ if(wav_feats.size() == 0){
+ LOG(ERROR) << "wav_feats's size is 0";
+ }else{
+ OnlineLfrCmvn(wav_feats, input_finished);
+ }
}
}
if(input_finished){
--
Gitblit v1.9.1