Wave_read.getnchannels() Returns number of audio channels (1 for mono, 2 for stereo).
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.
oss_audio_device.read(size) Read size bytes from the audio input and return them as a Python string. Unlike most Unix
aifc.setnchannels(nchannels) Specify the number of channels in the audio file.
aifc.open(file, mode=None) Open an AIFF or AIFF-C file and return an object instance with methods that are described below.
read(size=-1) Read at most size bytes from the chunk (less if the read hits the end of the chunk before obtaining size
audioop.tostereo(fragment, width, lfactor, rfactor) Generate a stereo fragment from a mono fragment. Each pair of samples in
Wave_write.setcomptype(type, name) Set the compression type and description. At the moment, only compression type NONE
ossaudiodev.open(mode) ossaudiodev.open(device, mode) Open an audio device and return an OSS audio device object
Page 12 of 14