How to configure Hudson to announce build results with sounds

Windows

    1. Install the Post build task plugin
    2. Copy the playsound.exe file (found in the attached PlaySound.zip, along with its source code) to your Hudson folder as well as two other files of your choosing: success.wav and failure.wav
    3. For each applicable job, enable the Post build task and configure two tasks:
      1. Log text: BUILD SUCCEEDED (or whatever your build script outputs on success) and inside Script add the following lines, adjusting for the location of your Hudson folder:
        1. cd \hudson playsound.exe success.wav
      2. Log text: BUILD FAILED (or whatever your build script outputs on failure) and inside Script add the following lines, adjusting for the location of your Hudson folder:
        1. cd \hudson playsound.exe failure.wav