How to read the spectrogram
Time runs from left to right, with the newest sound at the right edge; the picture scrolls left as new columns arrive. Frequency runs up the left side on a logarithmic scale from 20 Hz at the bottom to 20 kHz at the top, so each doubling of frequency takes the same height. That is why the bass notes are spread out and the treble is compressed.
Colour is level. Dark blue is quiet, purple and red are medium, and yellow or white is loud. A steady tone draws a horizontal line. A note that rises or falls draws a sloping line. A click, clap or consonant is a vertical smear because it contains many frequencies at once. The Peak readout names the strongest frequency in the current frame, and Level shows the overall loudness in dBFS.
The analyser uses a 4096-sample FFT. That gives roughly 11 Hz between frequency bins at a 44.1 kHz sample rate, so two bass notes a few hertz apart can merge into one thick line. Higher up, the log scale gives each octave plenty of room, but the microphone and the FFT still set the real limit.
What a whistle, a voice and a hum look like
A whistle is close to a pure tone: one thin, bright horizontal line with almost no stack above it. Move your lips or change the pitch and the line slides up or down; add vibrato and it ripples. A recorder, an ocarina or a tuning fork produces a similar single line, which is why they are easy to pick out.
A voice is a stack of horizontal bars. The lowest strong bar is the fundamental, roughly 85–180 Hz for a typical adult male voice and 165–255 Hz for a typical adult female voice. Above it sit harmonics at two, three, four times that frequency and beyond. Vowels change which bars are brightest because the mouth and throat resonate at different frequencies; consonants add short vertical smears. The stack is the quickest way to tell a voice from a whistle, even when both are in the same pitch range.
Mains hum is a line at 50 Hz in most of Europe, Asia, Africa and Australia, or 60 Hz in North America and parts of South America and Japan, plus weaker lines at double and triple that frequency: 100/120 Hz, 150/180 Hz, and so on. It usually comes from a ground loop, a charger, a cable running near a power supply or a dimmer. Unplug the laptop charger and watch whether the line disappears; that single test separates electrical hum from a fan or traffic rumble, which spread across a band instead of forming a neat ladder.
Spectrum line or spectrogram?
The spectrogram is a history: it is best for pitch movement, rhythm, a sweep, or a fault that appears only for a moment. The Spectrum line view is a snapshot: frequency across the bottom, level up the side, and one line showing what is present right now. Use the line when you want to compare two steady sources or read a level; use the spectrogram when timing matters. You can switch while the microphone is running, and Pause freezes whichever view you are in without switching the microphone off.
What you can use it for
Ring out a room before feedback: a faint steady line that grows into a howl shows the frequency to notch. Track down a hum and its harmonics. See the overtones that make a guitar and a piano sound different even when they play the same note. Watch a speaker sweep for rattles, which appear as broadband vertical bursts, or for a gap where a driver drops out. Compare two microphones to see how far down and up they reach; most laptop and phone mics roll off below about 80 Hz and above 15–18 kHz.
For a named note and cents, open the pitch detector. For an overall level reading in dB, use the noise meter. If you only need to confirm that a microphone works, run the mic test.
Frequently asked questions
Does this spectrogram record or upload my audio?
No. The microphone signal goes straight into the browser's audio analyser, and the page only draws it. Nothing is recorded, stored or uploaded. Press Stop, hide the tab or leave the page and the microphone tracks are stopped.
Why is the top of the display mostly empty?
Most built-in microphones lose sensitivity above 15–18 kHz, and quiet high frequencies fall below the colour scale. A cymbal, hiss or a close whistle will show more there. The 20 kHz label is the top of the scale, not a promise that your microphone reaches it.
Why does a whistle show one line but my voice shows many?
A whistle is almost a pure tone, so it has one strong frequency. A voice also has a fundamental, but the vocal folds produce a whole harmonic series above it, and the mouth shapes which harmonics are loudest. That stack of bars is normal.
What is the bright line at 50 or 60 Hz?
It is usually mains hum from a charger, a ground loop or a cable near a power supply. Its harmonics appear at 100/120 Hz, 150/180 Hz and higher. Unplug the charger or move the cable; if the ladder disappears, the cause is electrical rather than acoustic.
Can I use it on a phone?
Yes. The canvas and controls fit a 375 px wide screen, and the page uses the phone's microphone after you allow it. Phone microphones usually pick up less deep bass than a laptop, so the bottom of the display may look emptier. The page needs https or localhost for microphone access.