nx_audio_enhance.nx
buildroot/runtime/nx_audio_enhance.nx
about
nx_audio_enhance.nx -- sovereign AUDIO ENHANCEMENT for the call mic path: AGC (auto gain control -> boosts a
quiet/bad mic to a healthy level, with a hard limiter so it never clips) + an adaptive VAD NOISE GATE (estimates
the noise floor, attenuates frames that are just background hiss between speech). This is the "top-of-the-line
audio even with a bad mic" path, pure Nishi -- the browser only ferries raw PCM; ALL DSP is here. Operates on
signed PCM samples in an i64 array (-32767..32767). Spectral subtraction via nx_fft = the next rung (in-speech
denoise); this rung delivers the two biggest bad-mic wins (level + background gating). license_tier: ORIGINAL
dependencies 0 imports · 1 importers
imports: none
imported by: nx_audio_enhance_gate.nx
structs
| none |
consts
| 8 | const AE_FULL: i64 = 32767 |
functions
| 11 | func ae_isqrt(v: i64) -> i64 called by 1: ae_rms |
| 20 | func ae_rms(s: *i64, n: i64) -> i64 |
| 28 | func ae_frame_energy(s: *i64, base: i64, FL: i64) -> i64 called by 1: ae_noise_gate |
| 36 | func ae_agc(s: *i64, n: i64, target_rms: i64, max_gain100: i64) -> i64 |
| 55 | func ae_noise_gate(s: *i64, n: i64, FL: i64, div: i64, att100: i64) -> i64 |
| 77 | func ae_enhance(s: *i64, n: i64, FL: i64, target_rms: i64, max_gain100: i64) -> i64 |