(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/Wave-read-objects.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/mmedia.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/au-write-objects.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 14.5.1 Wave_read Objects Up: 14. Multimedia Services Previous: 14.4.2 AU_write Objects
14.5 wave -- Read and write WAV files
The wave module provides a convenient interface to the WAV sound format. It does not support compression/decompression, but it does support mono/stereo.
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
'r', 'rb'
- Read only mode.
'w', 'wb'
- Write only mode. Note that it does not allow read/write WAV files. A mode of
'r' or 'rb' returns a Wave_read object, while a mode of 'w' or 'wb' returns a Wave_write object.
- openfp (file, mode)
- A synonym for open(), maintained for backwards compatibility.
- Error
- An error raised when something is impossible because it violates the WAV specification or hits an implementation deficiency.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/Wave-read-objects.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/mmedia.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/au-write-objects.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 14.5.1 Wave_read Objects Up: 14. Multimedia Services Previous: 14.4.2 AU_write Objects
Send comments on this document to python-docs@python.org.