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