Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

WAV

From Wikipedia, the free encyclopedia
(Redirected from.wav)
File format standard for storing audio on PCs
Not to be confused withWavPack.
"Wav" redirects here. For the scientific wave, seeWave. For the waves of water, seeWind wave. For other uses, seeWav (disambiguation).
"Wave Sound" redirects here. For the festival, seeWave Sound (festival).
Waveform Audio File Format (WAVE/WAV)
Filename extension
.wav .wave
Internet media type
audio/vnd.wave,[1] audio/wav, audio/wave, audio/x-wav[2]
Type codeWAVE
Uniform Type Identifier (UTI)com.microsoft.waveform-audio
Developed byIBM andMicrosoft
Initial releaseAugust 1991; 33 years ago (1991-08)[3]
Latest release
Multiple Channel Audio Data and WAVE Files
7 March 2007; 18 years ago (2007-03-07) (update)[4][5][failed verification]
Type of formatAudio file format,container format
Extended fromRIFF
Extended toBWF,RF64

Waveform Audio File Format (WAVE, orWAV due to itsfilename extension;[3][6][7] pronounced/wæv/ or/wv/[8]) is anaudio file format standard for storing an audiobitstream onpersonal computers. The format was developed and published for the first time in 1991 byIBM andMicrosoft. It is the main format used onMicrosoft Windows systems foruncompressed audio. The usual bitstream encoding is thelinear pulse-code modulation (LPCM) format.

WAV is an application of theResource Interchange File Format (RIFF)bitstream format method for storing data inchunks, and thus is similar to the8SVX and theAudio Interchange File Format (AIFF) format used onAmiga andMacintosh computers, respectively.

Description

[edit]

The WAV file is an instance of aResource Interchange File Format (RIFF) defined byIBM andMicrosoft.[3] The RIFF format acts as awrapper for variousaudio coding formats.

Though a WAV file can containcompressed audio, the most common WAV audio format is uncompressed audio in thelinear pulse-code modulation (LPCM) format. LPCM is also the standard audio coding format foraudio CDs, which store two-channel LPCM audiosampled at44.1 kHz with 16bits per sample. Since LPCM is uncompressed and retains all of the samples of an audio track, professional users or audio experts may use the WAV format with LPCM audio for maximum audio quality.[9] WAV files can also be edited and manipulated with relative ease using software.

On Microsoft Windows, the WAV format supports compressed audio using theAudio Compression Manager (ACM). Any ACMcodec can be used to compress a WAV file. Theuser interface (UI) for ACM may be accessed through various programs that use it, includingSound Recorder in some versions of Windows.

Beginning withWindows 2000, aWAVE_FORMAT_EXTENSIBLE header was defined which specifiesmultiple audio channel data along with speaker positions, eliminates ambiguity regarding sample types and container sizes in the standard WAV format and supports defining custom extensions to the format.[4][5][10]

File specifications

[edit]

RIFF

[edit]

A RIFF file is a tagged file format. It has a specific container format (achunk) with a header that includes a four-character tag (FourCC) and the size (number of bytes) of the chunk. The tag specifies how the data within the chunk should be interpreted, and there are several standard FourCC tags. Tags consisting of all capital letters are reserved tags. The outermost chunk of a RIFF file has aRIFF tag; the first four bytes of chunk data are an additional FourCC tag that specify the form type and are followed by a sequence of subchunks. In the case of a WAV file, the additional tag isWAVE. The remainder of the RIFF data is a sequence of chunks describing the audio information.

The advantage of a tagged file format is that the format can be extended later while maintainingbackward compatibility.[11] The rule for a RIFF (or WAV) reader is that it should ignore any tagged chunk that it does not recognize.[12] The reader will not be able to use the new information, but the reader should not be confused.

The specification for RIFF files includes the definition of anINFO chunk. The chunk may include information such as the title of the work, the author, the creation date, and copyright information. Although theINFO chunk was defined for RIFF in version 1.0, the chunk was not referenced in the formal specification of a WAV file. Many readers had trouble processing this. Consequently, the safest thing to do from an interchange standpoint was to omit theINFO chunk and other extensions and send a lowest-common-denominator file. There are otherINFO chunk placement problems.

RIFF files were expected to be used in international environments, so there isCSET chunk to specify the country code, language, dialect, andcode page for the strings in a RIFF file.[13] For example, specifying an appropriateCSET chunk should allow the strings in anINFO chunk (and other chunks throughout the RIFF file) to be interpreted as Cyrillic or Japanese characters.

