

Samples should be an integer, not seconds
I believe it's just a typo
@013d3130b304dc887060e83e242a795cb6fa4281
--- whisper_online.py
+++ whisper_online.py
... | ... | @@ -355,7 +355,7 @@ |
355 | 355 |
""" |
356 | 356 |
self.transcript_buffer.pop_commited(time) |
357 | 357 |
cut_seconds = time - self.buffer_time_offset |
358 |
- self.audio_buffer = self.audio_buffer[int(cut_seconds)*self.SAMPLING_RATE:] |
|
358 |
+ self.audio_buffer = self.audio_buffer[int(cut_seconds*self.SAMPLING_RATE):] |
|
359 | 359 |
self.buffer_time_offset = time |
360 | 360 |
self.last_chunked_at = time |
361 | 361 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?