import pygame, time pygame.mixer.init() s = pygame.mixer.Sound("lion.wav") s.play() while pygame.mixer.get_busy() > 0: time.sleep(1)