Skip to content

Commit

Permalink
Samples should be an integer, not seconds
Browse files Browse the repository at this point in the history
I believe it's just a typo
  • Loading branch information
skripnik authored Jan 2, 2024
1 parent ac78ddf commit 013d313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper_online.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def chunk_at(self, time):
"""
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

Expand Down

0 comments on commit 013d313

Please sign in to comment.