Nov-14-2020, 10:48 AM
(Nov-14-2020, 01:56 AM)joe_momma Wrote: Looks like this part in your code is blocking the mainloop in tkinter
Quote:engine.runAndWait()you may need to use threading -> thread -> start, to separate the voice to text.
I would create a function which starts the voice to text. threading module
Thanks! Just to make sure.. All the print commands after
Quote:engine.runAndWait()are executed in the terminal. I also googled threading but I don't know how to use it the functions of threading. So, while threading.TIMEOUT_MAX seems like an option, I don't have an idea how to implement it (just started python a few weeks ago..) Do you have suggestions?