pyttsx3
pyttsx3 copied to clipboard
runAndWait() causes opencv camera feed to freeze
HI does anyone know why using pyttsx3 causes my opencv camera window to either close, or freeze? I would like to be able to speak out detected objects. Any ideas to prevent this from happening or workaround? Maybe I am missing something...
Use Threading. You need to use pyttsx3 engine in separate thread instead of main thread. Let open-cv run on main thread and the pyttsx3 engine inside threading.Thread()