Duration calculation PCM file

Sampling accuracy: the number of bits of binary data to represent the quantization level, is called sampling accuracy (Sampling precision), also known as the median or the sample bit depth, expressed in bits (bit or b) for each sample. The fewer the number of bits, the lower the sound quality, the less need for storage space. Sampling frequency and accuracy are two important indicators of the quality of digital sound.
Calculating an amount of data if the sampling frequency of the sound file 8kHz, which is 8 bits per sample, the resulting data rate is:
. 8 ( 'bit) * = 8kHz 64.0kb / S If a two-channel, two channels will have on the simultaneous voice sampling and quantization, the data is twice the amount of mono digitized, namely:
. 8 ( 'bit) 8kHz 2 the amount of data (number of channels) = 128kb / s1 minute two-channel sound file is:
. 8 (' bit) 8kHz 2 (number of channels) * 60 (sec) / (bit / Byte) = 960kB

Visible digital audio file size is calculated as follows: Byte = amount of data
sampling frequency Hz
× (sampling bit /. 8)
× number of channels
× time s [Example] If the sampling frequency is 44.1kHz, 16-bit resolution, stereo, when the recording
room to 10s, in line with the size of CD-quality sound files is how much?
According to the formula:
the amount of data Byte = 44100Hz × (16/8) × 2 × 10s = 1764KByte

Size = PCM sampling rate sampling time the sample bit depth / 8 * number of channels (Bytes)

Turn: https://zhidao.baidu.com/question/571036075.html

Guess you like

Origin blog.csdn.net/hkSDK/article/details/91807196