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