The Python standard library comes with a module called wave.py. It allows you to read and write WAV format audio files.
Here is an example of reading WAV file info with Python:
wavf = wave.open('horse.wav', 'r')
The above code prints the number of channels (mono or stereo), the sampling width, the frame rate, the number of frames, and the name of the compression type (if any) of the WAV file horse.wav.
You can also write WAV files, but you need to know what data to write.
Wikipedia entry for WAV:
- Vasudev Ram