Sound
=====
.. automodule:: sound
Wav File Functions
-------------------
.. autofunction:: sound.read_sound
.. autofunction:: sound.write_sound
Examples
--------
Here is an example of using the Sound module to lower the volume of a
sound file::
import sound
sound_file_name = 'pretty_sound.wav'
fraction_decrease = 0.5
(samples, sample_rate) = sound.read_sound(sound_file_name)
for i in range(len(samples)):
samples[i] = samples[i] * fraction_decrease
sound.write_sound(sound_file_name, samples, sample_rate)