import pygame import simpleaudio filename = "background.wav" sound = simpleaudio.WaveObject.from_wave_file(filename) play_object = sound_object.play() play_object.wait_done()