public async Task beepCmd() { string filePath = @"C:\Users\KernelSanders\Desktop\test.wav"; WaveGen wave = new WaveGen(WaveType.Noise); wave.Save(filePath); await _service.JoinAudio(Context.Guild, (Context.User as IVoiceState).VoiceChannel); await _service.SendAudioAsync(Context.Guild, Context.Channel, filePath); await _service.LeaveAudio(Context.Guild); //SoundPlayer player = new SoundPlayer(filePath); //player.PlaySync(); wave.Save(filePath, true); }