Skip to main content
WalesComputer ScienceSyllabus dot point

How is analogue sound converted into binary, and how do sample rate and bit depth affect quality and file size?

Representing sound in binary by sampling an analogue wave, the meaning of sample rate and sample resolution (bit depth), and how they affect sound quality and file size.

A focused answer to the WJEC GCSE Computer Science Unit 1 content on representing sound, covering analogue to digital conversion by sampling, sample rate and sample resolution (bit depth), how each affects sound quality and file size, and calculating the file size of a sound recording.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. Analogue sound and sampling
  3. Sample rate
  4. Sample resolution (bit depth)
  5. Calculating file size
  6. Quality versus file size
  7. Try this

What this topic is asking

WJEC wants you to know how analogue sound is turned into binary by sampling, what sample rate and sample resolution (bit depth) mean, how each affects quality and file size, and how to calculate a sound file's size. This is part of the Data representation and data types content in Unit 1 of WJEC GCSE Computer Science (3500).

Analogue sound and sampling

Sample rate

Sample resolution (bit depth)

Calculating file size

The uncompressed file size of a recording, in bits, is the sample rate multiplied by the duration in seconds multiplied by the bit depth (and by the number of channels for stereo, though questions usually use one channel).

Quality versus file size

Both a higher sample rate and a higher bit depth improve the quality of a recording but increase its file size, so designers choose values that balance acceptable quality against storage and bandwidth. This is also why sound is often compressed (for example to MP3) to make files smaller for streaming or storage.

Try this

Q1. State what is meant by the sample rate of a sound recording. [1 mark]

  • Cue. The number of samples (amplitude measurements) taken each second.

Q2. A 55-second sound is sampled at 1000Hz1000\,\text{Hz} with a bit depth of 88 bits. Calculate the file size in bytes. [2 marks]

  • Cue. 1000×5×8=400001000 \times 5 \times 8 = 40\,000 bits =5000= 5000 bytes.

Exam-style practice questions

Practice questions written in the style of WJEC exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

WJEC-style Unit 13 marksA sound is recorded for 1010 seconds at a sample rate of 80008000 samples per second using a sample resolution of 88 bits. Calculate the file size in bytes. Show your working.
Show worked answer →

A Unit 1 sound file-size calculation. Total samples =8000×10=80000= 8000 \times 10 = 80\,000 (1 mark). Bits =80000×8=640000= 80\,000 \times 8 = 640\,000 bits (1 mark). Bytes =640000÷8=80000= 640\,000 \div 8 = 80\,000 bytes (1 mark). Markers reward sample rate times duration times bit depth, then converting to bytes. A common error is to forget the duration or to leave the answer in bits rather than dividing by 88.

WJEC-style Unit 14 marksExplain how analogue sound is converted into a digital form, and describe how increasing the sample rate affects sound quality and file size.
Show worked answer →

A Unit 1 explain question. Sound is an analogue wave, so it is converted to digital by sampling: the height (amplitude) of the wave is measured at regular intervals and each measurement is stored as a binary number (1 mark for sampling, 1 mark for recording amplitude as binary). The sample rate is the number of samples taken per second; taking more samples per second captures the wave more accurately, so a higher sample rate gives a more faithful, higher-quality recording (1 mark). However, more samples means more values to store, so a higher sample rate also increases the file size (1 mark). Markers reward sampling, the definition of sample rate and the trade-off between quality and file size. A common error is to confuse sample rate with sample resolution.

Related dot points

Sources & how we know this