This project has moved. For the latest updates, please go here.

Record files with effect (Skype Voice Changer)

Sep 13, 2010 at 3:57 PM

Is there a way to modify the Skype voice changer to record the audio file with the effect. I know how to write the audio file using the following code:

 

           WaveFileWriter writer = new WaveFileWriter(Environment.CurrentDirectory + "//Record.wav", audioGraph.outStream.WaveFormat);
            byte[] buffer = new byte[audioGraph.outStream.GetReadSize(4000)];

            while (true)
            {
                int bytesRead = audioGraph.outStream.Read(buffer, 0, buffer.Length);

                if (bytesRead == 0)
                    break;

                writer.WriteData(buffer, 0, bytesRead);
            }

            writer.Dispose();
            writer.Close();

 

but the effect is not saved with it. Any ideas?

Coordinator
Sep 29, 2010 at 2:16 PM

the stream is already been read by SkypeVoiceChanger, so you would need to intercept with perhaps another wrapped Stream in order to save the data

Mark

Coordinator
Sep 29, 2010 at 2:25 PM

I should add, have a look at WaveRecorder in the latest NAudio source

Mark