I want to play sound when receiving message, so i searched it and found many solution but the simplest solution that i found is
Try following (Not tested)
Keep the sound file all ready embedded in the code and use javascript function to play it...