The defined (hardcoded) chunk_size is a function of periods # * period_size.
_eg. in our case 4096 (chunk_size) = 4 (periods) * 1024 (periodsize)
So, either make all configurable, or, as i would suggest none of them as it requires too much insight.
But maybe someone with greater knowledge in sound processing should chip in about period size
https://github.com/OpenVoiceOS/ovos-microphone-plugin-alsa/blob/6e0e6a0dae2fe6106c552f5662a647f5bb4dad61/ovos_microphone_plugin_alsa/__init__.py#L27-L30
The defined (hardcoded) chunk_size is a function of periods # * period_size.
_eg. in our case 4096 (chunk_size) = 4 (periods) * 1024 (periodsize)
So, either make all configurable, or, as i would suggest none of them as it requires too much insight. But maybe someone with greater knowledge in sound processing should chip in about period size