The audio object at the moment contains a single method that can play a sampled audio URL.
This will play a sample URL. The following javascript lines are taken from the provided examples.
htmlBase=constants.getParentUrl(); print ('htmlBase=',htmlBase,'\n'); audio.play(new java.net.URL (htmlBase+"/../copy-shapes.wav"));