import pygame pygame.mixer.init() pygame.init() sound = pygame.mixer.Sound("button-4.wav") sound.play()