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 persons So 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: <pre lang="c#"> 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); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)