0
How to play sound in python?
i have tried so many times but i'm unable to play sound using playsound module. Here is my code. from playsound import playSound playSound ('C:\\Users\\avina\\Downloads\\play.mp3') and it shows this error Traceback (most recent call last): File "e:\python programs\sound.py", line 2, in <module> from playsound import playSound ImportError: cannot import name 'playSound' from 'playsound' (C:\Users\avina\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py)
1 Resposta
+ 3
It's an import error. It's because either you haven't installed the required package. Or given the incorrect package name. Check if you have installed playsound package or if the name is correct including case of letters