Skip to main content

Module mel_bank

Module mel_bank 

Source
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_bins table of weights, written into weights_out.