DSD Storage Facilityaudio file
application/octet-stream
Magic Bytes
Offset: 0
44 53 54 62
DSD Storage Facility (DSF) is a high-resolution audio file format developed by Sony for storing Direct Stream Digital data. It is primarily utilized by audiophiles and sound engineers to archive 1-bit audio streams while maintaining support for industry-standard ID3v2 metadata tags. As the format contains only non-executable media content, it is considered safe for general handling; however, specialized hardware or software is necessary to decode the audio data for accurate playback.
Validation Code
How to validate .dsf files in Python
Python
def is_dsf(file_path: str) -> bool:
"""Check if file is a valid DSF by magic bytes."""
signature = bytes([0x44, 0x53, 0x54, 0x62])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .dsf files in Node.js
Node.js
function isDSF(buffer: Buffer): boolean {
const signature = Buffer.from([0x44, 0x53, 0x54, 0x62]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsDSF(data []byte) bool {
signature := []byte{0x44, 0x53, 0x54, 0x62}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/dsf
curl https://filesignature.org/api/v1/dsf