Expand description
build_mel_bank — precompute a triangular mel filterbank into a caller-owned
table. This REPLACES the fake linear-band “log_mel” averaging that lived in
stft_stream.rs: the bank spaces filters on the perceptual HTK mel scale and
places true triangular responses (peak 1.0 at each centre), overlapping into
their neighbours — the standard Slaney/HTK filterbank geometry.
Build once (cold path); apply per-frame allocation-free via
super::mel_bands::mel_bands.
Functions§
- build_
mel_ bank - Build a triangular mel filterbank as a row-major
n_mel × n_fft_binstable of weights, written intoweights_out.