CNN Audio Visualizer
(2025)
Upload any WAV file and see what a convolutional network makes of it: the top three predictions with their confidence, the mel spectrogram the model actually looks at, the waveform, and the feature maps of every convolutional layer, from the first layer down to the 4 by 14 grid the classifier decides on.
The model is a ResNet-style CNN written from scratch in PyTorch: a 7 by 7 stem, then residual blocks in a 3, 4, 6, 3 layout, classifying 50 everyday sounds from the ESC-50 dataset. Audio is resampled to 44.1 kHz and turned into a 128-band mel spectrogram; training uses SpecAugment-style frequency and time masking, mixup, label smoothing, AdamW and a one-cycle learning-rate schedule, for 100 epochs with fold 5 held out for validation.
Training and inference both run on Modal on an A10G GPU; inference is a FastAPI endpoint that returns the predictions and every intermediate activation, and the Next.js front end draws them as heatmaps. A clip of a dog barking comes back as dog at 80%.



