What Is Audio Sampling Rate: A Comprehensive Explanation


Free Download Mp4Gain
picture

What Is Audio Sampling Rate: A Comprehensive Explanation

Sample Rate
Sample Rate

Introduction

Sample Rate
Sample Rate

Audio sampling rate is a fundamental concept in digital audio that refers to the number of samples per second used to represent an analog audio signal in digital form. In this article, we’ll explore the technical details of audio sampling rate, its importance in digital audio, and its impact on audio quality and file size.

Sampling Rate Fundamentals

The concept of audio sampling rate is based on the Nyquist-Shannon sampling theorem, which states that in order to accurately represent an analog signal in digital form, the sampling rate must be at least twice the highest frequency present in the signal. This means that a signal with a highest frequency of 20kHz (the upper limit of human hearing) must be sampled at a rate of at least 40kHz in order to be accurately represented.

Sampling rate is measured in Hertz (Hz), which refers to the number of samples per second. Common sampling rates in digital audio range from 44.1kHz (used in CDs) to 192kHz (used in some high-resolution audio formats).

Sample Rate Conversion

In some cases, it may be necessary to convert audio from one sampling rate to another. Sample rate conversion involves resampling the audio data to a different rate, which can be done using digital signal processing techniques. However, sample rate conversion can introduce artifacts and reduce audio quality, especially when downsampling from a higher rate to a lower rate.

There are various reasons why sample rate conversion may be necessary, such as when mixing audio tracks with different sampling rates, or when preparing audio for distribution on different platforms with varying requirements.

Audio Quality and Sampling Rate

The sampling rate has a significant impact on audio quality, with higher sampling rates generally resulting in better fidelity and more accurate representation of the original signal. However, the benefits of higher sampling rates are limited by the limitations of human hearing and the practical limitations of digital audio technology.

While there is debate about the benefits of “high-resolution audio” formats with sampling rates above 44.1kHz, it is generally accepted that sampling rates above 96kHz provide little additional benefit in terms of audio quality.

Bit Depth and Sampling Rate

The bit depth of an audio sample refers to the number of bits used to represent the amplitude of the signal at each sample point. Higher bit depths allow for more precise representation of the signal, but also result in larger file sizes. The bit depth and sampling rate are related, as increasing the bit depth requires more data to be stored for each sample.

There is a trade-off between sampling rate and bit depth, as higher sampling rates require more data to be stored per second, which can limit the maximum bit depth that can be used without exceeding practical file size limits. However, this trade-off can be mitigated by using efficient audio compression techniques.

Sample Rate in Practice

Common sampling rates in digital audio include 44.1kHz (used in CDs), 48kHz (used in digital video), 88.2kHz, 96kHz, 176.4kHz, and 192kHz. Streaming services such as Spotify and Apple Music typically use lower sampling rates for their audio streams, with 44.1kHz being a common choice.

The Nyquist Theorem, named after the Swedish-American physicist Harry Nyquist, states that the sampling rate should be at least twice the highest frequency component in the signal being sampled. This is why the standard CD quality sampling rate is 44.1 kHz, which is just above the upper limit of human hearing.

However, it is important to note that there are higher sampling rates available, such as 48 kHz, 96 kHz, and even 192 kHz. These higher sampling rates can provide more detail and accuracy in the digital representation of the analog signal. However, they also require more storage space and processing power.

Another important factor to consider is the bit depth, which is the number of bits used to represent each sample. The more bits used, the more accurate and detailed the representation of the analog signal. CD quality uses a bit depth of 16 bits, but higher bit depths such as 24 bits are also available.

It is worth noting that some argue that higher sampling rates and bit depths may not necessarily result in audible improvements in sound quality, especially when considering the limitations of human hearing. Additionally, some argue that the increased storage and processing requirements may not be worth the potential improvements.

In conclusion, the sampling rate is a crucial component in the digital representation of analog audio signals. A higher sampling rate can provide more detail and accuracy in the digital representation, but also requires more storage and processing power. The Nyquist Theorem provides a guideline for choosing the appropriate sampling rate based on the highest frequency component in the signal. Additionally, the bit depth is another factor to consider in the accuracy and detail of the digital representation. While higher sampling rates and bit depths are available, the potential improvements in sound quality must be balanced against the increased storage and processing requirements.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Bit rate

