> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/misc/steganography/spectrograms.md).

# Spectrograms

A spectrogram is a visual representation of the [spectrum](https://en.wikipedia.org/wiki/Spectral_density) of [frequencies](https://en.wikipedia.org/wiki/Frequencies) of a signal as it varies with time. When applied to an [audio signal](https://en.wikipedia.org/wiki/Audio_signal), spectrograms are sometimes called sonographs, voiceprints, or voicegrams. When the data are represented in a 3D plot they may be called [*waterfall displays*](https://en.wikipedia.org/wiki/Waterfall_display).

## Audacity

1. Open the audio file with `File` -> `Open...`
2. Select the three dots next to the Up-arrow to the right of the filename
3. Select Spectrogram

<figure><img src="https://875884995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT1i4pPS3S6n10T4qIXZw%2Fuploads%2Fjy91PxaKuPeCywFkQhX2%2Fimage.png?alt=media&amp;token=a100ef9b-9fe6-48fe-8652-173c245ab96d" alt=""><figcaption><p>Changing view to Spectrogram in Audacity</p></figcaption></figure>

The Spetrogram view will look something like this

<figure><img src="https://875884995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT1i4pPS3S6n10T4qIXZw%2Fuploads%2F1d5RoxZ6VX21p6Nh8Ohx%2Fimage.png?alt=media&amp;token=cccfed4b-619a-43eb-9653-8842b9e1d6f3" alt=""><figcaption><p>Spectrogram view in Audacity</p></figcaption></figure>

## Sonic Visualiser

1. Open the audio file with `File` -> `Open...`
2. Select `Layer` and `Add Spectrogram`
3. Zoom in/out with the `Up/Down` arrow keys, or the mouse wheel
4. Move the spectrogram with the `Left`/`Right` arrow keys

<figure><img src="https://875884995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT1i4pPS3S6n10T4qIXZw%2Fuploads%2FCFOx3DYhQsREVIKRKQuM%2Fimage.png?alt=media&amp;token=1da7bf7b-d482-48b6-9e7c-fa33d1bb4d45" alt=""><figcaption><p>Example flag in Spnic Visualiser</p></figcaption></figure>

## Solve with online tools

Spectrum Analyzer - Academo: <https://academo.org/demos/spectrum-analyzer/>

Spectral Analysis - dcode.fr: <https://www.dcode.fr/spectral-analysis>

## Resources

Audacity - Homepage: <https://www.audacityteam.org/>

Sonic Visualiser - Homepage: <https://www.sonicvisualiser.org/>

Spectrogram - Wikipedia: <https://en.wikipedia.org/wiki/Spectrogram>
