Skip to content

Instantly share code, notes, and snippets.

@yv84
Last active January 13, 2018 14:22
Show Gist options
  • Save yv84/7dfbb06675747ca4ad9720ffda55a2de to your computer and use it in GitHub Desktop.
Save yv84/7dfbb06675747ca4ad9720ffda55a2de to your computer and use it in GitHub Desktop.
mp3-flac converter
from pydub import AudioSegment
from_file_patch = "file1"
to_file_patch = "file_out"
flac_audio = AudioSegment.from_file(from_file_patch, "flac")
flac_audio.export(to_file_patch, format="mp3")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment