A spectrogram is a picture of how the frequency content of a signal changes over time. In a typical sound spectrogram, time runs along the horizontal axis, frequency runs up the vertical axis, and colour or darkness represents the strength of the signal at a particular time and frequency. A spectrogram explanation therefore starts with three questions: when did something happen, which frequencies were present, and how strong were they? It is one of the clearest ways to see patterns in speech, music, animal calls, machinery and other changing signals.
To make a spectrogram, software divides a recorded waveform into short overlapping segments, analyses the frequency content of each segment, and arranges the results in time order. This is usually accomplished with a short-time Fourier transform, although other time-frequency methods exist. The result can show a tone as a horizontal line, a rising pitch as an upward curve, and a brief noisy click as a short broad feature. Reading it accurately requires knowing the axes, sample rate, analysis window, colour scale and limits of the recording.
Did you know that the same general idea can help a scientist examine a whale call or a seismologist study earthquake ground motion? The instrument and units may differ, but the question remains how a signal’s frequency content changes with time. This guide explains spectrograms from first principles, builds a fully checked numerical example, diagnoses common reading mistakes, and shows why a striking coloured image is evidence to interpret rather than an automatic identification of its source.
Begin with a waveform: one value after another
A microphone turns variations in air pressure into an electrical or digital signal. A seismometer records ground-motion-related signals. A vibration sensor may record acceleration from a machine. When these signals are sampled digitally, the data become a sequence of measurements at known times. A waveform plot usually puts time on the horizontal axis and the measured amplitude on the vertical axis. It answers where the recorded quantity moved up, down or changed abruptly.
A waveform is excellent for seeing timing, overall amplitude and sharp transients. But it may be difficult to identify which frequencies are present when several oscillations overlap. A low tone and a high tone can add together into a complicated-looking trace. The waveform is not hiding information in a mystical sense; the frequency information is encoded in the timing and shape of the fluctuations, but it needs analysis to become easy to inspect.
Imagine tapping a glass three times while a fan runs in the background. The waveform may show three peaks and continuous activity between them. A spectrogram can display how those taps distribute energy across frequencies and whether the fan produces persistent narrow or broad bands. These are two views of the same recording. Keeping both is valuable because an apparent feature in a spectrogram can be checked against the timing and amplitude of the original waveform.
What frequency means
Frequency describes how often a repeating pattern cycles in a given time, measured in hertz. One hertz means one cycle per second. A clean sinusoidal tone at 200 hertz completes two hundred cycles each second. In acoustics, periodicity contributes to perceived pitch, although pitch perception depends on more than a single numerical frequency, especially for complex sounds. A changing machine vibration, animal call or musical note may contain several frequency components simultaneously.
Many real signals are not pure sine waves. A plucked string produces a fundamental and harmonics. Speech contains changing resonances and noise-like components. A sudden impact spreads energy across a range of frequencies. The spectrogram is useful precisely because it shows the mixture changing through time rather than reporting one average pitch for an entire recording.
Frequency is not the same thing as loudness. A frequency axis tells you where oscillatory patterns lie; the colour scale represents some measure of amplitude, power or spectral density, depending on how the display was computed. A horizontal line at 500 hertz can be faint or strong. A low-frequency band can be stronger than a high-frequency band without being located higher on the picture. Distinguishing position from strength is the first step in reading any spectrogram.
The three-dimensional idea compressed into a picture
Think of a table with one row for each frequency band and one column for each moment or analysis frame. Every cell holds a numerical measure of spectral strength. The spectrogram draws that table as coloured pixels. The horizontal coordinate identifies a time or frame, the vertical coordinate identifies a frequency or band, and colour encodes the third numerical value. A bright patch therefore means that a particular frequency region was relatively strong at a particular time under the chosen display mapping.
This should not be mistaken for a photograph of sound travelling through a room. The image is a representation computed from measured data, not a direct visual exposure of pressure waves. Different software settings can turn the same underlying waveform into pictures with different levels of smoothness, contrast and visible detail. The underlying recording remains the same even when the image looks dramatically different.
When reading any example, start with the labels. Are frequencies in hertz or kilohertz? Is time in seconds, minutes or repeated daily segments? Does brightness represent raw magnitude, squared magnitude, power spectral density or a decibel transformation? Has the colour scale been clipped to a narrow range? A scientifically useful spectrogram is not just an attractive image. It is an image whose coordinate and measurement conventions are stated.
Why a single Fourier transform is not enough
A Fourier transform describes the frequency components of a signal over a chosen interval. If you analyse an entire ten-second recording as one block, you can learn which frequencies are present somewhere in those ten seconds. But you generally lose the straightforward information about exactly when each component occurred within that interval. A note at the start and the same note at the end can contribute to similar overall spectral content.
A short-time Fourier transform addresses this by performing a local frequency analysis repeatedly. The software takes a short piece near time zero, computes its spectrum, slides forward to a later piece, and repeats. The spectra become adjacent columns in a time-frequency display. The method trades some ability to resolve closely spaced frequencies against the ability to localise changes in time. That trade-off is fundamental rather than a flaw in a particular program.
A spectrogram typically uses the magnitude or squared magnitude of these local Fourier coefficients. Phase information may be available in the underlying complex transform but is not usually visible in a standard magnitude spectrogram. This is another reason not to assume the image alone contains every property of the original waveform. It is a deliberately selected view, designed to make certain features easier to see.
The analysis window is a deliberate choice
Each short-time analysis uses a segment called a window or frame. A longer window includes more cycles of a low-frequency tone, making it easier to distinguish nearby frequencies, but it averages information over a longer interval. A shorter window localises a brief event more precisely, but its frequency discrimination is less sharp. If the question is “When did the click happen?”, a short window may help. If the question is “Are two sustained tones ten hertz apart?”, a longer window may be needed.
The software also applies a window function that weights samples within the frame. Common choices include Hann and other tapered windows that reduce discontinuities at the frame edges. Different functions have different patterns of spectral leakage and main-lobe width. No window setting removes all ambiguity; the analyst chooses parameters appropriate to the signal and the question.
An important distinction is the frame duration versus the interval between consecutive frame starts. Frames often overlap, so a new spectrogram column can appear every few milliseconds even when each analysed window spans tens of milliseconds. A densely spaced display is not proof that the underlying frequency estimate had millisecond-scale resolving power. The next worked calculation makes that distinction concrete.
A fully calculated example: sampling, windows and frame count
Suppose we record a hypothetical two-second sound at a sampling rate of 16,000 samples per second. The recording contains 2 multiplied by 16,000, or 32,000 digital samples. Choose a 400-sample analysis window. Its duration is 400 divided by 16,000 seconds, which equals 0.025 seconds, or 25 milliseconds. That tells us how much time data each individual local spectrum uses.
Now choose 300 samples of overlap between adjacent windows. The hop size is 400 minus 300, or 100 samples. Each new frame begins 100 divided by 16,000 seconds after the previous frame, which equals 0.00625 seconds, or 6.25 milliseconds. The overlap is 300 divided by 400, or 75 percent. These figures describe the analysis design; they are not measurements of the sound’s pitch or loudness.
If frames must fit entirely within the 32,000 samples with no boundary padding, the number of complete frames is floor((32,000 minus 400) divided by 100) plus one. This equals floor(31,600 divided by 100) plus one, or 316 plus one, giving 317 frames. If software pads the signal at either end, it may return a different count and different frame-centre times. That is why examples must state their padding convention instead of treating one program’s output shape as universal.
Frequency bins and the difference between spacing and resolution
In the same illustrative example, if the fast Fourier transform uses 400 points, the nominal spacing between Fourier frequency bins is the sampling rate divided by the transform length: 16,000 divided by 400 equals 40 hertz per bin. For a real-valued signal, the usual one-sided nonnegative frequency view runs from zero to the Nyquist frequency of 8,000 hertz, subject to the program’s treatment of the endpoint.
Do not confuse 40-hertz bin spacing with the exact ability to distinguish two tones separated by 40 hertz. Actual frequency resolution also depends on the effective window duration and window shape. Spectral leakage may spread one tone across several adjacent bins. The main-lobe width of a tapered window matters. The bins are the coordinate grid at which a spectrum is sampled, not a guarantee that every pair of physically different components is cleanly separated.
For an additional check, imagine choosing an 800-point FFT while keeping the same 400 measured samples, adding zeros before the transform. The plotted frequency-bin spacing becomes 16,000 divided by 800, or 20 hertz. The graph becomes more finely sampled, but the original 25-millisecond observation has not become a 50-millisecond observation. Zero-padding improves interpolation of the displayed spectrum; it does not create new resolving information that the measured samples did not contain.
What the Nyquist frequency limits
A sampled signal cannot reliably represent arbitrary frequencies above half the sampling rate without additional conditions. For our 16,000-samples-per-second recording, half is 8,000 hertz. To analyse real acoustic content above that range, you normally need a higher effective sampling rate and suitable analogue filtering before sampling. Simply extending a display axis to 20,000 hertz does not recover high frequencies that the recording never captured.
Aliasing occurs when components above the permitted range fold into lower apparent frequencies during sampling if they were not adequately removed or controlled. For a simple illustrative case, a 9,000-hertz tone sampled at 16,000 samples per second can alias to an apparent 7,000-hertz component under ordinary uniform sampling. This calculation follows the difference 16,000 minus 9,000 equals 7,000 hertz, but real acquisition systems use anti-aliasing filters and have more details. The example shows why instrument settings matter.
Before using a spectrogram to claim a bird, machine or person made a particular high-frequency component, check the microphone response, anti-alias filters, original sampling rate and processing history. A coloured line at a plausible frequency may reflect the sound, an electronic interference pattern, an artefact of sampling or a feature introduced later by processing. The spectrogram is an analysis of a recording, so the recording chain must be part of the interpretation.
How to read common visual patterns
A steady pure tone often appears as a roughly horizontal narrow band because its frequency changes little over time. A rising whistle may appear as an upward-sloping ridge. A falling whistle slopes downward. A short click or impact, rich in many frequencies, can create a brief vertical feature. Repeated impacts can produce repeated vertical marks. These are useful visual descriptions, not source identifications on their own.
A sequence of regularly spaced horizontal bands may indicate harmonically related components from a periodic source. In speech, vowels often show bands of stronger energy associated with vocal-tract resonances, called formants, while voiced sounds also have harmonic structure. A spectrogram can help distinguish kinds of acoustic patterns, but it does not automatically provide a complete phonetic transcription or the identity of the speaker. Source recognition needs context and additional evidence.
Some signals produce diffuse textures rather than clean curves. Wind, turbulent airflow, unvoiced fricatives, friction or broadband environmental noise can spread energy across ranges of frequency. The exact texture changes with analysis settings. A carefully designed description might say “broadband high-frequency activity between these times” instead of claiming that the picture proves a specific cause.
The colour bar is part of the measurement
Bright yellow in one spectrogram may mean stronger power, while bright yellow in another may correspond to a different value because the colour map or dynamic range changed. A decibel colour scale compresses large ratios so weaker features become visible, but it can also make low-level background patterns appear dramatic when the range is tightly clipped. Without the colour-bar labels, two images are not necessarily quantitatively comparable.
Power and amplitude are related but not identical. For a consistent reference quantity, a tenfold change in power corresponds to 10 decibels, whereas a tenfold change in amplitude corresponds to 20 decibels. A spectrogram may display squared magnitude, magnitude, power per unit frequency or a normalised value. You need to know which quantity is used before calculating an energy or intensity ratio from displayed numbers.
A clear diagnostic is to ask: does the figure define zero decibels and the reference units? If not, you may be able to compare relative brightness within the same image, but absolute sound pressure or ground motion cannot be inferred safely. A bright feature can be the strongest part of a very quiet recording. The colour bar maps the analysis result; it does not certify an absolute loudness without calibration.
The units can change across applications
In a sound recording, the horizontal axis might be seconds and the vertical axis hertz or kilohertz. If the microphone is calibrated, the spectral quantity can sometimes be related to physical pressure units. In a seismological display, the underlying signal may represent ground velocity, acceleration or another channel-specific measurement. The USGS has operational spectrogram displays in which the orientation differs from many textbook audio examples: time may progress vertically through rows, while frequency runs horizontally.
This is not a contradiction. A spectrogram is a time-frequency representation, not a law requiring time to be the x-axis on every page. The labels define the coordinates. If you read an image from a seismological monitoring site as though it were a music spectrogram without checking the axis orientation, you may reverse the direction of an event or misunderstand the range of frequencies shown.
Always identify the instrument, calibration and signal type. For a seismometer, a colour patch might represent ground-motion-related spectral amplitude rather than acoustic loudness. For an accelerometer on a motor, a narrow line could correspond to vibration at a rotation-related frequency. An identical colour in two unrelated instruments need not imply identical physical energy. The mathematics can be similar while the physical meaning changes.
Spectrograms in speech and language
Speech changes quickly. Consonants, vowels, voicing transitions and aspiration can produce different acoustic patterns over fractions of a second. A spectrogram lets researchers examine temporal and frequency structures that are hard to see in the waveform alone. The choice between a wider or narrower frequency-analysis window influences whether brief transitions or harmonic bands appear more clearly. Specialists therefore choose settings deliberately rather than always using the same defaults.
Praat, a widely used speech-analysis application, explicitly allows the user to configure the spectrogram’s frequency range and window length. Its documentation explains how window duration affects the apparent bandwidth of spectral features. That is an important warning for learners who compare two images from different software packages: apparent thickness of a stripe may partly reflect analysis choices, not a changed voice.
The technique is useful in phonetics education, but a spectrogram does not read meaning directly. Two speakers can produce different acoustic realisations of the same word, and the same speaker varies with speed, emphasis and environment. A linguist combines acoustic evidence with linguistic context, listening and controlled comparison. The coloured image is a measurement-oriented representation of the sound, not an automatic grammar engine.
Spectrograms in music
In a sustained musical tone, harmonics may form a stack of horizontal lines. A vibrato can make these lines gently waver because the fundamental frequency changes. A glissando produces a shifting track, and percussion can appear as brief broadband activity. Looking at these features can help a learner connect musical events with physical signal patterns, especially when the waveform looks too complicated to interpret directly.
However, a spectrogram is not equivalent to musical notation. It records a performed or generated signal, including overtones, reverberation and noise. A musical score describes intended pitches and timing within a symbolic convention. The two representations can inform each other but answer different questions. A violin note with a fundamental around one frequency may have strong energy at multiples of that frequency, and a naive reader should not label every harmonic as an independent instrument playing.
A productive exercise is to compare the waveform and spectrogram of a clap, a sustained humming note and a sliding whistle. Ask which event has a sharp onset, which remains nearly constant in frequency and which shifts smoothly. Then listen again. The point is to connect visible evidence to hearing, not to guess a source from colour alone.
Spectrograms for whales and other animals
Marine scientists use hydrophones to record underwater sound and inspect time-frequency patterns. NOAA Fisheries publishes examples of whale and other marine-mammal sounds with spectrograms, showing how frequency, time and signal strength can be displayed. Different calls may have distinctive patterns, but identifying a species reliably requires suitable recordings, reference data, expert validation and awareness of overlapping sounds from ships, waves or other animals.
A rising or falling tonal contour may suggest one type of call, while repeated bursts suggest another, yet a visual match is not a guarantee. Recordings can contain multiple animals, propagation effects and noise. Monitoring programmes often combine automated detectors with analyst review. A detector’s output is a candidate event to examine, not evidence that every bright line corresponds to a particular whale.
For general readers, the transfer value is large: the spectrogram concept does not depend on hearing the original sound. Some underwater calls occupy frequencies that ordinary speakers reproduce poorly, or they may be played back at altered speeds in demonstrations. Reading the axis labels and playback conditions protects against treating a sped-up educational example as the animal’s natural pitch.
Spectrograms for earthquakes and volcanoes
Seismologists examine how seismic energy varies in time and frequency. An earthquake often produces a waveform with arrivals and decaying motion; a spectrogram can highlight the distribution of frequency energy during that interval. Other sources—including vehicles, machinery, wind effects and instrument noise—can also leave signatures. A spectrogram may support interpretation, but an event’s cause and location ordinarily require multiple stations, waveform analysis and other seismological evidence.
The United States Geological Survey publishes explanations of operational spectrograms from seismic stations. Its displays describe how frequency content is summarised repeatedly and mapped to colour. It also cautions that a seismogram can contain non-earthquake signals. The correct reading habit is therefore to combine the display with the instrument metadata and surrounding seismic observations rather than making a dramatic claim about every coloured patch.
Different scientific domains also choose different frequency ranges. Earthquake monitoring may examine frequencies much lower than those in human speech. Showing a narrow range can be appropriate for the phenomenon being studied, but it conceals everything outside that range. The graph is a window onto selected information. The choice of that window is part of the scientific question.
Spectrograms for machinery and fault finding
Machines vibrate in response to rotating components, impacts, flow, structural resonances and other processes. A vibration spectrogram can show persistent frequency tracks and changes during startup or changing load. For example, an increasing rotation rate may produce frequency components that rise through time. These patterns can inform maintenance investigations, especially when compared with a well-documented baseline recorded under similar conditions.
But a spectrogram alone does not identify a faulty bearing, loose component or unsafe machine with certainty. Sensors measure at particular locations and axes, and transfer paths can amplify some frequencies while suppressing others. The operation’s speed, load and temperature may matter. A maintenance decision may require multiple diagnostic measurements, inspection and relevant engineering expertise.
A trustworthy report states what was observed before naming the suspected failure: “Energy increased near these frequency bands during this operating condition.” A stronger causal claim requires independent checks. This approach reduces the temptation to turn a visually striking stripe into an unsupported diagnosis, whether the object is a washing machine, pump or industrial motor.
Noise and signal-to-noise limitations
Every recording system introduces some noise, and environments add competing signals. A faint sound may be buried under wind, traffic or electrical interference. A spectrogram can help locate energy in a time-frequency region, but the display’s ability to show faint features depends on dynamic range, calibration and processing. Increasing the colour contrast does not improve the original signal-to-noise ratio by itself.
Filters and noise reduction can improve some analyses, but they also transform the data. An aggressive filter might remove genuine signal components along with the unwanted noise. A machine-learning enhancement could produce plausible-looking structure that was not reliably measured. For scientific interpretation, preserve the original recording and document the processing steps so the reader can distinguish observation from enhancement.
When a spectrogram is used as evidence, ask whether the same candidate feature appears in independent sensors or repeated recordings and whether the analysis works on appropriate controls. A lone narrow line could be a meaningful tone or an electrical artifact. Reproducibility and context are stronger grounds for a claim than brightness alone.
Overlap and the illusion of extra observations
Suppose consecutive 400-sample windows overlap by 300 samples. Then two adjacent windows share 75 percent of their raw data. The resulting spectrogram columns are not independent measurements of completely separate time intervals. Dense overlap can make a smooth visual map and help track changes, but it should not be treated as a multiplication of independent experimental evidence.
For a two-second recording at 16,000 samples per second, our earlier calculation gave 317 complete frames under a no-padding convention. Those 317 frames do not imply the microphone made only 317 measurements; it recorded 32,000 samples. Nor do the frames imply 317 independent pieces of information, because the windows overlap heavily. Different kinds of counts answer different questions: raw samples, analysis windows, distinct events and independent recordings.
This distinction matters when summarising results statistically. If someone counts bright pixels as independent detected calls or treats every overlapping frame as a new independent participant, they may severely exaggerate certainty. Frames are a computational representation. A detector needs event-grouping logic and appropriate statistical treatment before its outputs can be interpreted as independent occurrences.
Short window or long window: a diagnostic choice
Imagine a recording with two closely spaced steady frequencies and also a brief click. A long window may distinguish the sustained frequencies more sharply, while a short window may pinpoint the click’s timing more clearly. The analyst cannot maximise both kinds of resolution by simply sliding a preference control to “high.” Time-frequency analysis involves a trade-off related to the amount of observation used for each local spectrum.
Suppose two tones are separated by only 10 hertz. A 25-millisecond window spans a reciprocal time scale of about 40 hertz, before considering window shape. You should not assume it can cleanly distinguish those tones. Increasing the observation window to, say, 200 milliseconds changes that reciprocal scale to about 5 hertz, potentially helping frequency discrimination, but it also blends events occurring within a larger time interval. The precise resolving power still depends on the chosen window and signal-to-noise conditions.
The correct workflow begins with the question. For a fast click, favour time localisation. For slowly varying pitch or harmonics, consider longer windows. When both matter, create and compare several analyses from the same original recording while documenting settings. The fact that different plots emphasise different features is not a failure of science; it is the result of asking distinct measurement questions.
Common mistake: calling every coloured trace a fundamental pitch
A bright line may be a harmonic, interference, resonance or a narrow noise component rather than the lowest periodic frequency of a source. A musical tone with a fundamental of 200 hertz can also produce energy at 400, 600 and 800 hertz and beyond. If the 400-hertz component is strongest, an inexperienced viewer might label the sound’s pitch as 400 hertz. But the periodicity and perceptual pitch relationship can still involve the 200-hertz fundamental, even when that component is weak.
Another mistake is assuming vertical height means sound intensity. Frequency is commonly the vertical coordinate, so a higher stripe indicates a higher frequency rather than greater loudness. Strength is encoded by colour or darkness according to the selected scale. If a display has no colour bar, describe the relative pattern cautiously rather than assigning absolute values.
A third mistake is comparing screenshots with different window settings as if their line thicknesses were directly measurable differences in the source. Window length, scaling and dynamic range can make the same tone appear broader or narrower. Whenever a claim depends on a visual difference, align the display settings or return to the numerical spectral data.
Common mistake: treating the spectrogram as a source detector
The spectrogram maps signal components into time-frequency coordinates; it does not inherently attach labels such as “bird,” “person,” “fault” or “earthquake.” Those are interpretive conclusions that require additional information. The same horizontal line could arise from a tone generator, a distant electrical source or an animal call. The physical source cannot be uniquely reconstructed from one visual feature without context.
Automated classification systems can learn patterns from many labelled recordings, and their results can be useful, but a label comes from a separate model with its own training data and error rates. A convincing explanation should distinguish the spectrogram as an input representation from the classifier’s inference. Otherwise readers may assume the coloured image contains a name that an algorithm merely added.
The correct habit is to describe, hypothesise and test. First describe the observed feature, such as a downward frequency sweep lasting half a second. Then propose plausible sources. Finally check surrounding context, other sensors, repeated examples and instrument behaviour. This three-stage method transfers beyond sound analysis to almost every kind of scientific image.
Compare spectrograms fairly
Two spectrograms can only support a fair quantitative comparison if the relevant measurement and display conventions are compatible. Check sampling rates, calibration, channel type, sensor placement, frequency limits, window duration, overlap, transform scaling, colour range and any filtering. If these differ, apparent differences may partly reflect the processing rather than the event itself.
For an educational demonstration, use the same recording to generate two spectrograms with different window lengths. Notice how the narrow bands and short transients change in appearance. Because the source data is fixed, the differences reveal the effect of analysis choices. This controlled experiment is more informative than comparing two unrelated images and trying to infer why one looks sharper.
If a figure is intended for publication, include a caption with sufficient detail for another person to reproduce the basic computation. For example: “Sound sampled at 16 kHz, Hann window of 400 samples, 300-sample overlap, FFT length 400; colour shows relative spectral power.” The caption need not explain every mathematical detail, but it should prevent readers from mistaking display conventions for properties of the world.
A second fully checked transfer calculation
Suppose another recording is sampled at 8,000 samples per second, with a 200-sample window and 100-sample overlap. The window duration is 200 divided by 8,000 = 0.025 seconds, or 25 milliseconds. The hop size is 100 divided by 8,000 = 0.0125 seconds, or 12.5 milliseconds. If the FFT also uses 200 points, nominal bin spacing is 8,000 divided by 200 = 40 hertz. The Nyquist frequency is 4,000 hertz.
Compare this design with our earlier 16-kHz case. The two designs have the same window duration and nominal FFT-bin spacing in hertz, but different sample counts. The new hop is twice as long in milliseconds, so its spectrogram columns are spaced more widely in time. Its highest representable frequency is lower because of the sampling rate. These differences are all consequences of the stated design, not guesses from a picture.
Now change only the overlap to 150 samples. The hop becomes 50 samples, or 6.25 milliseconds, and overlap increases to 75 percent. The window remains 25 milliseconds, the Nyquist frequency remains 4,000 hertz, and the nominal 40-hertz bin spacing remains unchanged. This is the point of transfer: altering one parameter should change only the consequences of that parameter, unless other settings are coupled by the software.
How to inspect a spectrogram in five questions
First, what physical quantity was recorded, and by which instrument? Second, what are the time and frequency axes, including direction and units? Third, how does the colour scale encode magnitude, power or density? Fourth, how were the local spectra calculated—window size, overlap, sampling rate and transform settings? Fifth, what independent evidence supports the claimed source or event? These questions turn a colourful image into an interpretable analytical product.
If the graph lacks one of these details, decide whether the missing information merely limits precision or makes the desired interpretation impossible. A qualitative classroom question about rising pitch may be answerable without absolute calibration. A claim about physical sound intensity in pascals cannot be substantiated from an uncalibrated colour map. A claim about ultrasound cannot be supported by a recording whose Nyquist limit is below the frequency of interest.
For a novice reader, making this distinction is a major step toward scientific literacy. You are no longer asking only what the picture resembles. You are asking what operation produced the picture and which claims that operation can support.
Frequently asked questions
Is a spectrogram the same as a waveform?
No. A waveform plots signal amplitude versus time, while a spectrogram shows how local frequency content changes over time. They describe the same underlying recording from different perspectives. Looking at both can improve interpretation.
What do horizontal and vertical lines mean?
In a common audio layout, a narrow horizontal stripe suggests sustained energy near one frequency, while a brief vertical feature suggests broadband energy concentrated at a moment. But axis orientations vary, and different sources can make similar shapes. Check labels before making conclusions.
Does brighter colour always mean a louder sound?
No. Brightness indicates a larger value according to the display’s colour scale. That value might be relative spectral power, amplitude or another quantity, and the recording may be uncalibrated. Absolute loudness requires additional measurement information.
Why do spectrograms use overlapping windows?
Overlap helps sample the evolution of the spectrum more densely through time and can provide smoother tracking of features. The frames share data, however, so more columns do not necessarily mean more independent observations or better frequency resolution.
Can a spectrogram identify a singer, animal or machine?
It can reveal useful patterns for an identification process, but the image alone does not guarantee a specific identity. Reliable classification needs reference data, context, appropriate sensors and validation. Similar shapes may have different causes.
What is the difference between a spectrogram and an FFT?
An FFT is an efficient algorithm for calculating a discrete Fourier transform. A spectrogram is a time-frequency representation often constructed from many short-window Fourier transforms. The algorithm is a computational tool; the representation is the organised result.
Why do two programs show different pictures of the same sound?
They may use different window lengths, tapers, overlap, frequency scales, normalisation, dynamic ranges or boundary padding. Check the analysis parameters before treating visual differences as differences in the original source.
Can a spectrogram show frequencies higher than the recording captured?
No legitimate display can recover information that was never sampled. A plotted axis can extend beyond the useful recording bandwidth, but that does not make the missing high-frequency signal available. Check sampling, anti-aliasing and instrument response.
Primary technical references and connected learning
The SciPy ShortTimeFFT spectrogram documentation defines the squared-magnitude STFT representation. The Praat spectrogram manual explains local spectra and window settings for sound. The USGS spectrogram guide shows how time-frequency displays are used for seismic monitoring, and NOAA Fisheries’ marine-mammal sound examples illustrate acoustic reading conventions. The numerical recordings in this article are explicitly hypothetical, with arithmetic checked against the stated assumptions.
For a mathematical extension, read eduKateSingapore’s guide to the Fourier transform, which explains frequency decomposition beyond the short-time window view. Its guide to noise helps interpret interference and uncertainty. These are useful neighbours rather than substitutes: the distinct question here is how a signal becomes a time-frequency picture, what the picture reveals and what it cannot prove.
