title: How to convert from wma to mp3 using NAudio
body: <p><strong>Please note This is NOT a duplicate of the other question linked. That uses classes I couldn't find, as detailed in my question below.</strong></p>
  
  <p>I'm trying to convert wma files to mp3. I need a solution that I can integrate into my code base, not rely on an external resource, so using ffmpeg isn't an option. I've been trying NAudio, but without any success.</p>
  
  <p>One problem is that there seem to be two versions of NAudio around, and neither seems complete. The one you get from Nuget doesn't include the WMAFileReader class, so there's no way (that i can see) to read wma files. The <a href="https://github.com/SjB/NAudio" rel="nofollow" title="version on github">version on github</a> includes the WMAFileReader class, but doesn't seem to include the Mp3Writer class, nor the WaveLib class I've seen in many examples.</p>
  
  <p>So, anyone know how I can get something that will do the job? I've wasted hours trying different code samples, but none of them seem to work with either version of NAudio I can find.</p>
  
  <p>Ideally, I would like to do this in memory, but if I have to write to temporary disk files, it's not the end of the world.</p>
  
  <p><strong>Edit</strong> I just discovered that there are more NAudio nuget packages that extend the basic one. There  is one for Lame and one for WMA, but even after installing them, I can't get any code to work.</p>