mirror of
https://github.com/QuentinFuxa/WhisperLiveKit.git
synced 2026-03-07 22:33:36 +00:00
Samples should be an integer, not seconds
I believe it's just a typo
This commit is contained in:
@@ -355,7 +355,7 @@ class OnlineASRProcessor:
|
||||
"""
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user