Using (var reader = new RawSourceWaveStream(stream, format)) Using (Stream stream = request.GetResponse().GetResponseStream()) Request.ProtocolVersion = HttpVersion.Version10 Var request = (HttpWebRequest)WebRequest.Create(url) Var format = WaveFormat.CreateMuLawFormat(8000, 1) I've cobbled together a partially working solution from various other questions here and in the NAudio forums, but it throws an exception as noted in the comments below: private void NAudioTest(string url) My proposed solution is to do a real-time conversion from the source format to mp3. As an example, my endpoint looks something like ĭue to varying format support across browsers when using the HTML5 tag, I am unable to use the original u-law wav because Internet Explorer will not play it. I need to provide a playback mechanism for this audio (currently built as an MVC application). ![]() Background: I am consuming a service which returns data with a MIME type of audio/wav.
0 Comments
Leave a Reply. |