The Wayback Machine - https://web.archive.org/web/20240819212332/https://www.geeksforgeeks.org/audio-format/
Open In App

Audio Format

Last Updated : 14 Jun, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Audio format defines the quality and loss of audio data. Based on application different type of audio format are used. Audio formats are broadly divided into three parts:

  1. Uncompressed Format
  2. Lossy Compressed format
  3. Lossless Compressed Format

1. Uncompressed Audio Format:

  • PCM –
    It stands for Pulse-Code Modulation. It represents raw analog audio signals in digital form. To convert analog signal into digital signal it has to be recorded at a particular interval. Hence it has sampling rate and bit rate (bits used to represent each sample). It a exact representation of the analog sound and do not involve compression. It is the most common audio format used in CDs and DVDs

  • WAV –
    It stands for Waveform Audio File Format, it was developed by Microsoft and IBM in 1991. It is just a Windows container for audio formats. That means that a WAV file can contain compressed audio. Most WAV files contain uncompressed audio in PCM format. It is just a wrapper. It is compatible with both Windows and Mac.

  • AIFF –
    It stands for Audio Interchange File Format. It was developed by Apple for Mac systems in 1988. Like WAV files, AIFF files can contain multiple kinds of audio. It contain uncompressed audio in PCM format. It is just a wrapper for the PCM encoding. It is compatible with both Windows and Mac.

2. Lossy Compressed Format:
It is a form of compression that loses data during the compression process. But difference in quality no noticeable to hear.

  • MP3 –
    It stands for MPEG-1 Audio Layer 3. It was released in 1993 and became popular. It is most popular audio format for music files. Main aim of MP3 is to remove all those sounds which not hearable or less noticeable by humans ears. Hence making size of music file small. MP3 is like universal format which is compatible almost every device.

  • AAC –
    It stands for Advanced Audio Coding. It was developed in 1997 after MP3.The compression algorithm used by AAC is much more complex and advanced than MP3, so when compared a particular audio file in MP3 and AAC formats at the same bitrate, the AAC one will generally have better sound quality. It is the standard audio compression method used by YouTube, Android, iOS, iTunes, and PlayStations.

  • WMA –
    It stands for Windows Media Audio. It was released in 1999.It was designed to remove some of the flaws of MP3 compression method. In terms of quality it is better than MP3. But is not widely used.

3. Lossless compression:
This method reduces file size without any loss in quality. But is not as good as lossy compression as the size of file compressed to lossy compression is 2 and 3 times more.

  • FLAC –
    It stands for Free Lossless Audio Codec. It can compress a source file by up to 50% without losing data. It is most popular in its category and is open-source.

  • ALAC –
    It stands for Apple Lossless Audio Codec. It was launched in 2004 and became free after 2011. It was developed by Apple.


Similar Reads

