|WAV (WAVeform audio format) is a Microsoft/IBM audio file container format. It is the main format used on Windows systems for storing uncompressed, lossless audio.
WAVs and AIFFs are in general equally compatible with either Windows and Macintosh operating systems. WAV files always have little-endian byte order whereas the original AIFF format was big-endian until Apple modified it for use on their OS X/macOS operating systems.
While the RIFF format can act as a container for various audio compression codecs, more typically it contains uncompressed pulse-code modulation ( ) audio that retains all the samples of the original signal, and is thus known as "lossless". PCM is the format standard of audio CDs, conveying two channels with a sample rate of 44,100 Hz (samples per second), and a bit depth of 16 bits per sample.
This "audio CD" standard consumes approximately 10 MB of disk space on a computer for each minute of audio. In comparison, some modern formats such as FLAC which are compressed but still lossless, take about 4 MB of space per minute for a comparable file. A compressed, lossy format like MP3 takes much less space. An MP3 exported from Audacity at its default 128 kbps bit rate uses about 1 MB of space per minute for either a mono or stereo file.
The bit rate of MP3 can be compared with the much higher rates used in WAV and AIFF. Bit rate for WAV and AIFF is calculated thus:
|(sample rate) * (bit depth) * (number of channels) = kbits per second|
For example, 44 100 Hz, 16 bit stereo equates to (44 100 * 16 * 2) = 1411 kbps.
Uncompressed WAV files are quite large in size, so as file sharing over the internet has become popular, the WAV format has declined in popularity. However, it is still a commonly used, relatively "pure" file type, suitable for retaining "first generation" archived files of high quality, or use on a system where high fidelity sound is required and disk space is not restricted.
Compressed WAVs from portable recorders
WAV and AIFF files containing PCM audio can be edited and manipulated with relative ease using computer software, because no decompression or compression needs to be done as part of the processing.
On the other hand WAV files typically used in portable recorders with limited memory and/or disk space are often some kind of compressed ADPCM file inside a WAV container. Many applications including Audacity can have problems with these sort of WAV files. If you import a WAV file from such a recorder into Audacity and it says it cannot recognise the file format, the easiest general solution is to convert the file to a standard PCM WAV in other software. You can convert to standard WAV in SuperPlayer for Windows, FFMPEGX on a Mac, or mplayer on Linux.
- Use current Audacity and add the optional FFmpeg library to your computer. Note: The first time you import a WAV file from a portable recorder, be sure to click and choose "FFmpeg-compatible files" in the file type dropdown. Thereafter, Audacity will automatically use FFmpeg to import files, allowing you to drag the portable recorder files into Audacity if you prefer that method.
- iTunes users can convert the file to WAV by right-clicking or control-clicking over the file in iTunes and using the "Convert to" option on the context menu. If this does not show WAV, set the conversion format to WAV in iTunes Preferences (click the "General" tab, then the "Import Settings" button, then choose "WAV Encoder" in the "Import Using" dropdown). If you have iTunes 7, the setting to change is on the small "Importing" tab inside the "Advanced" tab.
Working with WAV or AIFF in Audacity
When importing WAV or AIFF files into Audacity, the default behaviour is for Audacity to read the audio data direct from the disk rather than making a copy of it. This is done for speed and disk space considerations. However it does mean that unless you change Preferences so as to copy in the data, you need to keep the original WAV or AIFF file accessible in the same location it was in when you imported it. For more explanation, see this section of our File Management Tips.
Additionally, if you choose to read the WAV or AIFF data direct from disk, you can't (except in current Audacity, or in legcy 1.3.2 and later) overwrite that WAV or AIFF file by exporting to the same file name and location. For more explanation, see this section of File Management Tips.
In current Audacity, all seven default tags in Metadata Editor can be exported in WAV files.
Many player applications cannot read LIST INFO tags, but applications that can read ID3 tags in WAV files will be able to read the ID3 tags instead.
Here are the nine tags that are supported as LIST INFO tags.
- Artist (IART)
- Title (INAM) - called "Track Title" in Metadata Editor
- Product (IPRD) - called "Album Title" in Metadata Editor
- Track Number (ITRK) (not specified in the original RIFF standard but players supporting LIST INFO tags often support it)
- Date Created (ICRD) - called "Year" in Metadata Editor
- Genre (IGNR)
- Comments (ICMT)
- Copyright (ICOP)
- Software (ISFT)
Non-default LIST INFO tags (other than "Copyright" and "Software") are not supported.
Non-default ID3 tags can be exported but they all use the generic "TXXX" frame so may not be seen by all players.
Some players or applications that support WAV metadata may use an alternative de facto "standard" promoted by Broadcast Software International (BSI) in addition to or instead of ID3 tags. The BSI scheme includes an explicit IALB INFO tag for "Album" whereas the RIFF standard has to use the IPRD (Product) or related tags for "Album". You can view a comparison of BSI and ID3 tags here.
Broadcast WAVE Format
Broadcast WAVE format (BWF) is an extension of the WAV format to support additional broadcast-related metadata. This includes (in a BEXT chunk):
This makes it possible to exchange audio between different computers and to archive and synchronize the audio files. BWF also specifies selected standard RIFF tags in the INFO chunk (IARL, ICMT, ICOP, ICRD and INAM) and can support other additional extension chunks in the WAV file.
Although current Audacity can safely import BWF files, it cannot yet read or export the specialist metadata in the BEXT chunk. Audacity can only read and write the six RIFF INFO tags that Audacity already supports.