8,720
edits
Changes
m
Lossy <u>Compression</u> uses various techniques to reduce the file size of digital audio. The main concern with compression is whether it noticeably degrades the audio signal - many schemes result in a loss of quality, known as <u>lossy</u> compression. Such compression is based upon human perception - reducing detail in places that it is least likely be noticed. Of course, different implementations may be more noticeable than others; and many feature different settings, allowing trade-offs between the compression ratio and quality of audio.
The main formats for storing uncompressed audio are .wav <u>Digital Rights Management</u> (for MS WindowsDRM) and refers to various methods that attempt to restrict decoding media files to authorized devices/users.aiff ( ITunes used DRM for Apple Mac)a while before abandoning its use. The primary lossy compression formats are .mp3Many web stores still use forms of DRM, .m4a, .oggalthough it is now less common for music.
=== Wave The main formats for storing uncompressed audio are .wav (for MS Windows), .aiff (for Apple Mac), and .au (Java, Unix). The primary lossy compression formats are .wavmp3, .m4a, .ogg, .aac (iTunes), and .wma. A popular lossless file types is .flac. Windows media audio (.wma) ===supports both lossy and lossless encoding; however, it is generally assumed to use the lossy codec. .aac and .wma are the primary formats of DRM-enabled audio files. Almost all of these file types are capable of additional audio formats; however, these are their most common usages.
=== MPEG-2 Audio Layer III (DAW softare typically works exclusively with uncompressed audio files. Each DAW may have encoders to create various file types with various encoding during rendering or bouncing, and you may be able to import other formats into a project; but internally the DAW will prefer to work with raw audio data. Imported audio is converted to uncompressed formats and stored as such. This prevents it from devoting resources to encoding or decoding audio unnecessarily.mp3) ===
=== Vorbis (.ogg) === === Flac === === Windows Media Audio (.wma) === === MPEG-4 Audio (.m4a) ==={{top}}
no edit summary
The most basic way to think of digital audio is like animation or video. By playing a number of individual "frames" quickly enough, it gives the appearance of motion. In the case of audio, the frames are called <u>samples</u>. Unlike video, however, digital audio is not an illusion - the digital representation of the sound is capable of storing all the information contained in and can be converted back into identical sound waves, at least theoretically.
The amount of sound information a digital audio signal can represent is determined by the bit depth and the sample rate. <u>Bit depth</u> is the number of bits per sample. Each sample represents the amplitude of the sound wave at that point in time. The higher the bit-depth, the more distinct values are possible for each sample, allowing more and more accuracy in recording. The number of samples per unit of time is called the <u>sample rate</u>, typically represented in kHz, which is the number of thousand samples per second. Typical values for these are 16-bit/44.1 kHZ (used on typical consumer CD's) and 24-bit/96 kHZ (for commercial recording). The higher the bit-depth, the more distinct values are possible for each sample, allowing more and more accuracy in recording. The sample rate determines the highest frequency that can be accurately represented. The <u>Nyquist Frequency</u> is 1/2 the sample rate and is the highest-pitched frequency that can be accurately represented. A sample rate of 44.1 kHZ means the highest-representable frequency is 22.05 kHZ, which is roughly the maximum frequency that humans are capable of hearing. Typical values are 16-bit/44.1 kHZ (used on typical consumer CD's) and 24-bit/96 kHZ (for commercial recording).
A device called an <u>analog-to-digital converter</u> (ADC) turns analog electrical waves into digital signals. Conversely, a <u>digital-to-analog converter</u> (DAC) turns digital audio into analog electrical signals. ADC's and DAC's typically feature a low-pass filter to remove high-frequencies that cannot be accurately represented by their maximum sample rate. This is at the Nyquist frequency. Without filtering out such frequencies during the analog-to-digital conversion, certain frequencies may be incorrectly represented as lower frequencies, which is called <u>aliasing</u>. Similarly, the digital-to-analog conversion will produce frequencies above the Nyquist frequency which are aliases of lower frequencies. They should be filtered out for accuracy (however, it shouldn't matter if the Nyquist frequency exceeds the range of human hearing).
== File Formats ==
Digital audio can be represented by a number of different file formats, which mainly pertain to the compression scheme they use (or at least support), as well as additional features such as Digital Rights Management (DRM). Almost all audio file formats support a header containing meta-data, some of which is necessary to decode them.
It's important to understand that file formats do not necessarily indicate the exact codec used to encode the audio they contain. They are best thought of as <u>Compressioncontainers</u> uses , with a defined header format. This allows various techniques software to know how to reduce extract the header information, where to find the audio data in the file size of digital audio, and how to decode it. The main concern with compression A <u>codec</u> is what is whether it noticeably degrades the audio signal - many schemes result in a loss of quality, known as actually used to en<u>co</u>de or <u>lossydec</u> ode the audio. Most audio player software has its own codecs, while some can refer to external software. Most file formats are limited, however, to support only a few codecs. Thus, it is common to associate compression/encoding schemes with file formats.
<u>Lossless</u> compression, on the other hand, results in no signal degradation, and the file can be converted back and forth from compressed and uncompressed formats without any change in the sample data. Compared to lossy compression, it typically features a much smaller compression ratio, and thus results in larger file sizes.