the given below code is playing audio from URL. Is it possible to read stream from that URL and create an audio file and also save in PC ?
var url = "http://media.ch9.ms/455884123cf7a0852876.wav";
using(var mf = new MediaFoundationReader(url))
using(var wo = new WaveOutEvent())
{
wo.Init(mf);
wo.Play();
while (wo.PlaybackState == PlaybackState.Playing)
{
Thread.Sleep(1000);
}
}