Code:
// Play wav file when download is finished
// Trigger: "A Download Stopped"
if (link.isFinished()) {
var wavFile = JD_HOME + "/themes/standard/org/jdownloader/sounds/captcha.wav"; // wav file to play
playWavAudio(wavFile);
}
This script can only be used to play 'wav' files. To play other audio formats you can use using 'ffplay' in the script.