Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Visual basic 2010. How to prevent System.Speech.Synthesis from freezing all form controls when operating?
Once the command button is clicked to run the TTS part of my program, everything else stops running. I have a timer running simultaneously to cycle three images into a picturebox, which stops completely until the speech has completed. The same happens to each of the controls on the form, including all command buttons.
I would really appreciate any help you guys can provide.
Posted

1 solution

Do the synthesis in a separate thread, not UI thread. Remember that all the use of this API should be performed in one single thread.

Synchronize UI with this thread using usual inter-thread communication/synchronization primitives.

—SA
 
Share this answer
 
v2

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