Bit rate

Bitrate

Bit rate refers to the number of bits (bit) transmitted per unit of time, in bps (bit per second).

bit rate

Bit rate is also known as “binary bit rate”, commonly known as “code rate”. Indicates the number of bits transmitted per unit of time. It is used to measure the transmission speed of digital information, often written as bit/sec. According to the number of bits occupied by each image storage frame and the transmission bit rate, the digital image information transmission speed can be calculated [1].
In modern digital communication, the transmission volume of digitized video and other information is large, so it is often measured in kilobits per second or megabits per second, which are written as kbit/sec (or kbps) and Mbit/sec. (or Mbps respectively). ). For example, the amount of information digitized from an ordinary color TV signal can reach 216 Mbit/sec. A good digital broadcast channel can transmit dozens of color TV programs, and its capacity can reach several gigabits or gigabits per second (written as Gbit/sec or Gbps) [1] .
Bitrate is often used to measure the quality of video files.
Bitrate is often used to measure the quality of video files.
flexibility edit stream
Because each network is unique and each access line has different conditions (such as length, attenuation, crosstalk environment, etc.), access lines from different telephone companies must support different data rates. For ADSL and VDSL modems, it is best to set the data rate to one of many possible data rates. For example, DMT-based ADSL and VDSL can theoretically change the tariff at fine intervals, and CAP-based RADSL (Rate Adaptive ADSL) also provides some flexibility in tariff configuration [2].
However, telephone companies may want to limit xDSL service to a small set of rates sufficient to provide a variety of services. If a limited set of tariffs can be adapted to a wide range of services, then the management of the services in this case is simpler than in the case of variable tariffs. Telephone companies want the choice of modem speed to be under the control of the network, not the user [2] .
In this mode, the selection of the transmission rate set of the xDSL network must be prudent. In this case, there is a possibility that two adjacent systems receive traffic at very different rates and the system must be able to handle such a situation. The other model, the “best match” approach using adaptive rate ADSL (similar to a voiceband modem), is more beneficial to new network operators and Internet Service Providers (ISPs) [2] .
Transmission control method
Most bit rate control schemes consist of two parts. Part of the encoded bit stream output by the encoder is fed into a buffer. For a constant bitrate channel, the data in the buffer is fetched at a constant rate, and if the buffer is large enough, the bitrate variation caused by the MPEG picture type, etc. can be smoothed out. This is necessary for both constant bit rate transmission and variable bit rate transmission in general. However, in practice, the buffer size is always limited. The buffering process will bring a delay to the system, and this delay is proportional to the size of the buffer. Latency is often a serious issue for real-time image communication, so buffers should be kept as small as possible. That is, long-term fluctuations in bitrate due to changes in scene content or changes, etc. they cannot be softened in this way, so another part is needed. This is to send some measure of the output bitrate to the encoder to control the encoding process, thus changing the output bitrate [3] .

Quality (bit rate)

Quality (bit rate)

Bit Rate

In multimedia technology, quality is often used to judge the effect of audio, and quality here is actually bitrate.

Bit Rate

