SHARE
TWEET

Untitled

a guest Mar 19th, 2019 175 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from pydub import AudioSegment
  2. from pydub.playback import play
  3.  
  4. audio1 = AudioSegment.from_file("zipper.wav")
  5. audio2 = AudioSegment.from_file("jar.wav")
  6. audio3 = AudioSegment.from_file("dribble.wav")
  7.  
  8. mixed = audio1.overlay(audio2)          
  9. mixed1  = mixed.overlay(audio3)
  10.  
  11. mixed1.export("mixed.wav", format='wav')
  12.  
  13. play(mixed1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top