How can I play a sound in Python? I tried using playsound
and saying playsound('explosion.mp3')
but I get an error saying that:
raise IOError('Unable to load sound named: ' + sound)
OSError: Unable to load sound named: file:///Users/Tyler/Desktop/Coding/Surround! v1.1/explosion.mp3
Is there a different module that works better for Mac? Or am I doing it wrong?