From f25ff1785a3da8de371d677df24e87c448294c22 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Fri, 19 Jan 2024 12:02:05 +0000 Subject: [PATCH] increase chunk size from 64ms to 256ms --- whisper_live/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper_live/client.py b/whisper_live/client.py index 018e090..b73a51f 100644 --- a/whisper_live/client.py +++ b/whisper_live/client.py @@ -66,7 +66,7 @@ class Client: lang (str, optional): The selected language for transcription when multilingual is disabled. Default is None. translate (bool, optional): Specifies if the task is translation. Default is False. """ - self.chunk = 1024 + self.chunk = 4096 self.format = pyaudio.paInt16 self.channels = 1 self.rate = 16000