window.addEventListener('touchstart', function() { // create new buffer source for playback with an already // loaded and decoded empty sound file var source = myContext.createBufferSource(); source.buffer = myDecodedBuffer; // connect to output (your speakers) source.connect(myContext.destination); // play the file source.noteOn(0); }, false);