Before everything starts, there is a question for everyone: Why do you need to compress a file? You are confused and decide to ignore this question for the time being and download something. After opening "Net Depression Cloud", you find a few songs you like in the daily recommendations. You are so excited that you feel you have met true love, so you immediately click to download and want to take these songs for yourself. In the download options, you find that there are several options: highest sound quality, very high sound quality, and normal sound quality. You think you must take care of your ears when listening to songs, so you choose the highest sound quality. As a result, "Net Depression Cloud" asks you to buy a membership, so you are angry... and choose the very high sound quality.
Recalling the question just now, you suddenly wonder if ultra-high quality sound is the highest quality sound with some compression? Because the file size of ultra-high quality sound is smaller than that of the highest quality sound. The answer is of course yes. Although the sound quality of ultra-high quality sound is not as nice as that of the highest quality sound, smaller files take up less disk space and are more convenient for data transmission, so compression technology is very important for audio. Of course, compression technology can also tempt people to spend money...
Now let's take a look at the compression method in audio. First, let's look at the formula of file size:
File size = duration * sampling rate * bit depth * number of channels
Since the duration of an audio cannot be changed, we can only start by reducing the sampling rate/bit depth/number of channels.
Let's first look at the sampling rate. The higher the sampling rate, the better the quality of an audio clip. Commonly used sampling rates are shown in the figure:
You can see that the lowest sampling rate is 11025Hz, which is used for voice and AM radio. You can see that the sampling rate of FM radio is twice that of AM, which is why we usually choose FM xxx instead of AM xxx when listening to the radio in our private cars, because FM has better sound quality. If you are interested, you can listen to the two types of radio next time you are in the car and compare them.
Another way to compress audio is to reduce the bit depth. Common bit depths are 8-bit and 16-bit. Compressing a 16-bit audio file of about 10MB to 8-bit can reduce the file size by about 5MB. Generally speaking, the bit depth of ordinary speech (with no high requirements for sound quality) is 8-bit, while for music with higher requirements for sound quality, the bit depth is usually 16-bit. After all, no one wants to listen to a song full of noise.
So what is the number of channels? Generally speaking, stereophonic audio is a method of sound reproduction, usually with at least two audio channels, which can create a feeling of "I hear the sound coming from two directions!", making the audio three-dimensional and closer to natural audio. For a stereo with two audio channels, the size of the audio file will be halved by reducing one channel. However, this operation will damage the sound, so it is only suitable for short sound effects or voices, and is not suitable for use in music.
In addition, audio files are not suitable for lossless compression, because consecutive audio samples with the same value are not common. Common audio compression methods are lossy compression, such as mp3. But mp3 provides a good compression rate while maintaining the quality of the audio.
Previous article:Design of traceability system for color TV components based on object code
Next article:Research and application of low-cost direct-lit TV backlight system
- Popular Resources
- Popular amplifiers
- Red Hat announces definitive agreement to acquire Neural Magic
- 5G network speed is faster than 4G, but the perception is poor! Wu Hequan: 6G standard formulation should focus on user needs
- SEMI report: Global silicon wafer shipments increased by 6% in the third quarter of 2024
- OpenAI calls for a "North American Artificial Intelligence Alliance" to compete with China
- OpenAI is rumored to be launching a new intelligent body that can automatically perform tasks for users
- Arm: Focusing on efficient computing platforms, we work together to build a sustainable future
- AMD to cut 4% of its workforce to gain a stronger position in artificial intelligence chips
- NEC receives new supercomputer orders: Intel CPU + AMD accelerator + Nvidia switch
- RW61X: Wi-Fi 6 tri-band device in a secure i.MX RT MCU
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- SBUF, TI/RI, ES
- [Xingkong Board Python Programming Learning Main Control Board Evaluation] Development Environment and Boot Configuration
- [GigaDevice GD32F310 Review] +KEY expansion and parameter settings
- Issues related to the initial value of the RAM inside the MCU after power-on
- Prize-winning live broadcast: Building a sensor-based test system using NI CompactDAQ and LabVIEW Sign up now!
- There is a problem with the secondary amplifier circuit, please help!
- What's new in TI BOM and Cross Reference Tools?
- [Mil MYC-JX8MPQ Review] + Communication between heterogeneous processors
- Share the solution to the problem that MSP430 CCS6.2 cannot start simulation
- [Project Source Code] Summary of Common Knowledge Points of Custom IP in NIOS II SOPC System