Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

Fix the variable name (#2328)

majic3123e7ddebccd3
diff --git a/runtime/python/onnxruntime/funasr_onnx/sensevoice_bin.py b/runtime/python/onnxruntime/funasr_onnx/sensevoice_bin.py
index bf325c84d..9cfe46f81 100644
--- a/runtime/python/onnxruntime/funasr_onnx/sensevoice_bin.py
+++ b/runtime/python/onnxruntime/funasr_onnx/sensevoice_bin.py
@@ -92,7 +92,7 @@ class SenseVoiceSmall:
return self.lid_dict[lid]
else:
raise ValueError(
- f"The language {l} is not in {list(self.lid_dict.keys())}"
+ f"The language {lid} is not in {list(self.lid_dict.keys())}"
)
def _get_tnid(self, tnid):