OpenVoiceOS / OpenVoiceOS/ovos-microphone-plugin-alsa
`period_size` as a config value - too much insight needed
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
The defined (hardcoded) chunk_size is a function of periods # * period_size.
eg. in our case 4096 (chunk_size) = 4 (periods) * 1024 (period_size)
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ovos_microphone_plugin_alsa/init.py at lines 27-30 and read the linked pyalsaaudio reference around alsaaudio.c line 426 to understand how periods and period_size determine chunk_size. Resolve whether these values should be configurable or remain fixed, ideally with input from someone familiar with sound processing. Done means the chosen configuration behavior is implemented and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100