Skip to content

Commit

Permalink
fix exception on overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronoz committed Dec 31, 2023
1 parent 5de4de4 commit e92ddd2
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 e92ddd2

Please sign in to comment.