Guest User

Untitled

a guest
Aug 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import subprocess
  2. subprocess.call(['sox', 'filename.mp3', '-e', 'mu-law',
  3. '-r', '16k', 'filename.wav', 'remix', '1,2'])
  4.  
  5.  
  6. import pydub
  7. sound = pydub.AudioSegment.from_mp3("filename.mp3")
  8. sound.export("filename.wav", format="wav")
  9.  
  10. RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
  11. warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
  12.  
  13. (RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
  14. warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work",RuntimeWarning)
Add Comment
Please, Sign In to add comment