Add DFNR (DeepFilterNet3) AI noise reduction#977
Merged
Conversation
2 tasks
d1b85f2 to
9240dc0
Compare
03583a6 to
ae058b9
Compare
Integrate DeepFilterNet3 as a fifth client-side noise reduction option alongside NR2, RN2, NR4, and BNR. DeepFilterNet3 offers higher speech fidelity than RNNoise in high-noise HF environments, runs CPU-only with 10ms latency at 48kHz. Core: - DeepFilterFilter class (48kHz mono, accumulator-based frame processing, [-1,1] float normalization, configurable attenuation limit and post-filter) - AudioEngine: 5-way mutual exclusion, feedAudioData processing branch, thread-safe parameter setters, RADE/digital mode auto-disable - Bundled libdf C API header + DeepFilterNet3 ONNX model (7.7MB) UI: - DFNR button in VfoWidget DSP tab and SpectrumOverlayMenu panel - Right-click parameter popup (attenuation limit 0-100dB, post-filter beta) - DFNR tab in AetherDSP Settings dialog with tooltips - NR cycle keyboard shortcut extended: Off → NR → NR2 → NR4 → DFNR → Off - MIDI controller mapping (toggle + attenuation) Build: - setup-deepfilter.sh/ps1 download pre-built libraries from GitHub Release (tagged dfnr-libs), falling back to Rust source build if unavailable - CMakeLists.txt: HAVE_DFNR conditional, platform-specific link deps - CI workflows simplified: no Rust toolchain needed, ~150s savings per workflow - Dockerfile: add libssl-dev for future Rust needs Settings: ClientDfnrEnabled, DfnrAttenLimit, DfnrPostFilterBeta persisted via AppSettings. Band stack save/restore included. Resolves aethersdr#970 JJ Boyd ~KG4VCF 🤖 Co-Authored with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ae058b9 to
622d21d
Compare
4 tasks
aethersdr-agent Bot
pushed a commit
that referenced
this pull request
Apr 10, 2026
Integrate DeepFilterNet3 as a fifth client-side noise reduction option alongside NR2, RN2, NR4, and BNR. DeepFilterNet3 offers higher speech fidelity than RNNoise in high-noise HF environments, runs CPU-only with 10ms latency at 48kHz. Core: - DeepFilterFilter class (48kHz mono, accumulator-based frame processing, [-1,1] float normalization, configurable attenuation limit and post-filter) - AudioEngine: 5-way mutual exclusion, feedAudioData processing branch, thread-safe parameter setters, RADE/digital mode auto-disable - Bundled libdf C API header + DeepFilterNet3 ONNX model (7.7MB) UI: - DFNR button in VfoWidget DSP tab and SpectrumOverlayMenu panel - Right-click parameter popup (attenuation limit 0-100dB, post-filter beta) - DFNR tab in AetherDSP Settings dialog with tooltips - NR cycle keyboard shortcut extended: Off → NR → NR2 → NR4 → DFNR → Off - MIDI controller mapping (toggle + attenuation) Build: - setup-deepfilter.sh/ps1 download pre-built libraries from GitHub Release (tagged dfnr-libs), falling back to Rust source build if unavailable - CMakeLists.txt: HAVE_DFNR conditional, platform-specific link deps - CI workflows simplified: no Rust toolchain needed, ~150s savings per workflow - Dockerfile: add libssl-dev for future Rust needs Settings: ClientDfnrEnabled, DfnrAttenLimit, DfnrPostFilterBeta persisted via AppSettings. Band stack save/restore included. Resolves #970 JJ Boyd ~KG4VCF 🤖 Co-Authored with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Integrates DeepFilterNet3 as a fifth client-side noise reduction option (
DFNR), addressing the proposal in #970.DeepFilterNet3 is an AI-powered speech enhancement model that offers significantly higher fidelity than RNNoise (RN2) in high-noise HF environments. It runs CPU-only with ~10ms latency at 48kHz — no GPU required.
What's included
Core DSP:
DeepFilterFilterclass mirroring the RNNoiseFilter pattern (48kHz mono, 480-sample frames, accumulator-based I/O)DeepFilterNet3_onnx.tar.gz, 7.7MB) — bundled in build outputUI (follows NR4 pattern exactly):
Build system:
setup-deepfilter.sh(Linux/macOS) andsetup-deepfilter.ps1(Windows) — build libdf from Rust source viacargo-cHAVE_DFNRconditional compilation, platform-specific link deps, DLL + model post-build copyCI (all platforms):
AppDir/usr/bin/), macOS app bundle (Contents/MacOS/), and Windows deploy directorySettings persistence:
ClientDfnrEnabled,DfnrAttenLimit,DfnrPostFilterBetavia AppSettingsComparison with existing NR methods
Architecture notes
extern "C"). The setup scripts build it from source usingcargo-c, producing:libdeepfilter.a) linked directlydeepfilter.dll) — Rust static libs have CRT init issues with MinGWDeepFilterNet3_onnx.tar.gz) is loaded at runtime viaQCoreApplication::applicationDirPath()d375b2d8for reproducible buildsTest plan
-DENABLE_DFNR=OFFcompiles clean, no regressionsJJ Boyd ~KG4VCF
🤖 Co-Authored with Claude Code