Have you ever wondered how your computer or smartphone stores music, podcasts or voice recordings? Although sound travels through the air as a continuous (analogue) wave, computers can only store digital data made up of 1s and 0s. So how does a smooth sound wave become a digital audio file?
The answer lies in a process called sound sampling. During sampling, the computer measures the height (amplitude) of the sound wave at regular intervals. These measurements are then rounded to the nearest value that can be stored using a fixed number of bits. The two most important factors that affect the quality of the recording are the sample rate (how often the sound is measured) and the bit depth (how many different amplitude values can be stored). Higher sample rates and greater bit depths produce more accurate recordings, but they also create much larger files.
Our interactive Sound Sampling Simulator lets you explore this process step by step. Watch a smooth analogue sound wave being sampled, see how the measurements are converted into digital values, examine the binary data that is generated, and discover how changing the sample rate or bit depth affects both the quality of the recording and the final file size.
Experiment with different settings, compare low-quality and high-quality recordings, and see for yourself the trade-off between sound quality and storage space. By the end of the activity, you’ll have a much better understanding of how digital audio is created and why these concepts are so important in Computer Science.
Sound Sampling SimulatorOpen Simulator in a New Window





