From 5b32dc413066eb1218bdc8d1c38ec38a194f906f Mon Sep 17 00:00:00 2001 From: John Sichi Date: Sun, 10 Mar 2024 21:02:50 +0900 Subject: [PATCH] Fix default value for multicast. --- whisper_live/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/whisper_live/client.py b/whisper_live/client.py index 7300569..320342b 100644 --- a/whisper_live/client.py +++ b/whisper_live/client.py @@ -111,7 +111,7 @@ class Client: (not self.transcript or float(seg['start']) >= float(self.transcript[-1]['end']))): self.transcript.append(seg) - # update last received segment and last valid responsne time + # update last received segment and last valid response time if self.last_received_segment is None or self.last_received_segment != segments[-1]["text"]: self.last_response_received = time.time() self.last_received_segment = segments[-1]["text"] @@ -330,13 +330,13 @@ class TranscriptionTeeClient: for client in self.clients: client.write_srt_file(client.srt_file_path) - def multicast_packet(self, packet, unconditional=True): + def multicast_packet(self, packet, unconditional=False): """ Sends an identical packet via all clients. Args: packet (bytes): The audio data packet in bytes to be sent. - unconditional (bool, optional): If true, send regardless of whether clients are recording. Default is True. + unconditional (bool, optional): If true, send regardless of whether clients are recording. Default is False. """ for client in self.clients: if (unconditional or client.recording):