OpenVoiceOS / OpenVoiceOS/ovos-microphone-plugin-alsa

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

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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 (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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.