1. Introduction
2 sound control
3 encoding mode
Introductionedit transmission
The term quality is widely used.
In multimedia technology, quality is often used to judge the effect of audio, and quality here is actually bitrate.
On WINDOWS it is called “bit rate” and on some players it is described as ” bit rate “.
Quality refers to the bit rate at which digital sound is converted from analog to digital format. The higher the bitrate, the better the quality of the restored sound.
sound control edit stream
16 Kbps = phone quality
24 Kbps = increase phone quality, shortwave transmission, longwave transmission, European standard medium wave transmission
40 Kbps = American standard medium wave transmission
56Kbps=Voice
64 Kbps = boost voice (best bitrate setting for cell phone ringtones, best setting for cell phone mono MP3 players)
112 Kbps = FM stereo broadcast FM 128 Kbps = tape (best setting for mobile phone stereo MP3 player, best setting for low-end MP3 player)
160 Kbps = HIFI high fidelity (best setting for mid to high end MP3 players)
192Kbps=CD (best setting for high-end MP3 players)
256Kbps=Studio Music Studio (for music enthusiasts)
In fact, with the advancement of technology, the quality of music is also getting higher and higher, the highest quality of MP3 is 320Kbps, but some formats can achieve higher sound quality.
For example, the emerging APE audio format can provide real audiophile level lossless sound quality and smaller volume than WAV format, and its quality is usually 550kbps-950kbps.
encoding modeedit stream
VBR (Variable Bitrate) Dynamic Bitrate means there is no fixed bitrate. The compression software immediately determines which bitrate to use based on the audio data being compressed. This is a method that takes quality as a premise and takes file size into account The recommended encoding mode;
ABR Average Bit Rate (Average Bit Rate) is an interpolation parameter of VBR. LAME created this encoding mode in response to the low file volume ratio of CBR and the variable size of files generated by VBR. Within the specified file size, ABR takes every 50 frames (about 1 second for 30 frames) as a segment. High-frequency and insensitive frequencies use relatively low traffic, and low-frequency and large dynamic performance use high traffic, which can be used as VBR and CBR, a compromise option.
CBR (constant bitrate), constant bitrate means the file has one bitrate from start to finish. Compared to VBR and ABR, the compressed file size is very large and the sound quality will not improve significantly compared to VBR and ABR.

What is the difference between 128k and 320k music? Part 2

What is the difference between 128k and 320k music? Part 2

Bit Rate

In simple terms, we can think of a sound wave as a curve.

Bit Rate

We know that the curve is made up of points, and the sampling rate is the number of points in the middle of the length per second (the horizontal axis in the figure above). Sampling precision is the number of points in the dynamic range (upper vertical axis). The finer the positioning of these two dimensions, the greater the true sound restoration and the better the sound quality. Of course, the larger the audio file will be. The customer mentioned by the above colleague said that the latest Hi-Res Audio format released by SONY is a 6-channel 192kHz/24-bit recorded audio file. The size of the lossless format, of course, will be more than 200 megabytes.

The sampling frequency is approximately the following depending on the type of use (k is the thousand-bit symbol, 1khz=1000hz):

8khz: used for phones etc, is enough to record human voices.

22.05khz: transmission use frequency.

44.1kb: Audio CD.

48khz: used in DVD and digital TV.

96khz-192khz: used for DVD-Audio, Blu-ray HD, etc.

The common range of sample precision is 8 bits to 32 bits, with 16 bits generally used on CD.

Having said that, my friends are starting to get confused. It’s not the bitrate that determines the sound quality, so why is everyone saying that 320kb sound quality is better than 128kb?

【Audio Compression】

Well, in fact, the bit rate should be said to be another dimension, it is a compression of audio files.

Nowadays, most of the audio formats we use regularly are based on the original “WAV” file of the audio CD (44.1khz sample rate, 16bit sample precision, 2ch). The original recorded sound data is stored in a matrix, which is in PCM format, while WAV format is an encoding format developed by Microsoft. Its function is to reproduce the data in PCM format through encoding.

Since the data in WAV basically completely restores the PCM data, MP3, AAC and other lossless encoding formats are basically recompressed based on the WAV files. Therefore, we can simply think that WAV is the original audio format and other audio formats are compressed formats.

When it comes to compression, storage and transmission are inseparable. The purpose of compression is to improve storage and transmission, so before we talk about compression, we need to understand the basic units of computers.

We all know that the computer is a binary number system, and the files stored by the computer are made up of two numbers, 0 and 1. Therefore, the computer’s transmission is based on each number, and each number is called 1 ” bit”. For example, for an audio piece, its basic data is “0,1,1,1,0,1, 1 ,0”, and when transmitting, these numbers are transmitted one by one. The sampling precision mentioned above is this unit.

