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

is it possible to record to mp3 file directly?

Jun 19, 2012 at 2:09 PM


I am using WaveInEvent to record from microphone, and its recording files for now in wav format which is taking really huge size in hard disk, so is there any class or function or a way to save a file or bytes as mp3 directly instead of wav ??




Jun 19, 2012 at 2:24 PM

the way to do this is to use lame.exe and do on the fly conversion by writing to stdin. I hope to do a blog post on this at some point.


Jun 19, 2012 at 4:09 PM

ya, what I am doing now, I am saving records per hour, and then I am doing conversion of wav file using lame.exe, but really I dont think its good idea to save as wav then perform conversion, 

but the questions is, how to use stdin in c# and is there any changes required for WaveInEvent ?

Jun 22, 2012 at 9:38 AM

As I said, I plan to write a tutorial at some point, but you can find instructions on using stdin in C# by searching on StackOverflow