{"success":true,"data":{"ext":"ra","name":"RealAudio streaming media file","description":"RealAudio is an audio streaming file format developed by RealNetworks for delivering compressed sound over the internet. It is used for streaming music, spoken-word recordings, and legacy online radio or multimedia presentations in players and web applications that support the format. The format is now largely obsolete and may require older software or compatibility components, but it is generally safe to open when obtained from trusted sources.","mime":["audio/x-pn-realaudio"],"risk_level":"Safe","signatures":[{"hex":"2E 72 61 FD","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":"2E 52 4D 46 00 00 00 12 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"2E 72 61 FD 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["wma","aac","ac3","aif","aifc","aiff"],"usage":{"python":"def is_ra(file_path: str) -> bool:\n    \"\"\"Check if file is a valid RA by magic bytes.\"\"\"\n    signature = bytes([0x2E, 0x72, 0x61, 0xFD])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isRA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2E, 0x72, 0x61, 0xFD]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsRA(data []byte) bool {\n    signature := []byte{0x2E, 0x72, 0x61, 0xFD}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Audio"}}