Audio is a very important part of any digital media. Since audio or sound is a wave (a literal, continuous wave) it is analog in nature. This means that it cannot be stored and processed by the computer directly, as a computer only understands digital signals.
So naturally, engineers found a way to convert these analog signals into digital signals. They've also developed a method to save them in digital format. I'm talking about audio codecs.
Audio codecs, in simpler terms, are just encoders and decoders (co - coders, dec - decoders, or co - compressor, dec - decompressor). They can be implemented as hardware codecs, which encode analog audio to digital audio and vice versa.
An example of such codecs are sound cards in your computer, which have built-in analog-to-digital (ADC) and digital-to-analog (DAC) circuits.
The software counterpart is an algorithm that compresses and decompresses digital audio. Some examples of such codecs are MP3, FLAC, WAV, and AAC.
Today, we'll be looking at software encoders and we'll focus our attention on the WAV format.
What compression means in audio codecs
Audio compression algorithms are divided into two categories: Lossless and Lossy. So what's the difference between these two?
These algorithms may perform some kind of compression on the audio, but it doesn't remove any audio data, thus nothing is lost. The tradeoff is that you have very large file sizes.
In this type of compression, some part of audio fidelity, deemed inaudible/indistinguishable to human ears, is removed or has its fidelity (or accuracy or loudness) reduced. Compression is also performed after this step. You can read more about it here.
Unless you have a very good HI-FI sound system that can reproduce those extra fidelity sounds, you should go for lossy. It will save space and remove extra data that you might never even hear.
Now that you understand audio compression, let's move on to the main topic of this article.
What is WAV?
WAV (or WAVE) stands for Waveform Audio File Format. It was developed by IBM and Microsoft. The file extension is
The WAV format is widely used where you would want uncompressed audio. For example, sound engineers use it a lot – and due to its lossless form, it can be used for early production samples.
The large file size means that it's usually not suitable for transmission over the internet. Other formats like MP3 and AAC offer much smaller file sizes, as they are lossy.
Limitations of the WAV format
WAV files are limited to 4GB in size as they have a 32bit file size header. W64 is a successor which has a 64bit header, allowing even larger file sizes.
Apart from that, since the audio is uncompressed, its file size is large. So if the audio is stored on a slow disk drive, it can cause buffering issues (as audio needs to be loaded from disk to RAM before the music player can decode and play the file).
This might not be an issue, however, on modern computers, as they have much faster disks drives.
How to open a WAV file
Since WAV is quite a popular format, almost all devices today support it using built-in media players.
- On Windows, the Windows Media Player is capable of playing WAV files.
- On MacOS, iTunes or QuickTime can play WAV files.
- On Linux, your basic ALSA system can play these files.
Other solutions also exist which can help you play WAV files, such as the VLC media player or any other music players.
How to Play a WAV file on Windows using Windows Media Player
- Open Windows Media Player using Search
2. Drag and drop your WAV audio file from explorer to Windows Media Player
3. Click Play!
How to Play a WAV file on any OS with VLC Media Player
VLC media player is an open-source media player that can play most of your file formats without needing to download external codecs. It is cross platform, too, so you'll get the same features and interface across all operating systems, whether you use Linux, Windows, or MacOS (also supports Android and iOS).
Here are the steps to play an WAV file with VLC on your PC.
- Download VLC from the official website here
- Open VLC
- Click on Media, then select Open File
4. In the file picker dialog, choose your audio, click
Open and the WAV file should start playing automatically!
Or if you prefer a GIF:
How to convert WAV files to MP3
Depending on the end device, you might want to convert WAV to other formats, for example to save disk space or if you're listening on a low end device.
MP3 is quite a good format for storing audio. It gives you 50-75% smaller file sizes, while retaining almost the same listening experience. Let's see how you can convert these files.
If you only convert audio on rare occasions, I would suggest that you to use an online convertor such as CloudConvert. And Google is your friend here.
Do keep in mind that these online convertors can store your files for some time (even forever), so read their policy if you want to convert something mission critical.
Another option is to convert these files locally. This will help you if you want to convert frequently or have something that you don't want to expose to the internet.
There are two ways to do this:
Audacity: Audacity is a free, open-source cross-platform application that allows you to edit and convert audio.
The only con is you have to do some initial setup first (installing LAME). Also you have to convert files one by one.
FFmpeg: FFmpeg is a cross-platform command line tool to convert audio and video files. You can run the following command to convert a wav file to mp3:
ffmpeg -i input.wav output.mp3
You can dig around FFmpeg's docs to figure out how to customize some parameters and pass a list of files for batch conversions.
The main con is that FFmpeg is not user friendly. You need to know how to use command line tools. Though stuff like a FFmpeg GUI exists, it is out of the scope of our discussion here.
Thanks for reading!
I hope this article gave you some insights into audio compression, as well as how to play around with and convert WAV files.
For any questions or comments, you can find me on Twitter @vaibhav_kandwal. Thank you for reading.