The specified device is not open or is not recognized by MCI

We Are Going To Discuss About The specified device is not open or is not recognized by MCI. So lets Start this Python Article.

The specified device is not open or is not recognized by MCI

  1. How to solve The specified device is not open or is not recognized by MCI

    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.

  2. The specified device is not open or is not recognized by MCI

    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.

Solution 1

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.

Original Author Jai advith Of This Content

Solution 2

Try downgrading to Python 3.7 or 3.8

I had successfully used playsound in a project several months ago, but upon revisiting it today with a Python 3.9 virtual environment I ran into the same error as the OP. Downgrading to either a Python 3.7 or 3.8 venv fixed things right up.

I know this feels like a cheap answer, and I don’t like it either, especially since playsound‘s CI system explicitly does a build for Python 3.9 on Windows, Linux, and Mac. If someone else has more insight into why playsound doesn’t seem to work in Python >3.8 I’d love to hear it!

Original Author thehale Of This Content

Solution 3

I had this same problem and fixed it using

audio_file = os.path.dirname(__file__) + 'audio.mp3'
playsound(audio_file)

Original Author felipecapp Of This Content

Solution 4

Please see my answer here:
The problem is in the way playsound() handles file paths. It expects a full path name using forward slashes only. Wish it becomes more portable in subsequent releases.

Original Author Raja Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment