| Python Library Reference |
Thewave module provides a convenient interface to the WAV soundformat. It does not support compression/decompression, but it does supportmono/stereo.
Thewave module defines the following function and exception:
'r','rb''w','wb'Amode of'r' or'rb' returns aWave_readobject, while amode of'w' or'wb' returnsaWave_write object. Ifmode is omitted and a file-like object is passed asfile,file.mode is used as thedefault value formode (the "b" flag is still added if necessary).
| Python Library Reference |