Skip to content

Conversation

@chicogong
Copy link
Owner

Summary

Fix Windows wheel build failure caused by RNNoise being disabled but Python bindings still trying to link it.

Changes

  1. bindings.cpp: Add #ifdef ENABLE_RNNOISE guards around RNNoise Python bindings
  2. whisper_processor.h: Fix WHISPER_MODEL_PATH undefined error when Whisper is disabled

Root Cause

On Windows, RNNoise is automatically disabled (due to VLA incompatibility with MSVC), but the Python bindings were unconditionally including and linking RNNoise classes, causing linker errors.

Test Plan

  • Local build passes with RNNoise enabled (Linux)
  • All 114 unit tests pass
  • Windows wheel builds should now succeed

- Add #ifdef ENABLE_RNNOISE guards around RNNoise Python bindings
- Fix WHISPER_MODEL_PATH undefined when Whisper is disabled
- Allows Windows builds to succeed without RNNoise

This fixes the linker error when building Python wheels on Windows
where RNNoise is automatically disabled due to VLA incompatibility.
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chicogong chicogong merged commit e0a1ca2 into master Dec 29, 2025
11 of 12 checks passed
@chicogong chicogong deleted the fix/windows-rnnoise-bindings branch December 29, 2025 10:41
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.

2 participants