none
How can I record group discussion using c# or vb.net? RRS feed

  • Question

  • I have used "winmm.dll" library to record. But in this case only mike voice is recorded , I want to record both mike and speaker simultaneously.

    Here is my code :

    [DllImport("winmm.dll", EntryPoint = "mciSendStringA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
    private static extern int record(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);

     private void Start_Click(object sender, EventArgs e)
            {
                timer1.Enabled = true;
                timer1.Start();
                record("open new Type waveaudio Alias recsound", "", 0, 0);
                record("record recsound", "", 0, 0); 
            }

    private void Stop_Click(object sender, EventArgs e)
     {
                timer1.Stop();
                timer1.Enabled = false;
                record("save recsound d:\\mic.wav", "", 0, 0);
                record("close recsound", "", 0, 0);  
    }

    I would much appreciate any pointers you can give me.

    Thanks!

    Dhirajkumar Kakade


    Saturday, October 19, 2019 5:49 AM

All replies