<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
I wanted to use the os module to play an audio file using VLC player at a faster rate.
<In what way does your code behave incorrectly? Include ALL error messages.>
os.system("vlc 'C:\Users\user\Desktop\file1.mp3' --rate=1.5")
<What do you expect to happen instead?>
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.
os.system(“vlc ‘C:\Users\user\Desktop\file1.mp3’ --rate=1.5”)
<do not remove the three backticks above> Where did I go wrong? How can I resolve the error?