Computer Science
Grade 7
20 min
6. Representing Sound: Sampling and Digital Audio
Introduce the basics of how sound is represented digitally through sampling and quantization.
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define analog and digital signals in the context of sound.
Explain the process of sampling to convert a sound wave into binary data.
Describe how sample rate affects the quality and file size of digital audio.
Describe how bit depth affects the accuracy and file size of digital audio.
Calculate the approximate file size of a short, uncompressed audio clip.
Explain the trade-off between audio quality and file size.
Ever wonder how your phone can record your voice and play it back perfectly? 🎤 It's all about turning sound waves into numbers that a computer can understand!
In this lesson, we'll explore how computers capture and store sound. We will learn how a continuous sound wave is measured thousands of times per second in a process called sam...
2
Key Concepts & Vocabulary
TermDefinitionExample
Analog SignalA continuous signal that changes over time, just like a real sound wave traveling through the air. It has an infinite number of possible values.The smooth, flowing wave you would see if you could visualize the sound of a person singing or a guitar playing.
Digital SignalA signal that is not continuous, but is a series of separate numbers (in binary) that represent the original signal at specific moments in time.An MP3 file on your computer is a digital signal. It's a list of numbers that your device reads to recreate the sound of a song.
SamplingThe process of measuring the amplitude (height) of an analog sound wave at regular, very fast intervals to convert it into digital data.Imagine taking a snapshot of a runner's position every single seco...
3
Core Syntax & Patterns
The Quality vs. File Size Trade-off
Higher Sample Rate + Higher Bit Depth = Higher Quality Audio + Larger File Size
Use this rule to understand why high-fidelity music files take up so much more space than a low-quality voice recording. To get more detail (quality), you need to store more data (file size).
Uncompressed Audio File Size Formula
File Size (in bits) = Sample Rate (Hz) × Bit Depth × Duration (seconds)
Use this formula to estimate the size of a single-channel (mono) uncompressed audio file, like a .WAV file. For stereo, you would multiply the final result by 2.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
You have a 10-second audio clip. How much LARGER (in bits) is the file if you record it at 16,000 Hz and 16-bit depth compared to recording it at 8,000 Hz and 8-bit depth?
A.1,920,000 bits
B.2,560,000 bits
C.640,000 bits
D.1,280,000 bits
Challenging
To reduce an audio file's size, you can either halve the sample rate (e.g., from 16,000 Hz to 8,000 Hz) or halve the bit depth (e.g., from 16 bits to 8 bits). Which change has a BIGGER impact on reducing the final file size?
A.Halving the sample rate has a bigger impact.
B.Halving the bit depth has a bigger impact.
C.Both changes would reduce the file size by the exact same amount.
D.It's impossible to know without knowing the duration.
Challenging
What is the file size in kilobytes (KB) of a 1-minute (60 seconds) mono voice memo with a sample rate of 8 kHz and a bit depth of 8? (Use 1 kHz = 1000 Hz, 1 byte = 8 bits, 1 KB = 1000 bytes)
A.64 KB
B.480 KB
C.3,840 KB
D.640 KB
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free