5. Data Representation Sound

5. Data Representation Sound

Storing sound in a digital form

Sound is captured – usually by a microphone – and then converted into a digital signal. Computers work in binary. All data must be converted into binary in order for a computer to process it. 

Storing sound in a digital form

Calculating the size of an audio file

Example 1 – File length with a single channel

A typical, uncompressed high-quality audio file has a sample rate of 44,100 samples per second, a bit depth (the number of bits available for each sample) of 16 bits per sample. The bit rate for this file would be:

44,100 samples per second × 16 bits per sample = 705,600 bits per second

What would file size be for a three minute song?

3 x 60 = 180

705,600 x 180 = 127,008,000

Example 2  – Channels

 A typical, uncompressed high-quality audio file has a sample rate of 44,100 samples per second, a bit depth (the number of bits available for each sample) of 16 bits per sample and 2 channels of stereo audio. The bit rate for this file would be:

 44,100 samples per second × 16 bits per sample × 2 channels = 1,411,200 bits per second

 What would file size be for a four minute song?

 A four-minute (240 second) song at this bit rate would create a file size of:

14,411,200 × 240 = 338,688,000 bits (or 40.37 megabytes)

 
Scroll to Top