wave

wave — Read and write WAV files

Source code: Lib/wave.py

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:

wave.open(file[, mode])

If file is a string, open the file by that name, otherwise treat it as a seekable file-like object. mode can be any of

登录查看完整内容