exception wave.Error An error raised when something is impossible because it violates the WAV specification or hits an implementation
Wave_write.setsampwidth(n) Set the sample width to n bytes.
Wave_write.setcomptype(type, name) Set the compression type and description. At the moment, only compression type NONE
Wave_write.setframerate(n) Set the frame rate to n.
aifc.getcomptype() Return a bytes array of length 4 describing the type of compression used in the audio file. For AIFF files
Wave_write.close() Make sure nframes is correct, and close the file if it was opened by wave. This method
sndhdr.whathdr(filename) Determines the type of sound data stored in a file based on the file header. The name of the file is
aifc.readframes(nframes) Read and return the next nframes frames from the audio file. The returned data is a string
Wave_read.tell() Return current file pointer position.
aifc.open(file, mode=None) Open an AIFF or AIFF-C file and return an object instance with methods that are described below.
Page 11 of 14