{"success":true,"data":{"ext":"amr","name":"Adaptive Multi-Rate ACELP","description":"Adaptive Multi-Rate (AMR) is a speech audio format and codec standardized and maintained by the 3rd Generation Partnership Project (3GPP). It is used for voice recording, mobile telephony, Voice over IP, and other narrowband speech applications. AMR is generally considered safe to handle, and it has long been associated with cellular networks, where it was designed to improve speech compression and adaptation across varying network conditions.","mime":["audio/amr"],"risk_level":"Safe","signatures":[{"hex":"23 21 41 4D 52","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"},{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Amr.cs"}]},{"hex":"23 21 41 4D 52 0A","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"}]}],"related":["aac","ac3","aif","aifc","aiff","au"],"usage":{"python":"def is_amr(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AMR by magic bytes.\"\"\"\n    signature = bytes([0x23, 0x21, 0x41, 0x4D, 0x52])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isAMR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x23, 0x21, 0x41, 0x4D, 0x52]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsAMR(data []byte) bool {\n    signature := []byte{0x23, 0x21, 0x41, 0x4D, 0x52}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"Audio"}}