Aleksei Scripnic 2024-01-02
Samples should be an integer, not seconds
I believe it's just a typo
@013d3130b304dc887060e83e242a795cb6fa4281
whisper_online.py
--- whisper_online.py
+++ whisper_online.py
@@ -355,7 +355,7 @@
         """
         self.transcript_buffer.pop_commited(time)
         cut_seconds = time - self.buffer_time_offset
-        self.audio_buffer = self.audio_buffer[int(cut_seconds)*self.SAMPLING_RATE:]
+        self.audio_buffer = self.audio_buffer[int(cut_seconds*self.SAMPLING_RATE):]
         self.buffer_time_offset = time
         self.last_chunked_at = time
 
Add a comment
List