Rate-
Sample rate is the number of samples of audio carried per second, measured in Hz or kHz (one kHz being 1 000 Hz). For example, 44 100 samples per second can be expressed as either 44 100 Hz, or 44.1 kHz. Bandwidth is the difference between the highest and lowest frequencies carried in an audio stream.
Resolution-
A 16-bit recording uses 16 bits for each sample. 16 bits can represent 65,536 different numbers and amplitudes, which makes for a much better dynamic range. The sampling resolution is the representation (or size of the numbers) used to write samples in digital sound recording.
Calculating the file size given the sample depth, sample rate, sound time and channels
FormulaFile size (bits) = sampling frequency (Hz) x sampling depth (bits) x length of sound (s) x channels
Example
A stereo song has to be recorded at CD quality. The song is 4 minutes and 8 seconds long. How much disk space would the captured song occupy?
Settings for CD quality are:
- Sampling frequency = 44100 Hz (44.1KHz)
- Sampling depth = 16 bit
Length of song = 4 x 60 + 8 = 248 seconds
File size (bits) = 44100 x 16 x 248 x 2 = 349977600
File size (bytes) = 349977600 / 8 = 43747200
File size (kilobytes) = 43747200 / 1024 = 42721.88
File size (megabytes) = 42721.875 / 8 = 41.72Mb
No comments:
Post a Comment