TopMyGrade

GCSE/Computer Science/AQA

CS3.7Representing sound: analogue waveform sampled at a rate (Hz) and bit depth; file size = sample rate × duration × bit depth

Notes

Representing sound

Sound is an analogue wave (continuous pressure variations in air). Computers can only store discrete numbers, so we approximate the wave by sampling it at regular intervals and storing each sample's amplitude as a binary number.

Sampling

A sample is a measurement of the wave's amplitude at one instant. The sampling rate (or sample frequency) is the number of samples taken per second, measured in Hertz (Hz) or kilohertz (kHz):

  • 8 kHz — telephone quality.
  • 22.05 kHz — radio quality.
  • 44.1 kHz — CD quality (the standard for music).
  • 48 kHz — DVD/professional video.
  • 96 kHz — studio recording.

Higher sample rate → more accurate reconstruction of high frequencies, larger file size.

The Nyquist theorem (extension): you need to sample at twice the highest frequency you want to capture. Human hearing tops out at ~20 kHz, so 44.1 kHz captures it comfortably.

Bit depth

The bit depth is the number of bits used to store each sample's amplitude. Like colour depth in images, more bits → finer amplitude resolution.

  • 8-bit: 256 levels — noticeable noise.
  • 16-bit: 65,536 levels — CD quality.
  • 24-bit: ~16.7 million levels — studio quality.

File size formula

For a raw audio file (mono, no compression, no metadata):

File size in bits = sample rate × duration × bit depth
File size in bytes = (sample rate × duration × bit depth) ÷ 8

For stereo (2 channels), multiply by 2.

Worked exampleWorked example — CD-quality stereo

A 3-minute song at 44,100 Hz, 16 bits, stereo.

Duration: 3 × 60 = 180 seconds. Bits: 44,100 × 180 × 16 × 2 = 254,016,000. Bytes: ÷ 8 = 31,752,000 B. ≈ 31,752,000 ÷ 1024 ÷ 1024 ≈ 30.3 MB.

Worked exampleWorked example — short voice clip

A 5-second voicemail at 8 kHz, 8-bit, mono.

Bits: 8000 × 5 × 8 = 320,000. Bytes: ÷ 8 = 40,000 B ≈ 39 KB.

Effect of changing parameters

  • Doubling sample rate → 2× file size.
  • Doubling bit depth → 2× file size.
  • Mono → stereo → 2× file size.
  • Doubling duration → 2× file size.

Trade-offs

ParameterHigher meansCost
Sample rateCaptures higher pitchesLarger file
Bit depthMore dynamic range, less noiseLarger file
ChannelsStereo / surround soundLarger file
DurationLonger audioLarger file

Comparing sound to images

AudioImage
Sample (one number per moment)Pixel (one colour per location)
Sample rate (Hz)Resolution (pixels)
Bit depthColour depth
Mono/stereo channelsColour channels (R/G/B)

Compression contexts

Raw audio (WAV) is huge. Real audio files use compression:

  • Lossless (FLAC) — keeps all data, ~50% size reduction.
  • Lossy (MP3, AAC, Opus) — discards inaudible data, ~10% of original.

You don't need to know the algorithms for GCSE, but you should mention compression if a question asks "why is a CD-quality file 30 MB but an MP3 only 3 MB?".

Common mistakesPitfalls

  1. Confusing sample rate units. 44.1 kHz means 44,100 samples per second, not 44.1.
  2. Forgetting the channels multiplier. Stereo doubles the file size compared to mono.
  3. Forgetting to convert duration. "3 minutes" = 180 seconds.
  4. Bits vs bytes. Always divide by 8 at the end.
  5. Mistaking sample rate for bit depth. Sample rate is "how often"; bit depth is "how precisely".

Worked exampleWorked example — telephone audio

A 2-minute phone call at 8 kHz, 8-bit, mono. File size? 8000 × 120 × 8 × 1 = 7,680,000 bits = 960,000 B ≈ 938 KB.

Try thisQuick check

A piece of music is 4 minutes long, recorded at 44.1 kHz with 16-bit depth in stereo. Calculate the raw file size in MB.

Bits: 44,100 × (4 × 60) × 16 × 2 = 44,100 × 240 × 32 = 338,688,000. Bytes: 42,336,000. KB: 42,336,000 ÷ 1024 ≈ 41,344. MB: ÷ 1024 ≈ 40.4 MB.

AI-generated · claude-opus-4-7 · v3-deep-computer-science

Practice questions

Try each before peeking at the worked solution.

  1. Question 12 marks

    Sample rate

    Define sample rate and state the unit it is measured in.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  2. Question 23 marks

    Bit depth

    Explain what is meant by bit depth and state the number of amplitude levels possible at 16-bit depth.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  3. Question 33 marks

    File size — mono clip

    Calculate the raw file size in bytes of a 10-second sound clip recorded at 44,100 Hz, 8 bits per sample, mono.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  4. Question 44 marks

    File size — stereo song

    Calculate the raw file size in MB of a 3-minute song recorded at 44.1 kHz, 16-bit, stereo. Use 1 MB = 1024 KB = 1,048,576 B.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  5. Question 52 marks

    Effect of bit depth

    A 5-MB sound file is recorded at 16-bit depth. Estimate the file size if the bit depth is increased to 24-bit (everything else unchanged).

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  6. Question 63 marks

    Why CD-quality?

    Explain why CD audio uses 44.1 kHz sample rate.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  7. Question 74 marks

    Trade-off

    State two ways to reduce the file size of a sound recording, and give one consequence of each.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

Flashcards

CS3.7 — Representing sound — sample rate, bit depth, file size

12-card SR deck for AQA GCSE Computer Science topic CS3.7

12 cards · spaced repetition (SM-2)