Samples should be an integer, not seconds
I believe it's just a typo
This commit is contained in:
parent
aa51e39de4
commit
234ac8f5e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue