from pydub import AudioSegment sound1 = AudioSegment.from_wav("sound1.wav") sound2 = AudioSegment.from_wav("sound2.wav") combined = sound1 + sound2 combined.export("combined.wav", format="wav")