What is MIME type "audio/x-wv"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
The MIME type audio/x-wv is used for files compressed with the WavPack format. These files store digital audio in a compact form while keeping sound quality high. They often use the file extension WV.Key points include:
- Lossless Compression: Keeps the original audio data intact, which is ideal for archiving.
- Hybrid Mode: Combines lossy and correction data to achieve near-lossless quality at smaller file sizes.
- Efficiency: Reduces file sizes significantly while maintaining audio integrity.
- Playback Compatibility: Supported by many media players on PC for easy listening and editing.
The format is popular for preserving high-quality audio and managing storage space. More about the technology is available on the WavPack website.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: audio/x-wv
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="audio/x-wv">Download file</a>
Server-side (Node.js)
Setting the Content-Type header in Node.js:
const http = require('http');
http.createServer((req, res) => {
res.setHeader('Content-Type', 'audio/x-wv');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
Does the HTML5 audio tag support audio/x-wv files?
Generally, no. Most modern web browsers (Chrome, Firefox, Safari) do not natively support the WavPack format or the audio/x-wv MIME type in the <audio> element. To play these files on the web, you usually need to convert them to a widely supported format like MP3 or use a JavaScript-based decoding library.
How do I configure Apache to serve .wv files correctly?
Since audio/x-wv is a non-standard MIME type, you must explicitly define it in your .htaccess file or server config to prevent browsers from treating it as a generic download. Add the following line: AddType audio/x-wv .wv.
What is the Nginx configuration for audio/x-wv?
To ensure Nginx serves WavPack files with the correct headers, open your mime.types file or your server block configuration. Add the following entry inside the types block: audio/x-wv wv;.
Why does the MIME type start with 'x-'?
The x- prefix in audio/x-wv indicates that it is a non-standard or experimental type not officially registered with the IANA. While it is the de facto standard for identifying .wv files, some applications might also recognize audio/wavpack.
Why does my browser download the .wv file instead of playing it?
This happens for two reasons: either the web server is sending the file as application/octet-stream (indicating a binary download), or the browser simply does not know how to decode WavPack audio. Even with the correct audio/x-wv MIME type, most browsers will default to downloading the file because they lack a native decoder.
What is the difference between audio/x-wv and audio/flac?
Both are lossless audio formats, but they use different compression algorithms. While FLAC has broader hardware and browser support, WavPack (audio/x-wv) offers unique features like a "hybrid mode" that creates a high-quality lossy file and a separate correction file to restore it to lossless.
General FAQ
What is a MIME type?
A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.
MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.
MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.
How do I find the MIME type for a file?
You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.
Why are multiple MIME types listed for one extension?
Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.