Mixing two audio files together with python
You can use the pydub library (a light wrapper I wrote around the python wave module in the std lib) to do it pretty simply: from pydub import AudioSegment sound1 = AudioSegment.from_file(“/path/to/my_sound.wav”) sound2 = AudioSegment.from_file(“/path/to/another_sound.wav”) combined = sound1.overlay(sound2) combined.export(“/path/to/combined.wav”, format=”wav”)