Skip to content

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

python runtime

游雁3bc0efcc1442
diff --git a/runtime/python/libtorch/funasr_torch/sensevoice_bin.py b/runtime/python/libtorch/funasr_torch/sensevoice_bin.py
index 0eebd0116..2f66f4e6f 100644
--- a/runtime/python/libtorch/funasr_torch/sensevoice_bin.py
+++ b/runtime/python/libtorch/funasr_torch/sensevoice_bin.py
@@ -112,7 +112,7 @@ class SenseVoiceSmall:
token_int = yseq[mask].tolist()
if tokenizer is not None:
- asr_res.append(tokenizer.decode(token_int))
+ asr_res.append(self.tokenizer.decode(token_int))
else:
asr_res.append(token_int)
return asr_res