Audio Features and Front-ends
Audio features fed to models: mel scale, MFCC, PCEN, SincNet, and more.
Constant-Q Transform (CQT)The constant-Q transform (CQT) is a time-frequency transform that spaces frequency bins logarithmically like a musical scale and varies the window length so that the ratio of center frequency to bandwidth (Q) is the same for every bin. Pitches are evenly spaced and transposition becomes a shift, which makes it well suited to music analysis.
LEAFLEAF is an audio classification frontend that replaces all three stages of a mel filterbank (filtering, pooling, and compression) with learnable layers. Adding only a few hundred parameters, it outperforms the mel filterbank on average across a wide range of tasks, including speech, music, environmental sounds, and animal vocalizations.
Mel ScaleThe mel scale rescales frequency so that pitches people perceive as "equally spaced" are equally spaced on the scale. It resolves low frequencies finely and high frequencies coarsely, and it is used to decide how the filters of mel spectrograms and MFCCs are laid out.
MFCCMFCCs (mel-frequency cepstral coefficients) are a standard feature for speech and speaker recognition. They summarize the rough shape of the spectrum of each short segment of audio into a dozen or so numbers using mel-scale filters, a logarithm, and the discrete cosine transform.
Per-Channel Energy Normalization (PCEN)PCEN (Per-Channel Energy Normalization) is a replacement for log compression that conditions mel filterbank outputs with automatic gain control, dividing by the recent magnitude, followed by root compression. It makes features robust to differences in loudness and distance, improving keyword spotting accuracy for far-field speech and speech in noise.
SincNetSincNet is a model that replaces the first convolution of a CNN operating directly on audio waveforms with sinc-based bandpass filters that learn only their low and high cutoff frequencies. It greatly reduces the number of parameters, speeds up training, and lowers speaker recognition errors.
