Open TheMemeSniper opened 1 year ago
I am having this issue on my Arch installation. I had to comment out any usage of the playsound module to get the rest of my code working again.
hm, maybe i should change it to just not playing considering Crostini uses a Debian image
Maybe I have a similar issue, I have to wait a few seconds for the sound playing. And I have to add ./
to the path of the sound file.
D:\Downloads>python
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from playsound import playsound
>>> playsound("Backstreet Boys - As Long As You Love Me.mid")
Error 259 for command:
play "C:\Users\LIUD~1.H\AppData\Local\Temp\PS96ia0aqm.mid" wait
The driver cannot recognize the specified command parameter.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\playsound.py", line 44, in _playsoundWin
_playsoundWin(tempPath, block)
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\playsound.py", line 73, in _playsoundWin
winCommand(u'play {}{}'.format(sound, ' wait' if block else ''))
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 259 for command:
play "C:\Users\LIUD~1.H\AppData\Local\Temp\PS96ia0aqm.mid" wait
The driver cannot recognize the specified command parameter.
>>> playsound("./Backstreet Boys - As Long As You Love Me.mid")
...
>>>
I am trying to use the playsound module with the following code and filesystem:
Yet when I execute main.py, no sound plays and no error appears.
I have already installed Gstreamer through apt.