The storage unit of the computer is “byte (Byte)”. In the computer, 1 byte consists of 8 bits, that is, 8b(bit)=1B(Byte). In computer parlance, data storage is expressed in decimal and data transmission is expressed in binary, so 1KB=1024B=1024×8b. This is also part of the reason why the hard drive capacity we see does not match the actual capacity.

Go back and talk about audio compression, the bitrate of the audio is actually the compression ratio. So the bitrate really just defines the size of the file, but because under normal conditions the larger the file, the less data you lose, so the sound quality is relatively higher. However, the bit rate itself does not directly affect the quality of the file. For example, if we take a 128kb file as the source file, even if it is converted to a 320kb file, the sound quality will not be better than 128kb. .

What is the difference between 128k and 320k music?

What is the difference between 128k and 320k music?

Bit rate comparision

192k is a turning point. Below 192K, the sound quality is relatively damaged, especially the high-frequency part above 16Khz will be cut off.

bitrate

In a nutshell, mp3s above 192k can no longer be listened to with CD sound quality on ordinary home devices, except for Golden Ears and Hifi devices. Of course, these data are not 100% reliable. There are always people on the internet sharing fake mp3 above 192K. In fact, they are converting low bitrate music to high bitrate through software, but the sound quality will not improve. be improved. Windows Media Player compresses it. The resulting mp3 is absolutely wonderful, no matter how high the compressed bitrate is, it will cut perfectly around 16K.

Some time ago, a colleague came across a very troubled client. The mess was said to have been caused by the client asking him to provide song files larger than 100MB-200MB in size. And my colleagues don’t know much about audio formats, so they started endlessly fumbling about FLAC, WAV and audio size. In the end, the colleague did not explain to the client what was going on.

After that, other things happened that made me feel that in the music industry there are too many practitioners around me who have an extremely poor understanding of music and even lack some basic knowledge related to music. I don’t even have the idea to understand, which makes me very sad. It seems that music has only one merchandise attribute, and our practitioners only need to organize the shelves, encode various merchandise, and use the big data of users’ purchase records to recommend merchandise to users, no matter why to users. they like this. features that these products have, and use cold data to provide users with various services.

Therefore, I think it is necessary to write something. I don’t expect practitioners to become people who really love music. I just hope that even if you still think of “her” as a commodity, you can first figure out what you’re selling. and what is..

PS: The content of the first lesson is about media files. Since the relevant content involves a lot of technical stuff, it seems a bit boring, but if you read it carefully, you will find that it is actually very easy to understand, but this basic knowledge can be very helpful.

Bit Rate, Sample Rate, Lossless, MP3, FLAC, APE, 320kb, 192kb, 128kb, 44.1khz, CBR, VBR. Does this bunch of various names make you both familiar and unknown?

The higher the bitrate, the better the sound quality. Lossless music is the highest sound quality, right? So, let’s start with the sound collection.

【Audio composition】

Nowadays, when we talk about audio, everything is digital audio. Digital audio consists of three parts: sample rate, sample precision, and number of sound channels.

Sample Rate: Both the sample rate, which refers to the number of samples per second when recording the sound, expressed in Hertz (Hz).

Sampling Precision: Refers to the dynamic range of the recorded sound, measured in bits (Bit).

Bit rate, what is it?

Bit rate, what is it?

Bit Rate

as a feature of digital audio and video

Bit rate

Bitrate: literally, the information bit rate. It is common to use the bit rate when measuring the effective information transmission rate through the channel, that is, the “payload” transmission rate (in addition to that, the channel can transmit service information, for example, start and stop symbols for asynchronous transmission or control symbols for redundant coding). The baud rate, which takes into account the total bandwidth of the channel, is measured in baud.

Bit rate is the number of units of information required to store (transmit) one second of a stream of data (generally audio and video files). It is generally measured in ‘kbps’, kilobits per second.

The term bit rate is used in two basic meanings
: channel or device characteristic: the maximum number of bits that can be transmitted per unit of time.
– The size of the data stream transmitted in real time (the minimum size of the channel that can pass this stream without delay).
– A special case is the compressed video or audio bit rate.
Bitrate is expressed in bits per second (bit / s, bps), as well as values ​​derived with the prefixes kilo, mega, etc.

