Coding/Python Matlab

mp3 splitting

smores 2016. 9. 3. 05:19

http://pydub.com/


in Ubuntu, install


$ sudo pip install pydub


then very simple code can split MP3 audio in millisecond unit




from pydub import AudioSegment

song=AudioSegment.from_mp3("1.mp3")

part1=song[0:110000]  # 0-110 sec

part1.export("part1.mp3",format="mp3)