Skip to content

Commit

Permalink
clear asr online cache when asr online exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemefan committed Feb 14, 2024
1 parent 1745ca0 commit d5cb92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paraformer/runtime/python/asr_all_in_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d5cb92f

Please sign in to comment.