diff --git a/runtime/onnxruntime/src/paraformer-online.cpp b/runtime/onnxruntime/src/paraformer-online.cpp index ed7a35ae3..3b629c59a 100644 --- a/runtime/onnxruntime/src/paraformer-online.cpp +++ b/runtime/onnxruntime/src/paraformer-online.cpp @@ -469,7 +469,7 @@ string ParaformerOnline::ForwardChunk(std::vector> &chunk_fea return result; } -string ParaformerOnline::Forward(float* din, int len, bool input_finished, const std::vector> &hw_emb) +string ParaformerOnline::Forward(float* din, int len, bool input_finished, const std::vector> &hw_emb, void* wfst_decoder) { std::vector> wav_feats; std::vector waves(din, din+len); diff --git a/runtime/onnxruntime/src/paraformer-online.h b/runtime/onnxruntime/src/paraformer-online.h index 932785c56..138c77cd7 100644 --- a/runtime/onnxruntime/src/paraformer-online.h +++ b/runtime/onnxruntime/src/paraformer-online.h @@ -109,7 +109,7 @@ namespace funasr { void AddOverlapChunk(std::vector> &wav_feats, bool input_finished); string ForwardChunk(std::vector> &wav_feats, bool input_finished); - string Forward(float* din, int len, bool input_finished, const std::vector> &hw_emb={{0.0}}); + string Forward(float* din, int len, bool input_finished, const std::vector> &hw_emb={{0.0}}, void* wfst_decoder=nullptr); string Rescoring(); // 2pass std::string online_res;