Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I've made a browser with WebControl. now I want to read and highlight the text. So I split then sentences and start a loop.now the problem is,with a Synchronous call of SAPI to speak the sentences,every other button of the browser stops working.I can't pause,resume or even exit the software. Every button get hanged. If I use a asynchronous call of SAPI ,this problem doesn't occur,but then the highlighting of text will not work.So , I need to stick with this Synchronous call and also get over with this hang problem. Does anyone have any solution!!!!!!!
for (int i = 0; i < splitSentences.Length; i++)
{
    highlight(splitSentences[i]);
    sound_object.Speak(splitSentences[i]);

}


Please urgent help needed.How can I work out those pause,exit buttons of browser while speaking the sentece....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900