# credit to the Stack Overflow user in the source link from pydub import AudioSegment from pydub.playback import play song = AudioSegment.from_wav("explosion.wav") play(song)