我现在要让一个人说一句话
然后他说完我要得到他说的话的WAVE文件
这个问题怎么做?

解决方案 »

  1.   

    http://www.codeproject.com/KB/cs/PWR.aspx
      

  2.   

    录音的核心代码:
        try
        {
            Stream sw = _cRecorder.CreateStream(_cStreamMemory, _cWaveFormat);
            byte[] bf = new byte[sw.Length - sw.Position];
            sw.Read(bf, 0, bf.Length);
            sw.Dispose();
            FileStream fs = new FileStream(sfdSave.FileName, 
                                create ? FileMode.Create : FileMode.Append);
            fs.Write(bf, 0, bf.Length);
            fs.Close();
            fs.Dispose();
            mnuItemSave.Enabled = true;
            return true;
        }
        catch
        {
            ErrorPrompt("Bad File Name", "Could Not Save File!", 
                        "The Recording could not be saved.");
            return false;
        }
    给你提供了个好的源文件,自己下载参考一下吧
      

  3.   

    http://www.codeproject.com/KB/audio-video/igotmessage.aspxhttp://www.codeproject.com/KB/audio-video/cswavrec.aspx?print=true