Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
update funasr-onnx-2pass.cpp
雾聪71f95f256bfa
diff --git a/runtime/onnxruntime/bin/funasr-onnx-2pass-rtf.cpp b/runtime/onnxruntime/bin/funasr-onnx-2pass-rtf.cppindex 5bf8f18ae..c55c888d4 100644--- a/runtime/onnxruntime/bin/funasr-onnx-2pass-rtf.cpp+++ b/runtime/onnxruntime/bin/funasr-onnx-2pass-rtf.cpp@@ -279,7 +279,7 @@ int main(int argc, char** argv)// hotword fileunordered_map<string, int> hws_map;std::string nn_hotwords_ = "";- std::string hotword_path = model_path.at(HOTWORD);+ std::string hotword_path = hotword.getValue();LOG(INFO) << "hotword path: " << hotword_path;funasr::ExtractHws(hotword_path, hws_map, nn_hotwords_);diff --git a/runtime/onnxruntime/bin/funasr-onnx-2pass.cpp b/runtime/onnxruntime/bin/funasr-onnx-2pass.cppindex d0154999d..5af0b414a 100644--- a/runtime/onnxruntime/bin/funasr-onnx-2pass.cpp+++ b/runtime/onnxruntime/bin/funasr-onnx-2pass.cpp@@ -113,7 +113,7 @@ int main(int argc, char** argv)// hotword fileunordered_map<string, int> hws_map;std::string nn_hotwords_ = "";- std::string hotword_path = model_path.at(HOTWORD);+ std::string hotword_path = hotword.getValue();LOG(INFO) << "hotword path: " << hotword_path;funasr::ExtractHws(hotword_path, hws_map, nn_hotwords_);