Explorar el Código

Merge branch 'master' of https://github.com/KoljaB/RealtimeSTT

KoljaB hace 6 meses
padre
commit
1a4358d582
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      RealtimeSTT/audio_recorder.py

+ 4 - 0
RealtimeSTT/audio_recorder.py

@@ -2282,6 +2282,10 @@ class AudioToTextRecorder:
         """
         self.audio_buffer.clear()
         try:
+            self.text_storage = []
+            self.realtime_stabilized_text = ""
+            self.realtime_stabilized_safetext = ""
+            self.frames = []
             while True:
                 self.audio_queue.get_nowait()
         except: