Skip to content

fix(rnnoise): constrain audiolab to the supported Graph API - #5865

Open
BSPLAZA wants to merge 2 commits into
pipecat-ai:mainfrom
BSPLAZA:fix/rnnoise-audiolab-compatibility
Open

BSPLAZA wants to merge 2 commits into
pipecat-ai:mainfrom
BSPLAZA:fix/rnnoise-audiolab-compatibility

Conversation

@BSPLAZA

@BSPLAZA BSPLAZA commented Sep 21, 2026

Copy link
Copy Markdown

Please describe the changes in your PR. If it is addressing an issue, please reference that as well.

Fixes #5849.

RNNoiseFilter crashes on the first audio chunk with TypeError: Graph.__init__() got an unexpected keyword argument 'rate'. pyrnnoise 0.4.3 calls Graph(rate=...), but audiolab 0.5.2 renamed that argument to sample_rate.

Cap audiolab<0.5.2 in the rnnoise extra and regenerate the lockfile. Enable the extra in test and coverage CI so the existing RNNoise tests run instead of being skipped.

Validation:

  • macOS / Python 3.12: 3 RNNoise failures before; all 16 RNNoise and SOXR tests pass with the fix.
  • Debian / Python 3.12, using the CI extras: 6,010 passed, 121 skipped. All six RNNoise tests ran.
  • A fresh wheel install resolves audiolab 0.5.1 and processes synthetic audio at 8, 16 and 48 kHz.
uv sync --locked --group dev --extra rnnoise
uv run pytest tests/test_rnnoise_filter.py tests/test_rnnoise_resampling.py tests/test_rnnoise_cancellation.py tests/test_soxr_resamplers.py -q

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RNNoiseFilter: Graph.__init__() got an unexpected keyword argument 'rate' on macOS Python 3.12

1 participant