Skip to content

Commit

Permalink
Fix building for Android (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored May 31, 2024
1 parent 1e277ae commit a689249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<OnlineTransducerNeMoModel>(
mgr, config.model_config)) {
if (config.decoding_method == "greedy_search") {
Expand Down
6 changes: 3 additions & 3 deletions sherpa-onnx/csrc/online-transducer-nemo-model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit a689249

Please sign in to comment.