Skip to content

Z.Audio

The Z.Audio object plays back and audio file. The following audio formats are supported:

  • WAV
  • OGG

The following recommendations are made to minimize download times and CPU usage:

  • Prefer OGG for files longer than one second
  • Use single channel “mono” audio files
  • Use a sample rate of 22.05 KHz

For more information on using audio in ZapWorks Studio visit the Audio article.

var myaudio = Z.Audio("moby.ogg");
myaudio.start();