“初始化MCI时发生问题".播放问题 [英] "A problem occurred in initializing MCI" playsound issues

查看:166
本文介绍了“初始化MCI时发生问题".播放问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用playsound在我的代码文件夹中播放文件,但是,当我运行我的代码时,似乎可以调用该文件,但是我始终会收到以下输出:

I'm trying to use playsound to play a file within the folder of my code, however very time I run my code it seems it is able to call the file however I always recieve this output:

playsound.PlaysoundException:

Error 277 for command:

open "para.mp3" alias playsound_0.9208788744295284

A problem occurred in initializing MCI.

运行的代码只是使用playsound函数:

The code that is run is just the use of the playsound function:

from playsound import playsound
playsound("01. Humongous.mp3")

我不确定这仅仅是我的机器问题还是我所缺少的东西?

I'm unsure if this is just an issue with my machine or something that I'm missing?

推荐答案

将mp3文件转换为wav.为我工作.

Convert the mp3 file to wav. Worked for me.

这篇关于“初始化MCI时发生问题".播放问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