n | .. % Documentations stolen and LaTeX'ed from comments in file. |
| |
| |
| :mod:`wave` --- Read and write WAV files |
| ======================================== |
| |
| .. module:: wave |
| :synopsis: Provide an interface to the WAV sound format. |
| .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il> |
n | |
n | .. Documentations stolen from comments in file. |
| |
| The :mod:`wave` module provides a convenient interface to the WAV sound format. |
| It does not support compression/decompression, but it does support mono/stereo. |
| |
| The :mod:`wave` module defines the following function and exception: |
| |
| |
| .. function:: open(file[, mode]) |
| .. method:: Wave_write.setnframes(n) |
| |
| Set the number of frames to *n*. This will be changed later if more frames are |
| written. |
| |
| |
| .. method:: Wave_write.setcomptype(type, name) |
| |
t | Set the compression type and description. |
t | Set the compression type and description. At the moment, only compression type |
| ``NONE`` is supported, meaning no compression. |
| |
| |
| .. method:: Wave_write.setparams(tuple) |
| |
| The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, |
| compname)``, with values valid for the :meth:`set\*` methods. Sets all |
| parameters. |
| |