Please help to solve this error:
>>> from playsound import playsound
>>> playsound('C:\\Users\\Rohit\\Desktop\\Python\\file.mp3')
Result from Terminal:
PS C:\Users\Rohit\Desktop\Python> & C:/Users/Rohit/AppData/Local/Programs/Python/Python38/python.exe c:/Users/Rohit/Desktop/Python/2Python.py
Error 261 for command:
open "C:\Users\Rohit\Desktop\Python\file.mp3"
The driver cannot recognize the specified command.
Error 261 for command:
close "C:\Users\Rohit\Desktop\Python\file.mp3"
The driver cannot recognize the specified command.
Failed to close the file:
"C:\Users\Rohit\Desktop\Python\file.mp3"
Traceback (most recent call last):
File "c:/Users/Rohit/Desktop/Python/2Python.py", line 3, in <module>
playsound('C:\\Users\\Rohit\\Desktop\\Python\\file.mp3')
File "C:\Users\Rohit\AppData\Local\Programs\Python\Python38\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\Users\Rohit\AppData\Local\Programs\Python\Python38\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 261 for command:
open "C:\Users\Rohit\Desktop\Python\file.mp3"
The driver cannot recognize the specified command.