Speech / Representation
verifiedSpectrogram
A waveform is tens of thousands of numbers a second and almost none of them mean anything alone. Chop the signal into short overlapping windows, ask each window which frequencies it holds, and stack the answers left to right. Time runs across, pitch runs up, and speech becomes something you can look at. Nearly every speech system starts here rather than at the raw samples.
The short-time Fourier transform: window the signal — 25 ms of Hann is the usual — take the FFT, keep the magnitudes, hop forward 10 ms and repeat. Window length is the one real decision and it is a trade nobody escapes: a long window resolves frequency and smears time, a short one does the reverse. Most pipelines then warp the frequency axis to the mel scale and take a log, which spends resolution where hearing is sharp and compresses the rest.
A window of N samples at rate sr gives N/2 + 1 bins spaced Δf = sr/N apart, one frame every H samples. Frequency and time resolution are reciprocal — Δf · Δt = 1 — so halving one doubles the other, always. The magnitudes |X sub t,f | are kept and the phase is thrown away, which is why turning a spectrogram back into audio needs Griffin–Lim or a learned vocoder rather than an inverse FFT.
16 values. The left group decays steeply; the right group is 28% of the way to flat, and reads flatter than the left.
One frame's energy across frequency, at this node's analysis window and at a shorter one. Drag the time resolution up to watch the frequency detail smear toward its own average — sharpening one axis is exactly what blunts the other.
Reviewed by opendroid · 2026-08-18
- arXiv:1512.02595 — Deep Speech 2: End-to-End Speech Recognition in English and Mandarin
- arXiv:1904.08779 — SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition
Origin · not linkable
- Griffin & Lim 1984 — Signal Estimation from Modified Short-Time Fourier Transform · IEEE Transactions on Acoustics, Speech, and Signal Processing 32(2) · doi:10.1109/TASSP.1984.1164317