HowTo Convert WAV to MP3

Oct 14, 2009 at 9:19 PM

Like the discussion name is hinting,

How do I convert a Wav file to a mp3 file.

 

I know this isn't yet possible with NAUDIO, but what can I use to accomplish this task?

 

gr,

 

Jelle

Coordinator
Oct 14, 2009 at 11:01 PM

you should just use LAME.exe

do a web search for it.

Mark

 

Oct 14, 2009 at 11:23 PM

Thanks! Lame did the trick.

 

here is my code

 

 	Dim Arguments As String = "-V2 -V 0 """ & tmpFile & """ """ & OutputFileName & ".mp3" & """"
        Dim psi As New System.Diagnostics.ProcessStartInfo()
        psi.FileName = """" & Application.StartupPath & "\lame.exe" & """"
        psi.Arguments = Arguments
        psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized
        Dim p As System.Diagnostics.Process = System.Diagnostics.Process.Start(psi)
        p.WaitForExit()