OpenVoiceOS / ovos-microphone-plugin-alsa

Apache License 2.0
0 stars 1 forks source link

`period_size` as a config value - too much insight needed #6

Open emphasize opened 11 months ago

emphasize commented 11 months ago

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

ChanceNCounter commented 11 months ago

http://larsimmisch.github.io/pyalsaaudio/terminology.html#term-period

On a 5” phone, but this is the relevant information