code wiki / (root) / nx_denoise_spectral.nx

nx_denoise_spectral.nx

buildroot/runtime/nx_denoise_spectral.nx

1872 B35 linesdepth 4pulls 4 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_denoise_spectral.nx -- sovereign SPECTRAL-SUBTRACTION denoise (the RNNoise-class direction: remove broadband noise DURING speech, not just between -- the gap vs Discord's Krisp). FFT the frame, attenuate frequency bins whose power sits below the noise floor (a fraction of the spectral peak), inverse-FFT back. Pure Nishi DSP (composes nx_fft); the browser only ferries raw PCM. Research: RNNoise (Valin, hybrid DSP+GRU band gains), DeepFilterNet. (This rung = the DSP spectral gate; the learned band-gain GRU is a later rung.) license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_fft.nx nx_denoise_spectral.nx nx_denoise_spectral_gate.nx

imports: nx_fft.nx

imported by: nx_denoise_spectral_gate.nx

structs

none

consts

none

functions

10func ds_noise_floor(re: *i64, im: *i64, n: i64, margin_q8: i64) -> i64
21func ds_spectral_gate(re: *i64, im: *i64, n: i64, floor_power: i64, att_q8: i64) -> i64