> For the complete documentation index, see [llms.txt](https://www.mlcompendium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.mlcompendium.com/predictive-ml/audio-feature-engineering.md).

# Audio Feature Engineering

A detection or separation model only sees what the features give it, so audio work starts by turning waves into numbers. The page moves from the Fourier transform to a first read on speech feature extraction, then a Learning from Audio series, then spectrograms, and ends on Mel-frequency cepstral coefficients (MFCC).

The same notes are in [Basics](/predictive-ml/audio-basics.md), [Digital Signal Processing (DSP)](/predictive-ml/digital-signal-processing-dsp.md), [Fourier Transform](/predictive-ml/fourier-transform.md), and [SIGNAL PROCESSING NN (FFT, WAVELETS, SHAPELETS)](/deep-learning/other-architectures.md#signal-processing-nn-fft-wavelets-shapelets).

Every audio feature below starts from the Fourier transform. DataMListic's Fourier Transform Formula Explained on [YouTube](https://www.youtube.com/watch?v=7Tk6BAJ3mm8) is the short video on the formula itself.

With the transform in place, [Read this first](https://jonathan-hui.medium.com/speech-recognition-feature-extraction-mfcc-plp-5455f5a69dd9), by Jonathan Hui — the speech recognition feature extraction pipeline end to end: A/D, boost, Mel-frequency cepstral coefficients (MFCC), Perceptual Linear Prediction (PLP), Hanning vs Hamming, window, discrete Fourier transform (DFT), IDFT.

The Learning from Audio series by mlearnere then builds the same features one step at a time. It starts with [Learning from Audio: Wave Forms](https://towardsdatascience.medium.com/learning-from-audio-wave-forms-46fc6f87e016), then stays in the time domain with [Learning from Audio: Time Domain Features](https://towardsdatascience.medium.com/learning-from-audio-time-domain-features-4543f3bda34c), which argues that while deep learning often works in the frequency domain, features extracted from the amplitude of each sample still describe the wave form's properties. It crosses into frequency with [Learning from Audio: Fourier Transformation](https://towardsdatascience.medium.com/learning-from-audio-fourier-transformations-f000124675ee), reaches [Learning from Audio: The Mel Scale, Mel Spectrograms, and Mel Frequency Cepstral Coefficients](https://towardsdatascience.medium.com/learning-from-audio-the-mel-scale-mel-spectrograms-and-mel-frequency-cepstral-coefficients-f5752b6324a8), and ends with [Learning from Audio: Pitch and Chromagrams](https://towardsdatascience.medium.com/learning-from-audio-pitch-and-chromagrams-5158028a505), which goes beyond frequency over time once the spectrogram and MFCCs are understood.

The spectrogram is the feature most audio models actually consume, so it gets its own reading. [Understanding the Mel Spectrogram](https://medium.com/analytics-vidhya/understanding-the-mel-spectrogram-fca2afa2ce53) is the first explanation. [2](https://towardsdatascience.medium.com/getting-to-know-the-mel-spectrogram-31bca3e2d9d0) is Getting to Know the Mel Spectrogram: read this short post if you want to be like Neo and know all about the Mel Spectrogram, or maybe not all, but at least a little. [3](https://medium.com/hacking-media/beginner-guide-to-visualizing-audio-as-a-spectogram-in-python-65dca2ab1e61) is Thomas Christiansen's beginner's guide to visualizing audio as a spectrogram in Python, treating audio as something to see rather than only hear. [4](https://importchris.medium.com/how-to-create-understand-mel-spectrograms-ff7634991056) is Christopher Lewis on how to create and understand Mel-spectrograms, where the horizontal axis is time, the vertical axis is frequency, and color intensity is the amplitude of a frequency at a point in time. Frames of a spectrogram also change over time, and DataMListic's Spectral Features - Deltas and Delta-Deltas Explained, [delta deltas](https://www.youtube.com/watch?v=zxEnuPolylY), covers those first and second differences.

The last step compresses the Mel spectrogram into Mel-frequency cepstral coefficients (MFCC). DataMListic's Mel Frequency Cepstral Coefficients (MFCC) Explained on [YouTube](https://www.youtube.com/watch?v=SJo7vPgRlBQ) is the video for it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.mlcompendium.com/predictive-ml/audio-feature-engineering.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