How to extract Audio Wave from a mixture of Signal using Scipy - Python?
Prerequisites: Scipy Spectral Analysis refers to analyzing of the frequency spectrum/response of the waves. This article as the title suggests deals with extracting audio wave from a mixture of signals and what exactly goes into the process can be explained as: Consider we have 3 mixed Audio Signals having frequency of 50Hz,1023Hz & 1735Hz resp
7 min read
How to Concatenate Audio Files in Python
Introduction Concatenating audio files is a common task in audio processing, and it can be done easily using Python. In this article, we will go over how to concatenate audio files using the pydub module. Installation pip install pydub Approach Install the pydub module using pip and then import the module using from keyword in Python.Enter your mp3
2 min read
Operations on Audio/Video files using ffmpeg, avconv, and youtube-dl
This article aims to explain how to perform the following operations on audio files using a linux terminal: Download a youtube video Convert Audio/Video files between various formats Combine two mp3 files Play audio and video files on the terminal Installation sudo apt-get update sudo apt-get install python3-pip sudo pip3 install youtube-dl sudo ad
2 min read
Java | Date format validation using Regex
We use java.util.regex.Pattern.compile(String regex) method which compiles the given regular expression into a pattern. Here regex is the expression to be compiled. // Java program to check if given date is // valid or not. import java.util.regex.Matcher; import java.util.regex.Pattern; public class GeeksforGeeks { // Returns true if d is in format
1 min read
Computer Organization | Problem Solving on Instruction Format
Prerequisite - Basic Computer Instructions, Instruction Formats Problem statement: Consider a computer architecture where instructions are 16 bits long. The first 6 bits of the instruction are reserved for the opcode, and the remaining 10 bits are used for the operands. There are three addressing modes: immediate, direct, and register. For immediat
7 min read
Common Video Format
Whenever a video file is saved it contains two file in it. One is the container and other is codecs. Container defines the structure of the video file and which codecs will be used. Codecs is used to compress and decompress video file. Some of common container format are: Flash Video Format (.flv) This video format is very popular due to the availa
2 min read
Convert an image into jpg format using Pillow in Python
Let us see how to convert an image into jpg format in Python. The size of png is larger when compared to jpg format. We also know that some applications might ask for images of smaller sizes. Hence conversion from png(larger ) to jpg(smaller) is needed. For this task we will be using the Image.convert() method of the Pillow module. Algorithm : Impo
2 min read
Ethernet Frame Format
Prerequisite - Introduction to Ethernet Basic frame format which is required for all MAC implementation is defined in IEEE 802.3 standard. Though several optional formats are being used to extend the protocol's basic capability. Ethernet frame starts with Preamble and SFD, both work at the physical layer. Ethernet header contains both the Source an
6 min read
Vector of Vectors in C++ STL with Examples
Prerequisite: Vectors in C++ STL Vectors are known as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container. Vector of Vectors is a two-dimensional vector with a variable number of rows where each row is vector. Each index of vector stor
5 min read
Features of C Programming Language
C is a procedural programming language. It was initially developed by Dennis Ritchie in the year 1972. It was mainly developed as a system programming language to write an operating system. The main features of C language include low-level access to memory, a simple set of keywords, and a clean style, these features make C language suitable for sys
3 min read
C++ Tutorial | Learn C++ Programming
If you look for the superset and successor of the C language, you will find C++. If you are familiar with the C language and seeking to upgrade yourself in the world of the C language, this C++ programming tutorial is right for you. This free C++ tutorial gives you a detailed overview of the basic and advanced concepts of C plus plus. So if you are
5 min read
Java Assignment Operators with Examples
Operators constitute the basic building block of any programming language. Java too provides many types of operators which can be used according to the need to perform various calculations and functions, be it logical, arithmetic, relational, etc. They are classified based on the functionality they provide. Types of Operators: Arithmetic OperatorsU
7 min read
Java Arithmetic Operators with Examples
Operators constitute the basic building block to any programming language. Java too provides many types of operators which can be used according to the need to perform various calculations and functions, be it logical, arithmetic, relational, etc. They are classified based on the functionality they provide. Here are a few types: Arithmetic Operator
6 min read
For Loop in Java
Loops in Java come into use when we need to repeatedly execute a block of statements. Java for loop provides a concise way of writing the loop structure. The for statement consumes the initialization, condition, and increment/decrement in one line thereby providing a shorter, easy-to-debug structure of looping. Let us understand Java for loop with
7 min read
Building Heap from Array
Given an array of N elements. The task is to build a Binary Heap from the given array. The heap can be either Max Heap or Min Heap. Examples: Input: arr[] = {4, 10, 3, 5, 1}Output: Corresponding Max-Heap: 10 / \ 5 3 / \4 1 Input: arr[] = {1, 3, 5, 4, 6, 13, 10, 9, 8, 15, 17}Output: Corresponding Max-Heap: 17 / \ 15 13 / \ / \ 9 6 5 10 / \ / \ 4 8 3
14 min read
Insertion and Deletion in Heaps
Deletion in Heap:Given a Binary Heap and an element present in the given Heap. The task is to delete an element from this Heap. The standard deletion operation on Heap is to delete the element present at the root node of the Heap. That is if it is a Max Heap, the standard deletion operation will delete the maximum element and if it is a Min heap, i
15+ min read
Data encryption standard (DES) | Set 1
This article talks about the Data Encryption Standard (DES), a historic encryption algorithm known for its 56-bit key length. We explore its operation, key transformation, and encryption process, shedding light on its role in data security and its vulnerabilities in today's context. What is DES?Data Encryption Standard (DES) is a block cipher with
15+ min read
Priority Queue in Python
Priority Queues are abstract data structures where each data/value in the queue has a certain priority. For example, In airlines, baggage with the title “Business” or “First-class” arrives earlier than the rest. Priority Queue is an extension of the queue with the following properties. An element with high priority is dequeued before an element wit
2 min read
Introduction to Internet of Things (IoT) - Set 1
IoT stands for Internet of Things. It refers to the interconnectedness of physical devices, such as appliances and vehicles, that are embedded with software, sensors, and connectivity which enables these objects to connect and exchange data. This technology allows for the collection and sharing of data from a vast network of devices, creating oppor
9 min read
Language Processors: Assembler, Compiler and Interpreter
Computer programs are generally written in high-level languages (like C++, Python, and Java). A language processor, or language translator, is a computer program that convert source code from one programming language to another language or to machine code (also known as object code). They also find errors during translation. What is Language Proces
5 min read
Block Cipher modes of Operation
Encryption algorithms are divided into two categories based on the input type, as a block cipher and stream cipher. Block cipher is an encryption algorithm that takes a fixed size of input say b bits and produces a ciphertext of b bits again. If the input is larger than b bits it can be divided further. For different applications and uses, there ar
5 min read
Carrier Sense Multiple Access (CSMA)
This method was developed to decrease the chances of collisions when two or more stations start sending their signals over the data link layer. Carrier Sense multiple access requires that each station first check the state of the medium before sending. Prerequisite - Multiple Access Protocols Vulnerable Time: Vulnerable time = Propagation time (Tp)
6 min read
vector::push_back() and vector::pop_back() in C++ STL
Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container. vector::push_back() push_back() function is used to push elements into a vector from the back. The new value is inserted into the vector at the end, after the cur
4 min read
Phases of a Compiler
Prerequisite - Introduction of Compiler design We basically have two phases of compilers, namely the Analysis phase and Synthesis phase. The analysis phase creates an intermediate representation from the given source code. The synthesis phase creates an equivalent target program from the intermediate representation. A compiler is a software program
7 min read
Introduction of Compiler Design
The compiler is software that converts a program written in a high-level language (Source Language) to a low-level language (Object/Target/Machine Language/0, 1's). A translator or language processor is a program that translates an input program written in a programming language into an equivalent program in another language. The compiler is a type
9 min read
Introduction of Theory of Computation
Automata theory (also known as Theory Of Computation) is a theoretical branch of Computer Science and Mathematics, which mainly deals with the logic of computation with respect to simple machines, referred to as automata. Automata* enables scientists to understand how machines compute the functions and solve problems. The main motivation behind dev
3 min read
What is MAC Address?
To communicate or transfer data from one computer to another, we need an address. In computer networks, various types of addresses are introduced; each works at a different layer. A MAC address, which stands for Media Access Control Address, is a physical address that works at the Data Link Layer. In this article, we will discuss addressing a DLL,
13 min read
Difference Between Structure and Union in C
Structures in C is a user-defined data type available in C that allows to combining of data items of different kinds. Structures are used to represent a record. Defining a structure: To define a structure, you must use the struct statement. The struct statement defines a new data type, with more than or equal to one member. The format of the struct
4 min read
Make largest palindrome by changing at most K-digits
Given a string containing all digits, we need to convert this string to a palindrome by changing at most K digits. If many solutions are possible then print lexicographically largest one.Examples: Input : str = “43435” k = 3Output : "93939" Explanation:Lexicographically largest palindrome after 3 changes is "93939" Input : str = “43435” k = 1Output
15 min read
Count number of substrings with exactly k distinct characters
Given a string of lowercase alphabets, count all possible substrings (not necessarily distinct) that has exactly k distinct characters. Examples: Input: abc, k = 2Output: 2Possible substrings are {"ab", "bc"} Input: aba, k = 2Output: 3Possible substrings are {"ab", "ba", "aba"} Input: aa, k = 1Output: 3Possible substrings are {"a", "a", "aa"} Recom
15+ min read
Article Tags :
Practice Tags :
three90RightbarBannerImg