Skip to content

Instantly share code, notes, and snippets.

@Vostbur
Created March 15, 2014 18:40
Show Gist options
  • Save Vostbur/9571933 to your computer and use it in GitHub Desktop.
Save Vostbur/9571933 to your computer and use it in GitHub Desktop.
Convert from wav to mp3 with pydub module
#!/usr/bin/env python
# coding: utf-8
from pydub import AudioSegment
podcast = AudioSegment.from_wav("Recording.wav")
podcast.export("podcast_processed.mp3")
@jiaaro
Copy link

jiaaro commented May 7, 2014

It's probably a good idea to normalize as well :)

just use

podcast = podcast.normalize()

before podcast.export(…)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment