C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SpeechLib;
using System.Threading;
public partial class Default2 : System.Web.UI.Page
{
SpVoice objspeach = new SpVoice();
protected void Page_Load(object sender, EventArgs e)
{
foreach (ISpeechObjectToken Token in objspeach.GetVoices(string.Empty, string.Empty))
{
// SpeechLib.ISpeechObjectToken
//DropDownList1.Items.Add(Token.GetDescription(49));
DropDownList1.Items.Add(Token.GetDescription());
}
DropDownList1.SelectedIndex = 1;
}
protected void btn1_Click(object sender, EventArgs e)
{
objspeach.Voice= objspeach.GetVoices().Item(DropDownList1.SelectedIndex);
objspeach.Speak(txtspeach.Text.Trim(), SpeechVoiceSpeakFlags.SVSFDefault);
objspeach.WaitUntilDone(Timeout.Infinite);
}
}and its working fine.
problem is-
1. not working in server(IIS)
2. and how to change voice type like male , female as well as adult,teen,child,senior etc.
how do i implement this using speech lib .
Note: I successfull to doing this (point 2) using speech synthesizer. but that also not working in iis.

Answers
Know the answer? Post it. Somebody with the same question will find it here.