increase chunk size from 64ms to 256ms

This commit is contained in:
makaveli10
2024-01-19 12:02:05 +00:00
parent 867ff522ae
commit f25ff1785a
+1 -1
View File
@@ -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