Making a Voice Synthesis App with Ivona and Python - Part 5

in programming •  8 years ago 

In this fifth video of creating a speech synthesis app in Python we learn about threading.

Threading allows us to separate or contain parts of the main app, a situation that needs special attention in graphical or GUI applications. Without threading, every time you'd click a button or run a function, the application would freeze or become unresponsive until the function completed. Obviously, we want to, maybe, deal with some other part of the application while it's doing something (running a function) hence we need responsiveness.

In this particular case, I contain or isolate the running of the 'Speaking' function of the application within a thread, so every time we click the 'Speak' button and Ivona starts speaking, the app does not freeze, or remains responsive. I guess you will understand better by watching the tutorial...


Previously in this series:

  1. Making a Voice Synthesis App with Ivona and Python - Part 1
  2. Making a Voice Synthesis App with Ivona and Python - Part 2
  3. Making a Voice Synthesis App with Ivona and Python - Part 3
  4. Making a Voice Synthesis App with Ivona and Python - Part 4


To stay in touch with me, follow @cristi

#programming #science #python


Cristi Vlad, Self-Experimenter and Author

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!