Speed up mp3 audio file [Python 3.3/3.4/2.7 , Windows 7]


#1


Objective
I wanted to use the os module to play an audio file using VLC player at a faster rate.

os.system("vlc 'C:\Users\user\Desktop\file1.mp3' --rate=1.5")


What should have happened
A VLC player window should have popped open and the music should have started playing at a speed 1.5 times that of the default speed.

What happened instead

File reading failed:
VLC could not open the file "C:\Program Files\VideoLAN\VLC\'C:\Users\user\Desktop\file1.mp3'". (%m)
Your input can't be opened:
VLC is unable to open the MRL 'file:///C:/Program%20Files/VideoLAN/VLC/%27C%3A/Users/user/Desktop/file1.mp3%27'. Check the log for details.


Code

import os
os.chdir("C:\Program Files\VideoLAN\VLC")
os.system("vlc 'C:\Users\user\Desktop\file1.mp3' --rate=1.5")


Where did I go wrong?
How can I resolve the error?