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 auto_model.py
liugz18648c03fdbba0
diff --git a/funasr/auto/auto_model.py b/funasr/auto/auto_model.pyindex 4418b6ae7..9f8e4dc13 100644--- a/funasr/auto/auto_model.py+++ b/funasr/auto/auto_model.py@@ -469,10 +469,11 @@ class AutoModel:return_raw_text = kwargs.get("return_raw_text", False)# step.3 compute punc model+ raw_text = Noneif self.punc_model is not None:if not len(result["text"].strip()):if return_raw_text:- result["raw_text"] = ""+ result["raw_text"] = raw_text = ""else:deep_update(self.punc_kwargs, cfg)punc_res = self.inference(@@ -482,9 +483,7 @@ class AutoModel:if return_raw_text:result["raw_text"] = raw_textresult["text"] = punc_res[0]["text"]- else:- raw_text = None-+# speaker embedding cluster after resortedif self.spk_model is not None and kwargs.get("return_spk_res", True):if raw_text is None: