I already did python pip install playsound and the location of my Python file is also correct please check what is the problem?
It shows cannot specify extra characters after a string enclosed in quotation marks.
My code is:
from playsound import playsound
playsound('C:\\Users\\Lenovo\\OneDrive\\Documents\\Zoom\\1. Chapter 1\\play.mp3\\play.mp3')
Error occured:

Location of sound:

playsound version 1.3.0 has this problem , just downgrade to version 1.2.2 . it will work perfectly fine.
https://pypi.org/project/playsound/1.2.2/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With