From be3a2a50f84ef87c3a1eb6655e44db958862b781 Mon Sep 17 00:00:00 2001 From: Yang Zhou Date: Thu, 24 Mar 2022 13:30:35 +0800 Subject: [PATCH] fix normalizer bug --- speechx/speechx/frontend/normalizer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speechx/speechx/frontend/normalizer.cc b/speechx/speechx/frontend/normalizer.cc index 1adddb40..52412561 100644 --- a/speechx/speechx/frontend/normalizer.cc +++ b/speechx/speechx/frontend/normalizer.cc @@ -107,7 +107,7 @@ void CMVN::Accept(const kaldi::VectorBase& inputs) { } bool CMVN::Read(kaldi::Vector* feats) { - if (base_extractor_->Read(feats) == false) { + if (base_extractor_->Read(feats) == false || feats->Dim() == 0) { return false; } Compute(feats); -- GitLab