So when I try to play a .wav or .mp3 audio file with playsound in python, it gives me this error:
Traceback (most recent call last):
File "c:\Users\user\Desktop\files lol\Programming\Python\packages\soundlib\soundlib\beep.py", line 3, in <module>
play('beep.wav')
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\playsound.py", line 35, in _playsoundWin
winCommand('open "' + sound + '" alias', alias)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\playsound.py", line 30, in winCommand
'\n ' + errorBuffer.value.decode())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 0: invalid continuation byte
The python code:
from playsound import playsound as play
play('beep.wav')
The version of playsound I use is 1.2.2, since 1.3.0 just doesn't work.
Edit: I don't think it's a problem with the file, since even if I just do play(''), it gives me that error.