diff --git a/sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h b/sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h index 812bf13e7..2391efb1f 100644 --- a/sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h +++ b/sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h @@ -63,7 +63,7 @@ class OnlineRecognizerTransducerNeMoImpl : public OnlineRecognizerImpl { AAssetManager *mgr, const OnlineRecognizerConfig &config) : config_(config), symbol_table_(mgr, config.model_config.tokens), - endpoint_(mgrconfig_.endpoint_config), + endpoint_(config_.endpoint_config), model_(std::make_unique( mgr, config.model_config)) { if (config.decoding_method == "greedy_search") { diff --git a/sherpa-onnx/csrc/online-transducer-nemo-model.cc b/sherpa-onnx/csrc/online-transducer-nemo-model.cc index 1b04fcaf6..3869a8b20 100644 --- a/sherpa-onnx/csrc/online-transducer-nemo-model.cc +++ b/sherpa-onnx/csrc/online-transducer-nemo-model.cc @@ -62,17 +62,17 @@ class OnlineTransducerNeMoModel::Impl { sess_opts_(GetSessionOptions(config)), allocator_{} { { - auto buf = ReadFile(mgr, config.transducer.encoder_filename); + auto buf = ReadFile(mgr, config.transducer.encoder); InitEncoder(buf.data(), buf.size()); } { - auto buf = ReadFile(mgr, config.transducer.decoder_filename); + auto buf = ReadFile(mgr, config.transducer.decoder); InitDecoder(buf.data(), buf.size()); } { - auto buf = ReadFile(mgr, config.transducer.joiner_filename); + auto buf = ReadFile(mgr, config.transducer.joiner); InitJoiner(buf.data(), buf.size()); } }