Speech Representations › Key Parameters

Michael BrenndoerferFebruary 15, 20262 min read
Language AI HandbookAll chapters
Part 51 of 67Speech and Audio
Chapter 393Speech Representations › Key Parameters
Reading section 8 of 11 · Key Parameters · 2 minSection 8 of 11 · 2 min

Book contents

Section 8 of 11 · 2 min read

Speech Representations › Key ParametersOne section · Sections in this chapter8 / 11 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

The key parameters for the speech preprocessing pipeline are summarized in Table preprocessing-params.

Key parameters for speech preprocessing.
ParameterTypical ValueDescription
sr16000 HzSample rate capturing frequencies up to 8 kHz
pre_emphasis0.97High-pass filter coefficient boosting high frequencies
n_fft512FFT points determining frequency resolution (bin width = sr/n_fft)
hop_length160 samples (10 ms)Frame shift controlling temporal step between frames
win_length400 samples (25 ms)Analysis window length affecting frequency resolution
n_mels80Number of mel frequency bins (40-128 typical range)
f_min0 HzLower frequency bound for mel filterbank
f_max8000 HzUpper frequency bound for mel filterbank

Higher sample rates preserve more high-frequency information but increase processing requirements linearly. Values closer to 1.0 for pre-emphasis provide a stronger high-frequency boost. Larger n_fft values provide finer frequency bins but reduce temporal localization. More mel bins provide finer frequency resolution but increase feature dimensionality. These parameters interact: increasing n_fft without increasing win_length amounts to zero-padding, which smooths the spectrum but does not add frequency resolution. Truly improving frequency resolution requires a longer analysis window, which in turn reduces temporal resolution. These constraints are basic and cannot be engineered away; the goal is choosing parameters that best serve the phonetic discrimination task given available compute.