RIFF also defines aJUNK chunk whose contents are uninteresting.[14] The chunk allows a chunk to be deleted by just changing its FourCC. The chunk could also be used to reserve some space for future edits so the file could be modified without being resized. A later definition of RIFF introduced a similarPAD chunk.[15]

RIFF WAVE

[edit]

The top-level definition of a WAV file is:[16]

<WAVE-form> → RIFF('WAVE'                   <fmt-ck>            // Format of the file                   [<fact-ck>]         // Fact chunk                   [<cue-ck>]          // Cue points                   [<playlist-ck>]     // Playlist                   [<assoc-data-list>] // Associated data list                   <wave-data> )       // Wave data

The top-level RIFF form uses aWAVE tag. It is followed by a mandatory<fmt-ck> chunk that describes the format of the sample data that follows. This chunk includes information such as the sample encoding, number of bits per channel, the number of channels, and the sample rate.

The WAV specification includes some optional features. The optional<fact-ck> chunk reports the number of samples for some compressed coding schemes. The<cue-ck> chunk identifies some significant sample numbers in the wave file. The<playlist-ck> chunk allows the samples to be played out of order or repeated rather than just from beginning to end. The associated data list (<assoc-data-list>) allows labels and notes to be attached to cue points; text annotation may be given for a group of samples (e.g., caption information).

Finally, the mandatory<wave-data> chunk contains the actual samples in the format previously specified.

Note that the WAV file definition does not show where anINFO chunk should be placed. It is also silent about the placement of aCSET chunk (which specifies the character set used).

The RIFF specification attempts to be a formal specification, but its formalism lacks the precision seen in other tagged formats. For example, the RIFF specification does not clearly distinguish between a set of subchunks and an ordered sequence of subchunks. The RIFF form chunk suggests it should be a sequence container. Sequencing information is specified in the RIFF form of a WAV file consistent with the formalism: "However,<fmt-ck> must always occur before<wave-data>, and both of these chunks are mandatory in a WAVE file."[17] The specification suggests aLIST chunk is also a sequence: "A LIST chunk contains a list, or ordered sequence, of subchunks."[18] However, the specification does not give a formal specification of theINFO chunk; an exampleINFOLIST chunk ignores the chunk sequence implied in theINFO description.[19] TheLIST chunk definition for<wave-data> does use theLIST chunk as a sequence container with good formal semantics.

The WAV specification supports, and most WAV files use, a single contiguous array of audio samples. The specification also supports discrete blocks of samples and silence that are played in order. The specification for the sample data contains apparent errors:[20]

The <wave-data> contains the waveform data. It is defined as follows:  <wave-data>  → { <data-ck> | <data-list> }  <data-ck>    → data( <wave-data> )  <wave-list>  → LIST( 'wavl' { <data-ck> | // Wave samples                                <silence-ck> }... ) // Silence  <silence-ck> → slnt( <dwSamples:DWORD> ) // Count of silent samples

Apparently<data-list> (undefined) and<wave-list> (defined but not referenced) should be identical. Even with this resolved, the productions then allow a<data-ck> to contain arecursive<wave-data> (which implies data interpretation problems). To avoid the recursion, the specification can be interpreted as:

<wave-data>  → { <data-ck> | <wave-list> }  <data-ck>    → data( <bSampleData:BYTE> ... )  <wave-list>  → LIST( 'wavl' { <data-ck> | // Wave samples                                <silence-ck> }... ) // Silence  <silence-ck> → slnt( <dwSamples:DWORD> ) // Count of silent samples

WAV files can contain embedded IFFlists, which can contain severalsub-chunks.[21][22][23]

WAV file header

[edit]

This is an example of a WAV file header (44 bytes). Data is stored in little-endian byte order.

[Master RIFF chunk]   FileTypeBlocID  (4 bytes) : Identifier « RIFF »  (0x52, 0x49, 0x46, 0x46)   FileSize        (4 bytes) : Overall file size minus 8 bytes   FileFormatID    (4 bytes) : Format = « WAVE »  (0x57, 0x41, 0x56, 0x45)[Chunk describing the data format]   FormatBlocID    (4 bytes) : Identifier « fmt␣ »  (0x66, 0x6D, 0x74, 0x20)   BlocSize        (4 bytes) : Chunk size minus 8 bytes, which is 16 bytes here  (0x10)   AudioFormat     (2 bytes) : Audio format (1: PCM integer, 3: IEEE 754 float)   NbrChannels     (2 bytes) : Number of channels   Frequency       (4 bytes) : Sample rate (in hertz)   BytePerSec      (4 bytes) : Number of bytes to read per second (Frequency * BytePerBloc).   BytePerBloc     (2 bytes) : Number of bytes per block (NbrChannels * BitsPerSample / 8).   BitsPerSample   (2 bytes) : Number of bits per sample[Chunk containing the sampled data]   DataBlocID      (4 bytes) : Identifier « data »  (0x64, 0x61, 0x74, 0x61)   DataSize        (4 bytes) : SampledData size   SampledData

Metadata

[edit]

As a derivative of RIFF, WAV files can be tagged withmetadata in the INFO chunk. In addition, WAV files can embed any kind of metadata, including but not limited toExtensible Metadata Platform (XMP) data[24] orID3 tags[25] in extra chunks. The RIFF specification requires that applications ignore chunks they do not recognize and applications may not necessarily use this extra information.

Popularity

[edit]

Uncompressed WAV files are large, sofile sharing of WAV files over theInternet is uncommon except among video, music and audio professionals. The high resolution of the format makes it suitable for retainingfirst generation archived files of high quality, for use on a system where disk space and network bandwidth are not constraints.

Use by broadcasters

[edit]
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(April 2024) (Learn how and when to remove this message)

In spite of their large size, uncompressed WAV files are used by most radio broadcasters, especially those that have adopted a tapeless system.

  • BBC Radio in the UK requires LPCM 48 kHz 16-bit WAV audio as standard for all content made for broadcast on its stations.[26]
  • The UK Commercial radio companyGlobal Radio uses 44.1 kHz 16-bit two-channel WAV files throughout their broadcast chain.
  • TheABC "D-Cart" system, which was developed by the Australian broadcaster, uses 48 kHz 16-bit two-channel WAV files.
  • The Digital Radio Mondiale consortium uses WAV files as an informal standard for transmitter simulation and receiver testing.

Limitations

[edit]

The WAV format is limited to files that are less thanGiB, because of its use of a32-bitunsigned integer to record the file size in the header. Although this is equivalent to about 6.8 hours of CD-quality audio at 44.1 kHz, 16-bitstereo, it is sometimes necessary to exceed this limit, especially when greatersampling rates,bit resolutions orchannel count are required. The W64 format was therefore created for use inSound Forge. Its64-bit file size field in the header allows for much longer recording times. TheRF64 format specified by theEuropean Broadcasting Union has also been created to solve this problem.

Non-audio data

[edit]

Since the sampling rate of a WAV file can vary fromHz to4.3 GHz, and the number of channels can be as high as 65535, WAV files have also been used for non-audio data.LTspice, for instance, can store multiple circuit tracewaveforms in separate channels, at any appropriate sampling rate, with the full-scale range representing ±1 V orA rather than a sound pressure.[27]

Audio compact discs

[edit]

Audiocompact discs (CDs) do not use the WAV file format, using insteadRed Book audio. The commonality is that audio CDs are encoded as uncompressed 16-bit44.1 kHz stereo LPCM, which is one of the formats supported by WAV.

Comparison of coding schemes

[edit]
Main articles:Audio compression (data) andComparison of audio coding formats

Audio in WAV files can be encoded in a variety of audio coding formats, such asGSM orMP3, to reduce the file size. All WAV files, even those that useMP3 compression, use the.wav extension.

This is a reference to compare themonophonic (notstereophonic) audio quality and compression bitrates of audio coding formats available for WAV files including LPCM,ADPCM, MicrosoftGSM 06.10,CELP,SBC,Truespeech andMPEG Layer-3. These are the default ACM codecs that come with Windows.

FormatBitrate (kbit/s)1 minute (KiB)
11,025 Hz 16 bit LPCM176.41292
08,000 Hz 16 bit LPCM1280938
11,025 Hz 8 bit LPCM088.20646
11,025 Hzμ-Law088.20646
08,000 Hz 8 bit LPCM0640469
08,000 Hz μ-Law0640469
11,025 Hz 4 bit ADPCM044.10323
08,000 Hz 4 bit ADPCM0320234
11,025 Hz GSM 06.100180132
08,000 Hz MP316 kbit/s0160117
08,000 Hz GSM 06.100130103
08,000 HzLernout & Hauspie SBC12 kbit/s0120088
08,000 HzDSP GroupTruespeech0090066
08,000 Hz MP38 kbit/s0080060
08,000 Hz Lernout & HauspieCELP004.80035

See also

[edit]

References

[edit]
  1. ^Fleischman, E. (June 1998).WAVE and AVI Codec Registries. IETF.doi:10.17487/RFC2361.RFC2361. Retrieved2009-12-06.
  2. ^"File Extension .WAV Details". Filext.com. Retrieved2015-08-10.
  3. ^abcIBM; Microsoft (August 1991)."Multimedia Programming Interface and Data Specifications 1.0"(PDF). Retrieved2020-12-26.
  4. ^abP. Kabal (2006-06-19)."Audio File Format Specifications - WAVE or RIFF WAVE sound file". McGill University. Retrieved2010-03-16.
  5. ^ab"Multiple Channel Audio Data and WAVE Files". Microsoft Corporation. 2007-03-07. Archived fromthe original on 2010-03-02. Retrieved2010-03-16.
  6. ^"WAVE Audio File Format".Library of Congress. 2008-09-12. Retrieved2023-12-03.
  7. ^Di Silvestro, Laile L.; Baribault, Greg (June 20, 1999).Waveform Audio File Format, MIME Sub-type Registration. IETF. I-D draft-ema-vpim-wav-00. Retrieved2009-12-06.
  8. ^"Definition of WAV file in English".Oxford English Living Dictionary. Archived fromthe original on February 7, 2018.
  9. ^Branson, Ryan (21 October 2015) (21 October 2015)."What Makes WAV Better than MP3".Online Video Converter. Retrieved18 June 2016.{{cite web}}: CS1 maint: numeric names: authors list (link)
  10. ^EBU (July 2009),EBU Tech 3306 - MBWF / RF64: An Extended File Format for Audio(PDF), archived fromthe original(PDF) on 2009-11-22, retrieved2010-01-19
  11. ^IBM & Microsoft 1991, p. 1-1, "The main advantage of RIFF is its extensibility; file formats based on RIFF can be future-proofed, as format changes can be ignored by existing applications."
  12. ^IBM & Microsoft 1991, PDF p. 56, "Programs must expect (and ignore) any unknown chunks encountered, as with all RIFF forms."
  13. ^IBM & Microsoft 1991, pp. 2-17 to 2-18
  14. ^IBM & Microsoft 1991, p. 2-18
  15. ^Microsoft Multimedia Standards Update, New Multimedia Data Types and Data Techniques, Revision 3.0, April 15, 1994, page 6.
  16. ^IBM & Microsoft 1991, PDF p. 56
  17. ^IBM & Microsoft 1991, PDF p. 56
  18. ^IBM & Microsoft 1991, PDF p. 23
  19. ^IBM & Microsoft 1991, PDF p. 21,INAM appears beforeICOP
  20. ^Specification fromIBM & Microsoft 1991 which also describes how the production syntax is interpreted.
  21. ^"WAVE File Format". 1999-11-15. Archived fromthe original on 1999-11-15. Retrieved2010-03-16.
  22. ^"WAVE PCM soundfile format". 2003-01-20. Archived fromthe original on 2009-08-27. Retrieved2010-03-16.
  23. ^"The WAVE File Format". Archived fromthe original on 2011-07-22. Retrieved2010-03-16.
  24. ^XMP SPECIFICATION PART 3: STORAGE IN FILES(PDF). Adobe Systems Incorporated. 2016. pp. 24–25. Archived fromthe original(PDF) on 25 February 2018. Retrieved8 January 2020.
  25. ^"WAV". Audacity. Archived fromthe original on 2020-11-06. Retrieved2020-01-08.
  26. ^"Audio Quality Information & Standards for BBC Radio and BBC Sounds"(PDF).BBC. BBC Design & Engineering. 28 March 2022. p. 8. Archived fromthe original(PDF) on 28 May 2024. Retrieved28 May 2024.
  27. ^"LTspice IV"(PDF). Linear Technologies Corporation. 2009. p. 95. Archived fromthe original(PDF) on 2012-02-27. Retrieved2015-09-04.

External links

[edit]
Wikimedia Commons has media related toWaveform audio format.
Video
compression
ISO,IEC,
MPEG
ITU-T,VCEG
SMPTE
TrueMotion and AOMedia
Chinese Standard
  • AVS1 P2/AVS+(GB/T 20090.2/16)
  • AVS2 P2(GB/T 33475.2,GY/T 299.1)
    • HDR Vivid(GY/T 358)
  • AVS3 P2(GY/T 368)
Others
Audio
compression
ISO,IEC,
MPEG
ITU-T
IETF
3GPP
ETSI
Bluetooth SIG
Chinese Standard
Others
Image
compression
IEC,ISO,IETF,
W3C,ITU-T,JPEG
Others
Containers
ISO,IEC
ITU-T
IETF
SMPTE
Others
Collaborations
Methods
Lists
SeeCompression methods for techniques andCompression software for codecs
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=WAV&oldid=1276797991"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp