at the top with your global variables import the following and then load the audio file #import pyglet.media from pyglet.media import StaticSource, load beep = StaticSource(load("/Users/jcordiner/Desktop/3375__suonho__cartoonist_05_down_suonho_.wav", streaming=False)) then inside your draw or UI functions call the play method : beep.play() MP3 playback requires AVBin - download it here - http://code.google.com/p/avbin/downloads/detail?name=avbin-win32-5.zip&can=2&q= |