Tutorial 4

Tutorial 4 (Week5, from Text Book Pg.138)


3) You have been assigned to design and produce the audio portions of a multimedia project. The program will be delivered on a CD-ROM, and video clips will take up most of the CD. You have only 50MB of storage space to store 20 one-minute clips of speech, 10 songs averaging three minutes long, and a background sound loop. What sampling rates and depths should you use for the speech, for the music, and for the background sound? Why? Roughly calculate the file size totals for these specifications, and be sure that you end up with less than the 50MB of storage space allotted. Discuss your reasoning. 

audio size formula = sample rate * number of channels * (bits per sample  / 8) * time in seconds

We assume that all the audio below are uncompressed, 
For 10 songs, we assume:
sample rate = 11025
number of channels = 1 (mono)
bits per sample = 8
time in second = 10 x 180s
audio size for 10 songs = 11025 * 1 * (8 / 8 ) * 1800 = 19,845000 bytes = 19 MB


For speech, we assume:

sample rate = 22050
number of channels = 1 (mono)
bits per sample = 8
time in second = 1200
audio size for sound loop = 22050* 1 * (8 / 8 ) * 1200 = 26460000  = 25 MB

For sound loop, we assume:


sample rate = 22050
number of channels = 1 (mono)
bits per sample = 16
time in second = 30s
audio size for sound loop = 11025 * 1 * (8 / 8 ) * 60 = 5292000 bytes = 5 MB

(Bytes converter calculator http://www.123marbella.co.uk/free-bandwidth-calculator/)

So the total size of audio = 19 + 25 + 5 = 49 MB

For the songs, because usually they are not so important, so we can use a lower sample rate which is 11025 Hz for it. For the speech, it is much more important than songs. We definitely need higher quality in order to hear clearly. So for the speech, the sample rate that we use it 22050 Hz. And lastly, there is only 6 MB space left after adding speech and 10 songs. So for the sound loop, we can high sample rate and bits per sample but make sure it does not over the remaining 6 MB.




No comments:

Post a Comment