From 2893054fcdd517c41bfe34a699bb249a6dcb9647 Mon Sep 17 00:00:00 2001 From: "manickavela1998@gmail.com" Date: Mon, 13 May 2024 09:25:41 +0000 Subject: [PATCH] fixing bug and compiler error Signed-off-by: manickavela1998@gmail.com --- sherpa-onnx/csrc/audio-tagging-impl.cc | 4 ++-- sherpa-onnx/csrc/keyword-spotter-transducer-impl.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sherpa-onnx/csrc/audio-tagging-impl.cc b/sherpa-onnx/csrc/audio-tagging-impl.cc index 4a4857c2c8..bfdea51395 100644 --- a/sherpa-onnx/csrc/audio-tagging-impl.cc +++ b/sherpa-onnx/csrc/audio-tagging-impl.cc @@ -25,7 +25,7 @@ std::unique_ptr AudioTaggingImpl::Create( return std::make_unique(config); } - SHERPA_ONNX_LOG( + SHERPA_ONNX_LOGE( "Please specify an audio tagging model! Return a null pointer"); return nullptr; } @@ -39,7 +39,7 @@ std::unique_ptr AudioTaggingImpl::Create( return std::make_unique(mgr, config); } - SHERPA_ONNX_LOG( + SHERPA_ONNX_LOGE( "Please specify an audio tagging model! Return a null pointer"); return nullptr; } diff --git a/sherpa-onnx/csrc/keyword-spotter-transducer-impl.h b/sherpa-onnx/csrc/keyword-spotter-transducer-impl.h index 1b897f69cc..2300839f38 100644 --- a/sherpa-onnx/csrc/keyword-spotter-transducer-impl.h +++ b/sherpa-onnx/csrc/keyword-spotter-transducer-impl.h @@ -307,7 +307,7 @@ class KeywordSpotterTransducerImpl : public KeywordSpotterImpl { void InitOnlineStream(OnlineStream *stream) const { auto r = decoder_->GetEmptyResult(); - SHERPA_ONNX_CHECK_EQ(r.hyps.size(), 1); + SHERPA_ONNX_CHECK_EQ(r.hyps.Size(), 1); SHERPA_ONNX_CHECK(stream->GetContextGraph() != nullptr); r.hyps.begin()->second.context_state = stream->GetContextGraph()->Root();