Похожие чаты

File "C:\Users\mahdi\Downloads\bot\bot3.py", line 24, in play playsound(path,

False)
File "C:\Users\mahdi\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\Users\mahdi\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 263 for command:
open alert_sounds/2.mp3
The specified device is not open or is not recognized by MCI.


anyone have any idea why i'm getting this error with playsound on windows?

can anyone play a sound asyncronsly on windows using playsound module?

pip install playsound
from playsound import playsound

playsound(path, False) #set the second parameter to play in bacground Default is True and block the code

i tried by downgrid python to python7.7 but it didn't fix the problem

8 ответов

249 просмотров

python 7.7? what? You may try to change the path where there are no underscrore, only alphanumerics. There are some strange issues with playsound when it comes to path to the file

𝓈𝒽𝒶𝒽𝓇𝑜𝑜𝓏- Автор вопроса
Manav | avoid unnecessary messaging me
python 7.7? what? You may try to change the path w...

in the stackoverflow some people said that it works with downgrading python to v 3.7

𝓈𝒽𝒶𝒽𝓇𝑜𝑜𝓏
in the stackoverflow some people said that it work...

well, try changing the path name, That error is caused by missing AVIVideo Value Name And i doubt you have that

𝓈𝒽𝒶𝒽𝓇𝑜𝑜𝓏- Автор вопроса
Manav | avoid unnecessary messaging me
well, try changing the path name, That error is ca...

ok thanks that is my client machine i will connect through anydesk and check the path and that

𝓈𝒽𝒶𝒽𝓇𝑜𝑜𝓏- Автор вопроса
Manav | avoid unnecessary messaging me
well, try changing the path name, That error is ca...

the problem was with path i've used absolute path instead of relative path it fixed thanks

Похожие вопросы

Обсуждают сегодня

а через ESC-код ?
Alexey Kulakov
29
30500 за редактор? )
Владимир
47
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
any reference of this implementation?
BitBuddha
29
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
9
Карта сайта