The term bit rate (in conjunction with subjective quality criteria) is often used as a characteristic to evaluate the performance of lossy compression algorithms.

Bitrate characterizes both the density of the information package and its quality. For example, out of two MP3 files compressed with different bit rates, a file with a higher bit rate will have higher sound quality (close to the original). At the same time, a file of a different format, with the same bit rate, can offer both better and worse sound quality.

On an audio CD, information is losslessly encoded at a constant 1407 kbps bit rate.

The MP3 format allows you to encode audio information with constant or variable bit rates from 32 to 320 kbps, that is, they provide five times the compression compared to CD.

Bit rate as a characteristic of digital video and audio

In streaming video and audio formats (such as MPEG and MP3) that use lossy compression, the bit rate parameter expresses the degree of compression of the stream and therefore determines the size of the channel for which it is compressed data transmission. Most of the time, the audio and video bit rate is measured in kilobits per second (kilobits per second in English – kbps), less often – in megabits per second (for video only).

There are three compression modes for data transmission:

– with a constant bit rate (constant bit rate in English – CBR)
– with a variable bit rate (variable bit rate in English – VBR)
– with an average bitrate (English Average Bitrate – ABR)

Variable and average bit rate

The codec chooses the required bit rate based on the parameters (the level of the desired quality) and, during the encoded chunk, the bit rate may change. When compressing audio, the desired bit rate is determined based on the psychoacoustic model. ABR is a variation of VBR in which the codec is compressed to a specified average value.

What is bitrate: a clear explanation for beginners

Bit Rate

Once a student was teaching a class and asked me to give him the clearest possible explanation of what bitrate meant.

Today I am going to share with you that explanation that although it does not refer to sound but an image in the background, it is the same and is very easy to understand.

bit rate

Imagine that you put me in front of a beautiful landscape full of rivers and trees, mountains and Valleys with some Villas with Fields full of flowers and animals.

There is a lot of information there if I had to make a detailed description.

Imagine that you ask me to give you a description in 4 words.

It would have to make a very general description that, being very brief, Nova contains details. Maybe I’ll say something like “a beautiful autumn landscape.”

if after that you tell me that now I will have 14 words to describe what I am seeing.
I’ll be able to give more information Although it will really continue to be very summary, but you could already give some details.
“a beautiful autumn landscape with fields and mountains that have houses, flowers and animals”

If they ask me for the following explanation and they already allow me to use 50 words, I will be able to give many more details.
Although of course I will still have to omit a lot of details.

How many words might I need to give a detailed, spoken portrait of what I am looking at?

Well, this example that I just gave of the four words at the beginning then 15 words later have maybe 500 words later is exactly what the bit rate is.

We are talking about what is the amount of information that our audio or video file can transmit per second and obviously The higher the information There will be more details and therefore a higher quality and on the contrary the lower the information the lower the details and therefore lower quality.

That’s why a bit rate of 320 thousand bits per second will have a much higher audio quality than one of 90,000 bits per second.

Because in music, images and video, the quality always depends on the amount of information.

And in the specific case of audio and video, the amount of information is measured by seconds.

This means how much information it can transmit per second, that is, how many bits it can transmit per second, which means How much information and therefore How much detail, which is synonymous with quality.

With this we will understand very easily that as well as the sampling frequency is also very important and we will explain it in another article.
The rate of bits that are transmitted per second is crucial in determining the quality that an audio or video will have.

Of course, it must be understood that the higher the bit rate per second, the larger the size of the audio file will be because the greater the amount of information stored will be, but this will result in higher quality and greater definition.

Because here the definition concept is crucial.
The higher the bit rate the higher the definition and therefore the higher the quality.

The definition would be the detail of our initial explanation, if they let me use 2000 words to describe a landscape, I will be able to give many details and define them with great clarity. And that will mention a lot of quality.

This As-is applies to audio or video files.

Surely with this explanation it has been much clearer what is the rate of bits per second and why it is important.