In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Redmi Note 9/S/Pro

[Discussion] [Device Tech Bytes #32] All You Need to Know About Audio Codecs

2021-01-12 12:01:37
2982 56
Wassup Mi fans..!
How are you all,
          In the last week, we learned about the "All About HEIF & HEIC Image Formats!" By @cherri . So, today I’m back with a fascinating topic for you guys i.e “All You Need to Know About Audio Codecs”. With the MP3 gone, what audio codecs are poised to become the new standard? Let’s talk about compression, modern audio codecs, and the future of audio. In 2017 the patents for MP3, held by The Fraunhofer Institute, expired. As 2018 unfolds, more and more manufacturers are pulling support for the codec. The MP3 format is one of the most widely known audio codecs, and it was largely responsible for the explosion of the digital audio world.

What are Audio Codecs..?
Codec is short for encode/decode. They can be hardware or software — both take the analog signal input and convert it to a digital format. The decode function is the exact same process but reversed to allow the digital data stream to be converted into analog sound waves for output.
There are three categories of codec: Uncompressed, Lossy, and Lossless.

Uncompressed: Uncompressed audio files encode the full audio input signal into a digital format capable of storing the full load of the incoming data. They offer the highest quality and archival capability that comes at the cost of large file sizes and high latency (non-real-time playback), prohibiting their widespread use in many cases.

Lossy: Lossy files are encoded differently than uncompressed. The essential function of analog-to-digital conversion remains the same in lossy encoding techniques. Lossy diverges from uncompressed, as the frequency of the input sound waves is sampled down to an approximately similar digital value. The sum total of all of these possible digital values gives the codec what is known as its bit depth. The bit depth of the codec, 16-bit or 24-bit most commonly, determines how accurately the sound is being “quantized” the process of sampling used to round the incoming sound waves to their nearest values. Lossy codecs throw away a considerable amount of the information contained in the original sound waves. Because of this, lossy audio files are vastly smaller than uncompressed ones and offer much lower latency playback, allowing for use in live audio scenarios.

Lossless: Lossless encoding stands as the middle ground between uncompressed and lossy. It grants similar audio quality to uncompressed at significantly reduced sizes. Lossless codecs achieve this by compressing the incoming audio in a non-destructive way on encoding before restoring the uncompressed information on decode.

History of Audio Codecs
Since the first known audio recording in 1860 on a Phonautograph, audio recording and playback technology have been in a constant state of flux. The 20th century introduced the era of the professional sound recordists and engineers, the age of transmission of audio across radio waves, massive advancements in audio quality and technology, and continued growth in the audio industry and trade in general. In 1982, the audio world took its first steps into the new millennium with the first-ever digital audio format — the compact disc. Built on the groundbreaking Pulse Code Modulation (PCM) technology, the CD was able to store analog sound waves as digital values by “quantizing” them to their nearest supported digital value.

          Pulse Code Modulation sparked a new era of innovation for digital audio formats. Within a decade, recognizable modern codecs like MP3 and WAV were gaining traction. The early 2000s saw the first wave of lossless audio codecs that brought digital quality even higher without the trade-off of large file sizes. But these superior formats were unprepared for the MP3 player craze of the early ’00s. Apple’s iPod brought the masses to the world of digital audio, and the MP3 became the standard for audio playback worldwide.

The Codecs of Today
There are many audio codecs in heavy use across a myriad of industries today. Many of the entries on this list were introduced decades ago, but there are a few new codecs shining a light on the potential that the future of audio codecs holds.

AMR — Adaptive Multi-Rate: The AMR Codec family is one of the most commonly used audio formats in the world. This is large because it is the de facto audio standard on mobile phones. AMR is optimized for speech, which means it is a low-quality, low-bandwidth, low-latency codec. AMR was not developed for music or high-quality audio recording or playback.

FLAC — Fully Lossless Audio Codec: FLAC is considered by many to be the better version of MP3. It compresses files to remarkably small sizes and does so without any perceived loss in audio quality. FLAC files are very lightweight and versatile and can be played back on any device that can play MP3s. And it’s open-source, which wins it all sorts of awards in my book, notably third-party implementations of the codec and its features.

WAV-Waveform Audio File Format: Waveform Audio File Format, commonly shortened to WAV, has been an industry workhorse for almost three decades. The secret of its sticking power is the codec’s simplicity and durability. WAVs generally offer some of the highest-quality uncompressed audio without the need for transcoding. Its stability means that often WAV files that have been damaged or corrupted will still playback.

ALAC — Apple Lossless Codec: Released in 2004, Apple Lossless Codec, or Apple Lossless, supports eight channels of audio up to a 32-bit depth and maximum sample rate of 384kHz. In 2011, Apple made ALAC open-source and royalty-free.

AAC — Advanced Audio Coding: AAC was created by the Fraunhofer Institute the same engineers behind MP3 compression. With the expiration of MP3 earlier this year, the Fraunhofer Institute recommends AAC as its replacement codec. AAC is a lossy format whose main selling point is its significantly higher sound quality than MP3 at the same bit rates.

DSD: Direct Stream Digital: DSD is a unique high-quality audio codec. The underlying technology behind DSD is a bit different than the standard Pulse Code Modulation found in most other codecs. DSD employs Pulse-Density Modulation encoding reducing the resolution of the bitstream and increasing the sample rate to 2.8 million times per second to generate the audio signal. DSD has limited use in the audio world, serving largely as an audiophile codec to be played back on specialty hardware.

Opus: Opus is the most modern codec to make this list. Released in 2012, it was developed to serve as a single standard for several applications where there were multiple before. Opus was created with the needs of the modern world in mind central to its philosophy is high-quality, low-latency audio suitable for network communications and live music performances. Its latency can be reduced to as low as 5 ms — most other codecs can barely offer 100ms of latency, by comparison.

The Future
While the myriad of formats to choose from today might be overwhelming, the time is ripe to start setting expectations for the codecs to come. There is much to learn from codecs of the recent and more distant past. The WAV’s reliable simplicity and universal functionality, FLAC’s fully lossless open-source model, Opus’s optimization for voice and general audio technology has changed radically, so why shouldn’t our codecs?

I hope you understood this topic
Stay tuned we will be back with another soon.

Previous Tech Byte Series:


Number of participants 1 Experience +15 Pack Reason

View Rating Log

2021-01-12 12:01:37
Favorites34 RateRate

Wizard Bunny

BeingBishal | from Mi 9T Pro


Informative Thread!
2021-01-12 13:10:42

Master Bunny

Leonitis | from Redmi Note 9 Pro


Thanks for sharing, interesting article and information.
2021-01-12 13:33:03

Super moderator

Crossfiree | from MI CC9 Pro


2021-01-12 13:50:53

Master Bunny

JRRiquelme | from Mi 9T Pro


Thanks for sharing . Great thread . Similar to WAV you should mention AIFF .
2021-01-12 13:56:39

Device Team

Arun Abhimanyu Author | from Redmi Note 7 Pro


Thanks for sharing . Great thread . Similar to WAV you should mention AIFF .

Okay. thanks for the suggestion
2021-01-12 14:25:37

Master Bunny

Life on Mars | from Redmi Note 8 Pro


Great thread about compression formats . Thanks for sharing this information
2021-01-12 14:31:37

Pro Bunny

sastraMR | from Redmi Note 9 Pro


thanks 👍👍👍
2021-01-12 14:36:11
Great . A very interesting thread . Thanks for sharing this knowledge .
2021-01-12 14:38:01
Invalid floor, the posts have been deleted #9

Mi Gamer Team

Afiq Firdaus Aladin | from MI MAX 2


2021-01-12 16:16:27
please sign in to reply.
Sign In Sign Up

Arun Abhimanyu

Device Team

  • Followers


  • Threads


  • Replies


  • Points


3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
Nov-100 replies in a month
Dec-100 replies in a month
100 ответов в декабре
Newbie Member
Mi Apps
Christmas 2017
2018 New Year Medal
MIUI Instagram
2017 Xiaomi Annual Bill
Mi Community Updater
Color Your Planet
Color Our Planet Game
The Motivator
MIUI 8th Anniversary
Dirgahayu ke-73 Indonesia
New Home
10k Mi Fans
Redmi Note 7
Cast Away
20K Mi Fans
Mi Love U & I
Bunny Winner
Best Mi
Happy Mother's Day
Android Q
50K Mi Fans
Mobile Photography Lover
70K Mi Fans
Eid ul-Fitr Mubarak
15K UK
100K Mi Fans
Selfie Day
Happy July
Mi 9T
Global Fans
My Country My Pride
Check in
MIUI 9th Birthday
Global Community
Mi A3
better together slogan
Global Community
better together with friends
Super Saturday
Puzzle Master
Mid-Autumn Festival
30K UK
200K Mi Fans
400K Mi Fans
300K Mi Fans
500K Mi Fans
step up
close up
Best Photo
Redmi Note 8 Series
Art Challenge
Father's Day
Design Together
Mother's Day
10 years
K2K #3
Emoji Day
design wallpaper
First Anniversary
10th mi fan stories
K2K #4
10 years
Mitu Shares Vol.1
Ringtone Medal
Music Medal

Read moreGet new

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright©2010-2020, All Rights Reserved
Quick Reply To Top Return to the list