Here is a snippet on how to play a sounds on any event in windows phone 7.
 

   privatevoid PlayButtonSound()

{

       var stream = TitleContainer.OpenStream(“resources/Sounds/button-3.wav”);

       var effect = SoundEffect.FromStream(stream);

       FrameworkDispatcher.Update();

effect.Play();

}