From 1a471595a584e96132bcc109683f580141f419d3 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 22 Jul 2024 09:27:30 +0800 Subject: [PATCH] Fix Android build (#1161) --- sherpa-onnx/csrc/offline-recognizer-impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherpa-onnx/csrc/offline-recognizer-impl.cc b/sherpa-onnx/csrc/offline-recognizer-impl.cc index 319e104d0..5062968cc 100644 --- a/sherpa-onnx/csrc/offline-recognizer-impl.cc +++ b/sherpa-onnx/csrc/offline-recognizer-impl.cc @@ -214,7 +214,7 @@ std::unique_ptr OfflineRecognizerImpl::Create( if (!config.model_config.nemo_ctc.model.empty() || !config.model_config.zipformer_ctc.model.empty() || !config.model_config.tdnn.model.empty() || - !config.model_type.wenet_ctc.model.empty()) { + !config.model_config.wenet_ctc.model.empty()) { return std::make_unique(mgr, config); }