If you want to encode MP3, then you'd need an MP3 encoder, which is not part of NAudio. Read my article on
converting audio formats if you want to get a good understanding of how to convert between audio formats uning NAudio