{"success":true,"data":{"ext":"voc","name":"Creative Voice audio file","description":"Creative Voice audio file (VOC) is a legacy audio container format developed by Creative Labs for use with its Sound Blaster hardware and related software. It was commonly used to store digitized speech, sound effects, and simple music in DOS-era applications and games. The format is largely obsolete today, but it remains supported by some media tools for archival playback; files from untrusted sources should still be handled with standard caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46 69 6C 65 1A 1A 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_voc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VOC by magic bytes.\"\"\"\n    signature = bytes([0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x56, 0x6F, 0x69, 0x63, 0x65, 0x20, 0x46, 0x69, 0x6C, 0x65, 0x1A, 0x1A, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(22) == signature","node":"function isVOC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x56, 0x6F, 0x69, 0x63, 0x65, 0x20, 0x46, 0x69, 0x6C, 0x65, 0x1A, 0x1A, 0x00]);\n  return buffer.subarray(0, 22).equals(signature);\n}","go":"func IsVOC(data []byte) bool {\n    signature := []byte{0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x56, 0x6F, 0x69, 0x63, 0x65, 0x20, 0x46, 0x69, 0x6C, 0x65, 0x1A, 0x1A, 0x00}\n    if len(data) < 22 {\n        return false\n    }\n    return bytes.Equal(data[:22], signature)\n}"}}}