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 comdefine
雾聪423c29d7f9a6
diff --git a/runtime/onnxruntime/include/com-define.h b/runtime/onnxruntime/include/com-define.hindex 70e1495ea..7160a0e47 100644--- a/runtime/onnxruntime/include/com-define.h+++ b/runtime/onnxruntime/include/com-define.h@@ -51,8 +51,10 @@ namespace funasr {#define QUANT_MODEL_NAME "model_quant.onnx"// gpu models#define INFER_GPU "gpu"-#define TORCH_MODEL_NAME "model.gpu.torchscripts"-#define TORCH_QUANT_MODEL_NAME "model.blade.fp16.pt"+#define TORCH_MODEL_NAME "model.torchscripts"+#define TORCH_QUANT_MODEL_NAME "model_quant.torchscripts"+#define BLADE_MODEL_NAME "model.blade.fp16.pt"+#define BLADEDISC "bladedisc"#define VAD_CMVN_NAME "vad.mvn"#define VAD_CONFIG_NAME "vad.yaml"diff --git a/runtime/onnxruntime/src/offline-stream.cpp b/runtime/onnxruntime/src/offline-stream.cppindex 9a3b07ae0..69befc637 100644--- a/runtime/onnxruntime/src/offline-stream.cpp+++ b/runtime/onnxruntime/src/offline-stream.cpp@@ -70,6 +70,9 @@ OfflineStream::OfflineStream(std::map<std::string, std::string>& model_path, intif(model_path.find(QUANTIZE) != model_path.end() && model_path.at(QUANTIZE) == "true"){am_model_path = PathAppend(model_path.at(MODEL_DIR), TORCH_QUANT_MODEL_NAME);}+ if(model_path.find(BLADEDISC) != model_path.end() && model_path.at(BLADEDISC) == "true"){+ am_model_path = PathAppend(model_path.at(MODEL_DIR), BLADE_MODEL_NAME);+ }}}am_cmvn_path = PathAppend(model_path.at(MODEL_DIR), AM_CMVN_NAME);