KS3 · Computer Science
Representing sound in binary
The song on your phone isn't a sound. It's a list of numbers: ten seconds of stereo is 14,112,000 bits. How does a wobble in the air become that?
Computing · Representing sound
This is what the computer actually stores
Each bar is one sample: one measurement of the wave. With 4 bits per sample, every bar sits on one of 16 levels, 0000 to 1111. Drag across the bars to reshape the wave. The shape changes. The size doesn't.
From air to bits, and back to air
Follow the sound as it changes form. Watch the microphone and the speaker: same job, opposite directions.
- A pressure wave travelsThose highs and lows of air pressure ripple outwards. That rippling pattern is the sound wave.
- The device samples and stores itThe device measures that voltage again and again, and stores each measurement as bits.
- Back to electricityTo play it, the stored digital data is converted back into an electrical signal: a changing voltage.
Predict, then check
A channel is one stream of audio. Mono has one, stereo has two, surround sound has more.
You save the same 3-minute song three times, uncompressed: mono, then stereo, then surround sound. Sample rate and bits per sample never change. What happens to the size?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
A computer can't keep a wave. It keeps measurements of the wave, thousands every second, each one written in binary.
What you need to know
- Sound is a wave: vibrations make air particles squeeze together and spread apart, creating high and low air pressure.
- Microphones turn those air-pressure changes into changing voltage. No binary yet; that happens next.
Have a goYour mate Jake insists: "A microphone is basically a tiny binary machine. Sound goes in, ones and zeros come out." Is Jake right?
No. A microphone only gives out a changing voltage.
Jake has skipped a whole stage: the voltage still has to be measured and stored as bits by the device before any ones and zeros exist.
- Inside the device, the voltage is measured again and again, and each measurement is stored as bits.
- Each of those measurements is called a sample, so digital sound is a long list of binary numbers.
- How often you measure is the sample rate: samples per second. 44,100 is typical, and higher generally means better quality.
- Sample resolution, or bit depth, is the number of bits per sample. 16 is typical, and more bits store each sample more accurately.
Have a goSam says: "A higher sample resolution means the sound is measured more often." Is Sam right?
No. Measuring more often is a higher sample rate.
Resolution is bits per SAMPLE: more bits store each measurement more accurately. How often is the rate, in samples per SECOND.
- Channels are separate streams of audio. Mono has one, stereo has two (left and right), surround sound has several.
- Better quality costs space: a higher sample rate, more bits per sample or more channels all make the file bigger.
- Size in bits = sample rate × sample resolution × duration in seconds × number of channels. Divide by 8 for bytes.
Have a goQuick one: 1 second of mono at 1,000 samples per second and 8 bits per sample. How many bytes is that?
1,000 bytes.
1,000 × 8 × 1 × 1 = 8,000 bits, then ÷ 8 = 1,000 bytes. Stopping at 8,000 leaves the answer in bits, not bytes.
- Here 1 kilobyte = 1,000 bytes. The formula gives the size of the sound data.
The big picture
Sound is a wave of changing air pressure. A microphone turns it into changing voltage; the device samples that voltage thousands of times a second and stores each measurement as bits. On playback, the numbers become voltage again and a speaker moves the air. Sample rate is how often you measure; sample resolution (bit depth) is how many bits store each measurement. Raising either, or adding channels, makes the file bigger. Raw size in bits = sample rate × sample resolution × duration × channels; ÷ 8 for bytes, ÷ 1,000 for kilobytes.
Key points
Worked example
Problem
A 30-second stereo clip is stored uncompressed at 44,100 samples per second and 16 bits per sample. (a) How big is the sound data in kilobytes (1 KB = 1,000 bytes)? (b) Work it out again for 8-bit mono, and say what you give up.
⚠ Watch out
Swapping sample rate and sample resolution: 44,100 is samples per SECOND; 16 is bits per SAMPLE.
Memory hook
Rate is WHEN, depth is HOW FINE. Size? Rate × depth × seconds × channels, then ÷ 8 for bytes. Four things multiply, one thing divides.
Check yourself
Say what sample rate controls and what sample resolution controls. Then find the raw size, in bytes, of 4 seconds of stereo at 2,000 samples per second and 8 bits per sample.
Flashcards
(15)What is a sound wave in air?
Microphone vs speaker: what does each convert?
What happens between the microphone and the stored bits?
What happens to the bits before a speaker can play them?
What is a sample?
What is sample rate? Give a typical value.
What is the effect of a lower sample rate?
What is sample resolution (bit depth)? Give a typical value.
Why does a higher bit depth make the file bigger?
Mono, stereo, surround: how many channels?
Why does stereo take twice the space of mono?
Formula for raw sound data size in bits?
Bits → bytes → kilobytes?
Does a louder sound make the sound data bigger?
What are typical values for sample rate and sample resolution?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore KS3 Computer Science topics
How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 27 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.