The whatsound module
(Obsolete). This is an alias for sndhdr.
Example: Using the
whatsound module
# File: whatsound-example-1.py import whatsound # same as sndhdr result = whatsound.what("samples/sample.wav") if result: print "file format:", result else: print "cannot identify file"
file format: ('wav', 44100, 1, -1, 16)