I was programming a game using Python and a sound effect needed to be played, so I used the playsound module:
from playsound import playsound
playsound("Typing.wav", False)
And when I attempted the run the program this error was returned:
Error 263 for command:
open Typing.wav
The specified device is not open or is not recognized by MCI.
I did some research and some sources indicated that it was an issue with my sound drivers. I updated & reinstalled it, but the issue persists. Is there any way to solve this?
I faced this problem too firstly as mentioned in the previous comments I downgraded my python version from 3.10 to 3.7 and yet the problem persisted. So what actually worked is that the recent versions of playsound are giving such errors in order to fix this run the following commands in cmd as admin
pip uninstall playsound
pip install playsound==1.2.2
and this should do the work.
just in case that doesn't work try degrading your python version to 3.7 and run these commands and that should be good.