The aifc module

This module reads and writes AIFF and AIFC audio files (as used on SGI and Macintosh computers).

Example: Using the aifc module
# File:

import aifc

a ="samples/sample.aiff", "r")

if a.getnchannels() == 1:
    print "mono,",
    print "stereo,",

print a.getsampwidth()*8, "bits,",
print a.getframerate(), "Hz sampling rate"

data = a.readframes(a.getnframes())

print len(data), "bytes read"

$ python
mono, 16 bits, 8012 Hz sampling rate
13522 bytes read

A Django site. rendered by a django application. hosted by webfaction.