How to write stereo wav files in Python?
How to write stereo wav files in Python? Question: The following code writes a simple sine at frequency 400Hz to a mono WAV file. How should this code be changed in order to produce a stereo WAV file. The second channel should be in a different frequency. import math import wave import struct freq = …