wave.Wave_write.tell()

Wave_write.tell() Return current position in the file, with the same disclaimer for the Wave_read.tell() and Wave_read.setpos() methods.

wave.Wave_write.writeframesraw()

Wave_write.writeframesraw(data) Write audio frames, without correcting nframes. Changed in version 3.4: Any bytes-like object is now accepted.

wave.Wave_write.setsampwidth()

Wave_write.setsampwidth(n) Set the sample width to n bytes.

wave.Wave_read.setpos()

Wave_read.setpos(pos) Set the file pointer to the specified position.

wave.Wave_write.close()

Wave_write.close() Make sure nframes is correct, and close the file if it was opened by wave. This method is called upon object collection. It will raise an exception if the output stream is not seekable and nframes does not match the number of frames actually written.

wave.Wave_write.setcomptype()

Wave_write.setcomptype(type, name) Set the compression type and description. At the moment, only compression type NONE is supported, meaning no compression.

wave.Wave_read.tell()

Wave_read.tell() Return current file pointer position.

wave.Wave_write.setnframes()

Wave_write.setnframes(n) Set the number of frames to n. This will be changed later if the number of frames actually written is different (this update attempt will raise an error if the output stream is not seekable).

wave.Wave_write.setframerate()

Wave_write.setframerate(n) Set the frame rate to n. Changed in version 3.2: A non-integral input to this method is rounded to the nearest integer.

wave.Wave_write.setnchannels()

Wave_write.setnchannels(n) Set the number of channels.