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
本地模型加载 (#2453)
yijinsheng9afa40520fc6
diff --git a/funasr/download/download_model_from_hub.py b/funasr/download/download_model_from_hub.pyindex 77593a50a..c826b5ffc 100644--- a/funasr/download/download_model_from_hub.py+++ b/funasr/download/download_model_from_hub.py@@ -43,7 +43,7 @@ def download_from_ms(**kwargs):print(f"Download: {model_or_path} failed!: {e}")kwargs["model_path"] = model_or_path if "model_path" not in kwargs else kwargs["model_path"]-+ model_or_path = kwargs["model_path"]if os.path.exists(os.path.join(model_or_path, "configuration.json")):with open(os.path.join(model_or_path, "configuration.json"), "r", encoding="utf-8") as f:conf_json = json.load(f)