Last active
January 13, 2018 14:22
-
-
Save yv84/7dfbb06675747ca4ad9720ffda55a2de to your computer and use it in GitHub Desktop.
mp3-flac converter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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