我在 ASP.NET 应用程序(非 Silverlight)中有以下代码片段
string sText = "Test text";
SpeechSynthesizer ss = new SpeechSynthesizer();
MemoryStream ms = new MemoryStream();
ss.SetOutputToWaveStream(ms);
ss.Speak(sText);
//Need to send the ms Memory stream to the user for listening/downloadin
我如何:
在浏览器上播放此文件
提示用户下载 wav 文件?
任何人都可以帮助完成代码吗?
编辑:任何帮助表示赞赏。