Narendran N

Narendran N

  • NA
  • 27
  • 4.2k

SpeechSynthesizer and SpeechRecognition using asp.net c#

Jun 9 2016 1:03 AM

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.

 

  1. SpeechSynthesizer sp1 = new SpeechSynthesizer();  
  2.  protected void btn_Spk_Click(object sender, EventArgs e)  
  3.     {  
  4.         foreach (GridViewRow row in gvtemperament.Rows)  
  5.         {  
  6.             Label lbl1 = (Label)row.FindControl("lbl_desc");  
  7.             sp1.SelectVoiceByHints(VoiceGender.Male);  
  8.             sp1.Volume = 100;  
  9.             sp1.Rate = -3;  
  10.             sp1.SpeakAsync(lbl1.Text);  
  11.             Thread.Sleep(1500);  
  12.         }  
  13.     }  
 
 
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.


Answers (2)