Creative Voice audio file (.voc)
.voc file signature | application/octet-stream
Creative Voice audio file
Magic Bytes
Offset 0
43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46 69 6C 65 1A 1A 00
Sources: Wikipedia
All Known Signatures
2 signature variants are documented for .voc files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46 69 6C 65 1A 1A 00 | 0 | Wikipedia |
| 43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46 | 0 | Gary Kessler |
Extension
.voc
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .voc files in Python
def is_voc(file_path: str) -> bool:
"""Check if file is a valid VOC by magic bytes."""
signature = bytes([0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x56, 0x6F, 0x69, 0x63, 0x65, 0x20, 0x46, 0x69, 0x6C, 0x65, 0x1A, 0x1A, 0x00])
with open(file_path, "rb") as f:
return f.read(22) == signature
How to validate .voc files in Node.js
function isVOC(buffer: Buffer): boolean {
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]);
return buffer.subarray(0, 22).equals(signature);
}
How to validate .voc files in Go
func IsVOC(data []byte) bool {
signature := []byte{0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x56, 0x6F, 0x69, 0x63, 0x65, 0x20, 0x46, 0x69, 0x6C, 0x65, 0x1A, 0x1A, 0x00}
if len(data) < 22 {
return false
}
return bytes.Equal(data[:22], signature)
}
API Endpoint
/api/v1/voc
curl https://filesignature.org/api/v1/voc
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .voc file?
A .voc file is a Creative Voice audio file file. Creative Voice audio file
What are the magic bytes for .voc files?
The magic bytes for Creative Voice audio file files are 43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46 69 6C 65 1A 1A 00 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .voc file?
To validate a .voc file, read the first bytes of the file and compare them against the known magic bytes (43 72 65 61 74 69 76 65 20 56 6F 69 63 65 20 46 69 6C 65 1A 1A 00) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .voc files?
There is no officially registered MIME type for .voc files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .voc files?
Creative Voice audio file (.voc) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.