Audio file format

From Wikipedia, the free encyclopedia

An audio file format is a container format for storing audio data on a computer system. There are numerous file formats for storing audio files.

The general approach towards storing digital audio formats is to sample the audio voltage (corresponding to a certain position in the membrane of a speaker) in regular intervals (e.g. 44,100 times per second for CD audio or 48,000 or 96,000 times per second for DVD video) and store the value with a certain resolution (e.g. 16 bits per sample in CD audio). Therefore sample rate, resolution and number of channels (e.g. 2 for stereo) are key parameters in audio file formats.

[edit] Types of formats

It is important to distinguish between a file format and a codec. Though most audio file formats support only one audio codec, a file format may support multiple codecs, as AVI does.

There are three major groups of audio file formats:

[edit] Uncompressed audio format

There is one major uncompressed audio format: PCM. It is usually stored as a .wav on Windows or as .aiff on Mac OS. WAV is a flexible file format designed to store more or less any combination of sampling rates or bitrates. This makes it an adequate file format for storing and archiving an original recording. A lossless compressed format would require more processing for the same time recorded, but would be more efficient in terms of space used. WAV, like any other uncompressed format, encodes all sounds, whether they are complex sounds or absolute silence, with the same number of bits per unit of time.

Let's take an example. A file contains a minute of a symphonic orchestra playing beautifully followed by a minute of silence. If the sound were stored in WAV, the same amount of data would be used for each half. If data were encoded with TTA, the first minute would be a bit smaller than in the WAV file, and the silent half would take almost no disc space at all. But then, recording in the TTA format would require a lot more processing than the WAV.

The WAV format is based on the RIFF file format, which is similar to the IFF format.

BWF (Broadcast Wave Format) is a standard audio format created by the European Broadcasting Union as a successor to WAV. BWF allows metadata to be stored in the file. See: European Broadcasting Union: Specification of the Broadcast Wave Format - A format for audio data files in broadcasting. EBU Technical document 3285, July 1997. This format is the primary recording format used in many professional Audio Workstations used in the Television and Film industry. Stand-alone file based multi-track recorders from Sound Devices, Zaxcom, HHB USA, Fostex, and Aaton all use BWF as their preferred file format for recording multi-track audio files with SMPTE Time Code reference. This standardized Time Stamp in the Broadcast Wave File allows for easy synchronization with a separate picture element.

[edit] Lossless audio formats

Lossless audio formats (such as TTA and FLAC) provide a compression ratio of about 2:1, sometimes