Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Audio sample frequency rely on channels?

If you have audio encoded at 44100Hz that means you have 44100 samples per second. Does this mean 44100 samples/sec for a channel, or for all channels?

For example if a song is stereo and encoded at 44100Hz, are there 44100 sample/sec for both channels (aka: 22050 samples per channel), or does every channel have 44100 samples (aka: every second has 88200 samples, 44100 for channel 1 and 44100 for channel 2).

like image 782
goocreations Avatar asked Jun 15 '12 10:06

goocreations


People also ask

Is sample rate per channel?

Sampling rates are always measured per channel, so for stereo data recorded at 8000 samples/sec, there are actually 16000 samples in a second.

What is audio sample frequency?

Term: Sampling rate (audio) Sampling rate or sampling frequency defines the number of samples per second (or per other unit) taken from a continuous signal to make a discrete or digital signal.

How is audio sample rate calculated?

1) First, calculate the bit rate using the formula sampling frequency * bit depth * No. of channels. 2) Using the bit rate calculated, we multiply it by the length of the recording in seconds. Audio recorded in 192kHz/24-bit will take up 6.5x more file space than one sampled at 44.1kHz/16-bit.

What sampling frequency should I use?

Overall, recording at 44.1kHz is a safe option that will provide you with high-quality recordings, regardless of the type of audio project you're working on. 44.1kHz is the most common sample rate for music CDs. It captures the entire audible frequency spectrum accurately.


2 Answers

Yes, the sample rate is independent of the number of channels, so e.g. CD quality audio is stereo 16 bits 44.1 kHz which means that there are two channels each sampled at 44.1 kHz, and the raw data rate is therefore 44100 * 2 * 16 = 1411200 bits/sec = 176400 bytes/sec.

like image 61
Paul R Avatar answered Sep 27 '22 00:09

Paul R


Each channel is 'sampled' separately, so you will have as much values per 'sample frequency' as there are channels.

Data rate for the PCM (uncompressed) audio is

sample_freq * channels * bits_per_sample / 8

Most common are 16 bit samples, so you'll have 44100 * 2 * 2 for your stereo recording at 44100 sample rate.

like image 27
Daniel Mošmondor Avatar answered Sep 24 '22 00:09

Daniel Mošmondor