Please see the definition of the class
NAudio.Wave.WaveFileWriter
. Among others, it has this constructor:
public WaveFileWriter(Stream outStream, WaveFormat format) { }
where
outStream
is a stream to be written to. So, it can be a memory stream (but why?) or, according to your purpose, better be a network stream.
—SA