//wav转byte
public void WavToByte() { Byte[] bs; FileStream fs = new FileStream(@"C:\1.wav", FileMode.Open, FileAccess.Read); bs = new Byte[fs.Length]; fs.Read(bs, 0, (int)fs.Length); fs.Close(); }
//byte转wav
public void ByteToWav(Byte[] bs) { FileStream fs = new FileStream(@"C:\2.wav", FileMode.OpenOrCreate, FileAccess.Write); fs.Write(bs, 0, bs.Length); fs.Close(); }