{"success":true,"data":{"ext":"wav","name":"Resource Interchange File Format --Audio for Windowsfile","description":"Waveform Audio File Format (WAV) is an audio file format based on the Resource Interchange File Format, developed by Microsoft and IBM for Windows systems. It is commonly used for uncompressed audio recording, editing, archival storage, and compatibility with audio workstations and media players. WAV files are generally safe to open, though, like other media formats, they may include metadata and should be obtained from trusted sources.","mime":["audio/vnd.wave"],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46 2E 2E 2E 2E 57 41 56 45","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"52 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"57 41 56 45","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"52 49 46 46 57 41 56 45 66 6D 74 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["aif","aiff","aac","ac3","aifc","amr"],"usage":{"python":"def is_wav(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WAV by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46, 0x2E, 0x2E, 0x2E, 0x2E, 0x57, 0x41, 0x56, 0x45])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isWAV(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46, 0x2E, 0x2E, 0x2E, 0x2E, 0x57, 0x41, 0x56, 0x45]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsWAV(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46, 0x2E, 0x2E, 0x2E, 0x2E, 0x57, 0x41, 0x56, 0x45}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"},"category":"Audio"}}