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 1 imports · 1 importers
imports: nx_vecmath.nx
imported by: nx_audio_enhance_gate.nx
structs
| none |
consts
| 9 | const AE_FULL: i64 = 32767 |
functions
| 12 | func ae_isqrt(v: i64) -> i64 { return vm_isqrt(v) } |
| 14 | func ae_rms(s: *i64, n: i64) -> i64 |
| 22 | func ae_frame_energy(s: *i64, base: i64, FL: i64) -> i64 called by 1: ae_noise_gate |
| 30 | func ae_agc(s: *i64, n: i64, target_rms: i64, max_gain100: i64) -> i64 |
| 49 | func ae_noise_gate(s: *i64, n: i64, FL: i64, div: i64, att100: i64) -> i64 |
| 71 | func ae_enhance(s: *i64, n: i64, FL: i64, target_rms: i64, max_gain100: i64) -> i64 |