添加一个引用: Using System.Media.SoundPlayer; SoundPlayer sp=new SoundPlayer("d://aa.wav");//表示添加声音文件的路径 sp.play();