This project has moved and is read-only. For the latest updates, please go here.

Capture stream to memory and play

Oct 25, 2015 at 10: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 1: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 11: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.