Investigating NAudio for my Next Project

Dec 8, 2009 at 9:27 PM


I'm working on a C# project now where I need to read audio from the line-in/mic and immediately stream it out as MP3 (assuming a user is connected); this is my first experience with audio in a project.  In researching possible solutions I stumbled across NAudio.  Can you tell me if NAudio would be a good fit for what I need to accomplish?


Thank you,


Dec 11, 2009 at 4:50 PM

hi Nick,

NAudio can capture audio from a microphone. It cannot convert it to MP3, though, so you would probably need to use LAME.exe. You could use .NET to stream the converted MP3 over the network. You should be aware that latency will not be particularly good though (probably 100s of milliseconds before the converted audio will be heard). At the other end, there are ways of making NAudio play back MP3 from a network stream, but it is not built into the library yet