SpecAugment is a data augmentation method that trains a speech recognition model by directly deforming its input log mel spectrogram (a 2D feature with time on the horizontal axis and frequency on the vertical axis) as if it were an image. It was proposed by Park et al. at Google Brain in 2019 and presented at Interspeech 2019.
It uses only three kinds of deformation.
- Time warping: Locally stretches and compresses the spectrogram along the time axis.
- Frequency masking: Masks several consecutive frequency channels (a horizontal band).
- Time masking: Masks several consecutive time steps (a vertical band).
The idea of masking comes from Cutout, which masks part of an image. Because it acts on the features right before they enter the model rather than on the audio waveform, it is cheap to compute and needs no additional data. It can therefore be applied on the fly (online) during training. The target transcript is left unchanged.
As an analogy, it is like practicing to understand speech even when part of it is drowned out by noise, sounds at certain pitches are hard to hear, or the speaker talks a little fast.
The paper showed that with this simple method alone, an end-to-end speech recognition model (Listen, Attend and Spell) outperforms carefully engineered conventional HMM hybrid systems and achieves the best error rates on LibriSpeech and Switchboard.

