From d5cb92f2a7c4d96e7e2ebddfc2f5ec0f47a3b4a5 Mon Sep 17 00:00:00 2001 From: lovemefan Date: Wed, 14 Feb 2024 22:59:03 +0800 Subject: [PATCH] clear asr online cache when asr online exist --- paraformer/runtime/python/asr_all_in_one.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paraformer/runtime/python/asr_all_in_one.py b/paraformer/runtime/python/asr_all_in_one.py index 6a55da4..40ff7eb 100644 --- a/paraformer/runtime/python/asr_all_in_one.py +++ b/paraformer/runtime/python/asr_all_in_one.py @@ -100,7 +100,7 @@ def reset_asr(self): self.start_frame = 0 self.end_frame = 0 self.vad_pre_idx = 0 - if getattr(self, 'asr_online', None): + if getattr(self, "asr_online", None): self.asr_online.reset_cache() self.vad.in_cache = None self.vad.vad.all_reset_detection()