Creating .mp3 file from .Wav file

Jan 8 at 9:53 PM
Hello,

Does NAudio provide an easy way to perform .wav file to .mp3 file creation similar to this ( .mp3 to .wav) code snippet
        Mp3FileReader reader = new Mp3FileReader(iPath);
        WaveFileWriter.CreateWaveFile(oPath, reader);
Incidentally, I would use compression specs identical to the file I read from in snippet.

many thanks.............
Coordinator
Jan 9 at 1:37 PM
With the MediaFoundationEncoder in Windows 8 you can convert to MP3.
Otherwise, you could use Corey's Lame wrapper https://github.com/Corey-M/NAudio.Lame

Mark
Jan 11 at 6:02 AM
Thank you, good to know.