Sound

Storing sound

A sound wave is input into a sound encoder. A sound encoder is composed of the following components:

  1. Band-limiting filter

    A band-limiting filter is used to remove high-frequency parts of a sound that cannot be heard by humans.

  2. Analogue-to-digital converter

    This converts analogue data into digital data. In the case of sound, it converts sound waves into a digital format, so that it can be processed by a computer.

Sampling

This refers to measuring the amplitude of a sound at regular time intervals.

Sampling resolution

The resolution of a sample is the number of bits used to store it. A larger resolution will make more values available for storage, and will improve the accuracy and reduce the distortion of the, now digitised, sound.

Sampling rate

Sampling rate is the rate at which sounds are sampled; an amount of samples per second. More samples per second will result in better accuracy of the sound.

Nyquist's theorem

Sampling should be done at a frequency at least twice the highest frequency of the sound in the sample.

The pros and cons of using a higher sampling rate and resolution

Pros Cons
greater dynamic range larger file size
superior sound quality more bandwidth required for access
less sound distortion greater processing power required

This article was written on 23/09/2023. If you have any thoughts, feel free to send me an email with them. Have a nice day!