Esempio n. 1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "audio/wav";

            string text = context.Request.Form["text"];

            if (string.IsNullOrEmpty(text))
            {
                text = context.Request.QueryString["text"];
            }
            if (!string.IsNullOrEmpty(text))
            {
                SpeakHelper.Speak(text, @"LinZhiling", context.Response.OutputStream);
            }

            context.Response.Flush();
        }