asp.net tts, but error, please help me to solve it. RRS feed

  • Question

  • in my asp.net project, I code below for a text to speech function. in my page's c# file. byte[] SpeakText(string text) { using (SpeechSynthesizer s = new SpeechSynthesizer()) { using (MemoryStream ms = new MemoryStream()) { s.SetOutputToWaveStream(ms); s.Speak(text); return ms.GetBuffer(); } } } protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text != "") { Response.Write(SpeakText(TextBox1.Text)); } } but not hear the audio while run it. How to solve the problem? Thank you.
    • Moved by Annabella Luo Tuesday, December 6, 2011 3:03 AM off-topic (From:Windows Presentation Foundation (WPF))
    Monday, December 5, 2011 8:38 AM


  • Hi VCResearch,

    Thank you for your post.

    According to your description, I think your issue is about APS.Net. So I will move your thread.

    If you have any else ASP.Net questions, please post your issue to APS.Net forum .

    Thank you for your understanding.

    Have a nice day.

    Annabella Luo[MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by VCResearch Tuesday, December 6, 2011 2:51 PM
    Tuesday, December 6, 2011 3:01 AM