SpeechSynthesizer and SpeechRecognition using asp.net c#
Am enhancing an existing web application (Psychometric Test battery;using Asp.Net,C#,SqlServer)which is already being used by normal users as all of us; now we are enhancing the same for visually impaired personsSo I am thinking to implement this speech recognition in that with existing grid view; but am struggling with that;
In the existing one we have used gridview to load the data from db,now I can't able to read the record one by one using SpeechSynthesizer; It's keep on reading till end of all the records.
Here the code:
SpeechSynthesizer sp1 = new SpeechSynthesizer();
protected void btn_Spk_Click(object sender, EventArgs e)
{
foreach (GridViewRow row in gvtemperament.Rows)
{
Label lbl1 = (Label)row.FindControl("lbl_desc");
sp1.SelectVoiceByHints(VoiceGender.Male);
sp1.Volume = 100;
sp1.Rate = -3;
sp1.SpeakAsync(lbl1.Text);
Thread.Sleep(1500);
}
}
Can anyone please help me out on this?
And also I need to implement SpeechRecognition to make the system more flexible as a one to one conversation.
Regards,
Narendran Namachivayam.?