Deepwatch

Keyboard shortcuts

Space or k
Play or pause
j and l
Back or forward 10 seconds
Left and right arrows
Back or forward 5 seconds
f
Fullscreen
m
Mute or unmute
Shift and < or >
Slower or faster
n
Next lecture
?
Show or hide this list

Coding Adventure: Analyzing Audio

Sebastian Lague, 21 min, 361.1K views, Jan 6, 2026

Chapters

Show description

Let's have some fun messing about with sound and the Short-Time Fourier Transform! Support my work (and get early access to new videos and source code) on Patreon: https://www.patreon.com/SebastianLague Project files: https://github.com/SebLague/Audio-Experiments This is a follow-up to my previous audio-based episode, which you can watch over here: https://www.youtube.com/watch?v=iA6wRgwl7k0 Music credits: https://raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/stft.txt Chapters: 00:00 Intro 02:17 The Short-Time Fourier Transform 04:47 Time and Frequency Resolution 08:14 Single Frequency Experiment 10:25 Creating a Spectrogram 11:48 Hann Window 14:43 Hop and Segment Size 15:57 Spectrogram to Sound 17:05 Painting Sound 20:04 Secret Messages 20:44 Outro