models/nemoAsr/src/nemo_asr_features library

Constants

nemoAsrSampleRate → const int

Functions

nemoAsrFrames(int samples) → int
The number of feature frames for samples samples: one per 10 ms hop, plus one.
nemoAsrLogMel(Float32List samples, int melBins) → Float32List
Computes the log-mel features of NeMo's AudioToMelSpectrogramPreprocessor with the settings of the FastConformer and Parakeet models: preemphasis 0.97, a 512-point STFT of a symmetric 400-sample Hann window with a hop of 160 and zero padding at both ends, a power spectrum, melBins Slaney mel filters from 0 to 8 kHz, log(x + 2^-24), and per-feature normalization (mean 0, unbiased standard deviation 1).