Error with pydub in python
问题 i have successfully imported pydub but for the code: from pydub import AudioSegment song = AudioSegment.from_mp3("c:\mks.mp3") first_ten_seconds = song[:10000] song.export("d:\mks.mp3", format="mp3") But it gives the following error: python "C:\Users\mKs\Desktop\mks2.py" Process started >>> Traceback (most recent call last): File "C:\Users\mKs\Desktop\mks2.py", line 2, in <module> song=AudioSegment.from_mp3("c:\mks.mp3"); File "C:\Python27\lib\site-packages\pydub-0.5.2-py2.7.egg\pydub\audio