The wave module provides a convenient interface to the WAV sound
format. It does not support compression/decompression, but it does support
The wave module defines the following function and exception:
- open (file, mode)
If file is a string, open the file by that name, other treat it
as a seekable file-like object. mode can be any of
Note that it does not allow read/write WAV files.
- Read only mode.
- Write only mode.
A mode of
'rb' returns a Wave_read
object, while a mode of
a Wave_write object.
- openfp (file, mode)
A synonym for open(), maintained for backwards compatibility.
An error raised when something is impossible because it violates the
WAV specification or hits an implementation deficiency.
Send comments on this document to email@example.com.