66 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and past-paper booklets are open to everyone. Practice needs a free account.
Or take a quick quiz: 11 questions on this subtopic in GCSE Computer Science (OCR), marked as you tap.
How sound is sampled and stored in binary, and how the sample rate, duration and bit depth (sample resolution) affect playback quality and file size. Expect definitions, 'explain the effect' questions and non-calculator file size calculations.
Key facts
Sample: a measurement of the amplitude of a sound wave at one moment
Sample rate: number of samples per second (Hz)
Bit depth (sample resolution): number of bits per sample
File size (bits) = sample rate × bit depth × duration in seconds
Higher sample rate or bit depth → better quality but a larger file
Bits ÷ 8 = bytes; minutes × 60 = seconds
Notes
Sampling sound
diagram
Sound is an analogue wave that changes continuously. To be stored on a computer, it must be converted into digital (binary) data.
The amplitude (height) of the sound wave is measured at regular intervals. Each measurement is called a sample.
Samples (blue) are taken at regular intervals; the stored values rebuild a stepped copy of the wave (red)
Each sample is stored as a binary number. On playback, the samples are used to rebuild an approximation of the original wave.
Sample rate, bit depth and duration
Sample rate: the number of samples taken per second, measured in hertz (Hz). E.g. 44,100 Hz means 44,100 samples every second.
Bit depth (also called sample resolution): the number of bits used to store each sample. n bits give 2n possible values, e.g. 8 bits → 256 values, 16 bits → 65,536 values.
Duration: the length of the recording, in seconds.
Quality and file size
diagram
Higher sample rate: samples are taken closer together in time, so the digital sound is closer to the original. But there are more samples to store, so the file is larger.
More samples per second: the rebuilt sound is closer to the original, but the file is larger
Higher bit depth: more possible values for each sample, so each amplitude is recorded more accurately. But each sample uses more bits, so the file is larger.
Longer duration: more samples in total, so a larger file (the quality is unchanged).
Changes multiply: doubling the sample rate and doubling the bit depth gives a file 4 times as large. Grade 8+ only
How to answer each type of question
Describe how sound is stored digitally
2 marksGrade 4
Say that the amplitude of the wave is measured (sampled).
Say that this happens at regular intervals.
Say that each sample is stored as a binary number.
Example. Describe how a sound is recorded and stored by a computer. [2]
Show the model answerHide the model answer
The amplitude (height) of the sound wave is measured / sampled at regular intervals (1). Each sample is stored as a binary number (1).
Explain the effect of changing the sample rate or bit depth
2 to 4 marksGrade 6
Say what changes: more or fewer samples per second, or more or fewer bits per sample.
Explain the effect on quality: closer to, or further from, the original sound.
Explain the effect on file size: more or fewer bits to store.
Example. A musician records a song with a bit depth of 8 bits and then records it again with a bit depth of 16 bits. Explain the effect on the quality of the playback and on the file size. [4]
Show the model answerHide the model answer
With 16 bits, each sample can take many more possible values (65,536 instead of 256) (1), so each sample is closer to the real amplitude and the playback sounds more like the original (1). Each sample uses twice as many bits (1), so the file size doubles (1).
Calculate the file size of a sound recording
2 to 3 marksGrade 7
Change the duration into seconds.
Multiply sample rate × bit depth × duration to get bits.
Divide by 8 for bytes, then by 1000 for KB (and again for MB) if asked.
Example. A sound is sampled at 20,000 Hz with a bit depth of 8 bits. It lasts 30 seconds. Calculate the file size in kilobytes. Use 1 KB = 1000 bytes. Show your working. [3]
Show the model answerHide the model answer
20,000 × 8 × 30 = 4,800,000 bits
(1)
4,800,000 ÷ 8 = 600,000 bytes
(1)
600,000 ÷ 1000 = 600 KB
(1)
Compare the file sizes of two recordings
2 marksGrade 8
Find how many times bigger each factor is (sample rate, bit depth, duration).
Multiply the factors together.
Example. Recording A uses a sample rate of 11,025 Hz and a bit depth of 8 bits. Recording B is the same length but uses 44,100 Hz and 16 bits. Calculate how many times larger file B is than file A. [2]
Show the model answerHide the model answer
The sample rate is 4 times higher (44,100 ÷ 11,025 = 4) and the bit depth is 2 times higher (1). 4 × 2 = 8 times larger (1).
Don’t lose marks
Saying the sample rate is 'bits per second', or that bit depth is 'how loud the sound is'.
Using minutes instead of seconds in the formula.
Forgetting to divide by 8 to get bytes.
Saying a higher sample rate makes the sound louder. It makes it more accurate.
Describing sampling without saying the samples are taken at regular intervals.
More tips
Memory tricks
Formula order 'Rate × Depth × Time': 'Really Deep Tunes'.
If the bit depth is 8, the number of bytes = sample rate × seconds (the 8s cancel).
Think of a dot-to-dot picture of the wave: more dots (sample rate) and more exact dot positions (bit depth) give a truer copy.
Hertz means 'per second'.
Exam technique
Use the phrase 'closer to the original sound' when explaining quality.
If asked about quality and file size, give both effects.
Write the formula, then substitute: method marks are available.
What each grade needs
What you need to be able to do, from the first marks up to the top grade.
Grade 3
Describe how sound is sampledThe amplitude of the sound wave is measured at regular intervals and each measurement is stored in binary.
Grade 4
Define sample rate and bit depthSample rate is the number of samples taken per second (Hz); bit depth is the number of bits used for each sample.
Grade 5
Explain how sample rate affects qualityMore samples per second, so the digital recording is closer to the original sound.
Grade 5
Explain how bit depth affects qualityMore bits per sample give more possible values, so each sample is recorded more accurately.
Grade 6
Explain what affects the file sizeIncreasing the sample rate, the bit depth or the duration increases the file size.
Grade 7
Calculate the file size of a recordingSample rate × bit depth × duration in seconds gives bits; divide by 8 for bytes.
Grade 8
Compare recordings using ratiosE.g. 4 times the sample rate and 2 times the bit depth gives a file 8 times as large.
Quick recall
Cover the answers and test yourself. The app has these as flashcards that come back just before you'd forget them.
A short mono alert sound is recorded for 2 seconds at a sample rate of 8000 Hz with a bit depth of 8 bits. Calculate the file size in bits.
128 000 bits
Sound travels through the air as a wave that changes smoothly and continuously. State the name for this type of signal.
Analogue
To store a sound, a computer measures the height of the sound wave at regular intervals. State the name of this process.
Sampling
Give one disadvantage of recording a sound at a very low sample rate.
The recording is of lower quality because fewer samples are taken each second.
File sizes are measured in bytes, kilobytes and megabytes. State the name of the unit that is equal to 1000 bytes.
Kilobyte
State why a sound must be converted to binary before a computer can store it.
Computers can only store and process binary data.
Sample questions
Written for this site in the style of OCR exam questions. They are not taken from real past papers.
Question 1Easy3 marks
(a) State what is meant by the sample rate of a sound recording.
[1]
(b) State what is meant by the bit depth (sample resolution) of a sound recording.
[1]
(c) Which one of the following would reduce the file size of a sound recording? Tick (✓) one box.
[1]
Increasing the bit depth
Increasing the length of the recording
Reducing the sample rate
Increasing the sample rate
Show the answer and mark scheme
(a)
the number of samples taken per second
(b)
the number of bits used to store each sample
(c)Answer: Reducing the sample rate
Question 2Medium5 marks
(a) Explain how increasing the sample rate affects the quality of the playback.
[2]
(b) Explain how increasing the sample rate affects the file size.
[1]
(c) Explain how increasing the bit depth affects the quality of the playback.
[2]
Show the answer and mark scheme
(a)
more samples are taken each second
so the digital recording is closer to / a more accurate copy of the original sound
(b)
there are more samples to store, so the file is larger
(c)
each sample has more bits, so there are more possible values
so each sample is recorded more accurately / closer to the real amplitude
Question 3Hard6 marks
A podcast producer records speech in mono at a sample rate of 44,100 Hz with a bit depth of 16 bits.
(a) The producer decides to reduce the sample rate to 22,050 Hz. Explain why this is a sensible choice for a podcast that contains only speech.
[3]
(b) Calculate the file size of a 30-minute episode recorded in mono at 22,050 Hz with a bit depth of 16 bits. Give your answer in MB. Use 1 MB = 1,000,000 bytes. Show your working.
[3]
Show the answer and mark scheme
(a)
halving the sample rate halves the file size
speech does not need very high quality to be clear / the voice is still captured well enough
listeners can download episodes faster
episodes use less of the listeners’ storage / data allowance