This project has moved. For the latest updates, please go here.

Capture stream to memory and play

Oct 25, 2015 at 9:04 AM
I made application that runs speech synthesis and saves it to a wave file with naudio. That file is played.
I would like to create memory stream and play from it without creating wave file. Is there an example of memory stream usage?
Oct 28, 2015 at 12:40 PM
Yes, you can output the Microsoft speech synthesizer to a MemoryStream. Flush it, but don't dispose it when it's done. Then you can simply set the Position of that MemoryStream back to 0, and pass it into a WaveFileReader.
Nov 1, 2015 at 10:00 AM

In general I know what should be done but I can't make it working. Any link to working example would be appreciated.