How to play sound Python2 – PyGame

Just use this code:

import pygame

import time

pygame.init()

pygame.mixer.music.load(“test.wav”)

pygame.mixer.music.play()

Source: http://stackoverflow.com/a/7592937/1771059