wave.Wave_read.getsampwidth()

Wave_read.getsampwidth() Returns sample width in bytes.

wave.Wave_read.getparams()

Wave_read.getparams() Returns a namedtuple() (nchannels, sampwidth, framerate, nframes, comptype, compname), equivalent to output of the get*() methods.

wave.Wave_read.getnframes()

Wave_read.getnframes() Returns number of audio frames.

wave.Wave_read.readframes()

Wave_read.readframes(n) Reads and returns at most n frames of audio, as a string of bytes.

wave.Wave_read.rewind()

Wave_read.rewind() Rewind the file pointer to the beginning of the audio stream.

wave.Wave_read.getnchannels()

Wave_read.getnchannels() Returns number of audio channels (1 for mono, 2 for stereo).

wave.Wave_read.getmarkers()

Wave_read.getmarkers() Returns None.

wave.Wave_read.close()

Wave_read.close() Close the stream if it was opened by wave, and make the instance unusable. This is called automatically on object collection.

wave.Wave_read.getcompname()

Wave_read.getcompname() Human-readable version of getcomptype(). Usually 'not compressed' parallels 'NONE'.

wave.open()

wave.open(file, mode=None) If file is a string, open the file by that name, otherwise treat it as a file-like object. mode can be: 'rb' Read only mode. 'wb' Write only mode. Note that it does not allow read/write WAV files. A mode of 'rb' returns a Wave_read object, while a mode of 'wb' returns a Wave_write object. If mode is omitted and a file-like object is passed as file, file.mode is used as the default value for mode. If you pass in a file-like object, the wave object will not clo