Skip to content

Commit

Permalink
Merge pull request #83 from Chronoz/fix_exception_on_overflow
Browse files Browse the repository at this point in the history
fix exception on overflow
  • Loading branch information
makaveli10 authored Jan 2, 2024
2 parents 7c0b32b + e92ddd2 commit e30286c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper_live/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def record(self, out_file="output_recording.wav"):
for _ in range(0, int(self.rate / self.chunk * self.record_seconds)):
if not self.recording:
break
data = self.stream.read(self.chunk)
data = self.stream.read(self.chunk, exception_on_overflow = False)
self.frames += data

audio_array = Client.bytes_to_float_array(data)
Expand Down

0 comments on commit e30286c

Please sign in to comment.