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
Rename 'res' in line 514 to avoid with naming conflict with line 365
liugz18d80ac2fd2df4
diff --git a/funasr/auto/auto_model.py b/funasr/auto/auto_model.pyindex a82f6ed75..75324dc86 100644--- a/funasr/auto/auto_model.py+++ b/funasr/auto/auto_model.py@@ -511,8 +511,8 @@ class AutoModel:sv_output = postprocess(all_segments, None, labels, spk_embedding.cpu())if self.spk_mode == "vad_segment": # recover sentence_listsentence_list = []- for res, vadsegment in zip(restored_data, vadsegments):- if "timestamp" not in res:+ for rest, vadsegment in zip(restored_data, vadsegments):+ if "timestamp" not in rest:logging.error("Only 'iic/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch' \and 'iic/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch'\@@ -522,8 +522,8 @@ class AutoModel:{"start": vadsegment[0],"end": vadsegment[1],- "sentence": res["text"],- "timestamp": res["timestamp"],+ "sentence": rest["text"],+ "timestamp": rest["timestamp"],})elif self.spk_mode == "punc_segment":