Audio compression formatdeveloped by Skype; also used by other applications
application/octet-stream
Magic Bytes
Offset: 0
23 21 53 49 4C 4B 0A
The SILK audio compression format is a proprietary speech-oriented codec originally developed by Skype Limited for real-time voice transmissions. It is primarily utilized for Voice over IP communications and served as the default audio encoding standard for earlier iterations of the Skype application. Although largely superseded by the open-source Opus codec, this legacy format remains relevant for maintaining backward compatibility with older telecommunications hardware and legacy voice recordings.
Validation Code
How to validate .sil files in Python
Python
def is_sil(file_path: str) -> bool:
"""Check if file is a valid SIL by magic bytes."""
signature = bytes([0x23, 0x21, 0x53, 0x49, 0x4C, 0x4B, 0x0A])
with open(file_path, "rb") as f:
return f.read(7) == signature
How to validate .sil files in Node.js
Node.js
function isSIL(buffer: Buffer): boolean {
const signature = Buffer.from([0x23, 0x21, 0x53, 0x49, 0x4C, 0x4B, 0x0A]);
return buffer.subarray(0, 7).equals(signature);
}
Go
func IsSIL(data []byte) bool {
signature := []byte{0x23, 0x21, 0x53, 0x49, 0x4C, 0x4B, 0x0A}
if len(data) < 7 {
return false
}
return bytes.Equal(data[:7], signature)
}
API Endpoint
GET
/api/v1/sil
curl https://filesignature.org/api/v1/sil