Phonetics and Speech Feature Extraction
Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15
25 cards in “15.5 Log mel spectrum” · whole deck
15.5 Log mel spectrum
- What is an acoustic feature vector?A vector representing the information in a small time window of the signal; speech processing often first converts the waveform into a sequence of these.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What are the two common starting points for speech recognition systems?The raw waveform (processed by convolutional networks) or a higher-level representation such as the log mel spectrum.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Can you mix sampling rates in ASR training and testing?No. E.g. if testing on 8 kHz Switchboard, downsample training data to 8 kHz; if any training corpus is telephone speech, downsample all wideband corpora to 8 kHz.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Do higher sampling rates help ASR accuracy?Yes, higher sampling rates produce higher ASR accuracy.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What does x[n] denote?The sample at time index n in the digitized, quantized waveform.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Stationary vs non-stationary signal?Stationary: statistical properties constant within a region. Speech is non-stationary overall, but roughly stationary within a small window.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is a window in speech processing?A function that is non-zero inside a region and zero elsewhere; run across the signal and multiplied by it to produce a windowed waveform.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is a frame?The speech extracted from each window.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What three parameters characterize windowing?Window (frame) size in ms, frame stride (shift/offset) between windows, and window shape.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Typical window size and stride?25 ms windows with a 10 ms stride.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Windowing equation?\(y[n] = w[n]\,s[n]\)
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is the problem with a rectangular window?It abruptly cuts off the signal at its boundaries, creating discontinuities that cause problems in Fourier analysis.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What does the Hamming window do?Shrinks signal values toward zero at the window boundaries, avoiding discontinuities.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Write the rectangular and Hamming window equations (window of length L).Rectangular: \(w[n]=1\) for \(0\le n\le L-1\), else 0.
Hamming: \(w[n]=0.54-0.46\cos\left(\frac{2\pi n}{L}\right)\) for \(0\le n\le L-1\), else 0.- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is the DFT? What are its input and output?Discrete Fourier transform: extracts spectral information for discrete frequency bands from a sampled signal. Input: windowed signal x[n]…x[m]. Output: for each of N bands, a complex number X[k] giving magnitude and phase.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- State Euler's formula.\(e^{j\theta} = \cos\theta + j\sin\theta\), with j the imaginary unit.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Write the DFT definition.\(X[k] = \sum_{n=0}^{N-1} x[n]\, e^{-j\frac{2\pi}{N}kn}\)
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is the FFT and its limitation?Fast Fourier transform: a very efficient algorithm for computing the DFT; only works for N that are powers of 2.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Why collect energies on the mel scale instead of equally across frequency?Human hearing is less sensitive at high frequencies. Low-frequency info (formants) is crucial for vowels/nasals; high-frequency info (stop bursts, fricative noise) is less crucial. Modeling this improves ASR.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Write the mel formula used for the filter bank.\(\mathrm{mel}(f) = 1127\ln\left(1+\frac{f}{700}\right)\)
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is a mel filter bank?A bank of triangular filters spaced logarithmically along the mel scale (fine resolution at low, coarse at high frequencies), multiplied by the spectrum to get a mel spectrum (Davis & Mermelstein, 1980).
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Why take the log of the mel spectrum values? (2 reasons)(1) Human response to signal level is logarithmic: less sensitive to small differences at high amplitudes. (2) Makes features less sensitive to input power variations, e.g. the mouth moving relative to the microphone.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- What is a channel in a filterbank output? Typical number?Each scalar output of one filter: the log energy of one mel-spaced frequency band. A frame gives a vector of, say, 80 or 128 channels.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- How are log mel features commonly normalized before a neural network?Scaled to between −1 and 1 with zero mean across the entire pretraining dataset.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
- Order the log mel spectrum pipeline.Sample & quantize → window (e.g. 25 ms Hamming, 10 ms stride) → DFT/FFT → mel filter bank → log → normalize.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 15, §15.5
Source
- Daniel Jurafsky and James H. Martin. Speech and Language Processing. 3rd edition (draft). https://web.stanford.edu/~jurafsky/slp3/