From 9015b2ac1b24ac88ad9ef163b7dd139a23b7cc2f Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 09 八月 2023 15:46:07 +0800
Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main
---
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