LOGGER = logging.getLogger("AsyncProcess")
-DEFAULT_CHUNKSIZE = 64000
+DEFAULT_CHUNKSIZE = 176400 # 1 second of pcm 44100/16
DEFAULT_TIMEOUT = 120
args,
stdin=asyncio.subprocess.PIPE if self._enable_write else None,
stdout=asyncio.subprocess.PIPE,
- limit=DEFAULT_CHUNKSIZE,
+ limit=DEFAULT_CHUNKSIZE * 10,
close_fds=True,
)
else:
*args,
stdin=asyncio.subprocess.PIPE if self._enable_write else None,
stdout=asyncio.subprocess.PIPE,
- limit=DEFAULT_CHUNKSIZE,
+ limit=DEFAULT_CHUNKSIZE * 10,
close_fds=True,
)
return self