We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

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
    print "cannot identify file"

file format: ('wav', 44100, 1, -1, 16)