Use sndhdr instead of the obsolete whatsound module.
diff --git a/Lib/toaiff.py b/Lib/toaiff.py
index 0001be0..1e73526 100644
--- a/Lib/toaiff.py
+++ b/Lib/toaiff.py
@@ -9,7 +9,7 @@
 import os
 import tempfile
 import pipes
-import whatsound
+import sndhdr
 
 table = {}
 
@@ -78,7 +78,7 @@
 	else:
 		fname = filename
 	try:
-		ftype = whatsound.whathdr(fname)
+		ftype = sndhdr.whathdr(fname)
 		if ftype:
 			ftype = ftype[0] # All we're interested in
 	except IOError: