diff --git a/whisper_live/client.py b/whisper_live/client.py index 633c1237..018e0904 100644 --- a/whisper_live/client.py +++ b/whisper_live/client.py @@ -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)