Python-Projects
Python-Projects copied to clipboard
Optimization of pyttsx3 usage by removing unnecessary engine.stop() call
The current implementation of the Text-to-Speech (TTS) functionality in the pyttsx3 library includes an unnecessary call to engine.stop() immediately after engine.runAndWait(). Problem: After the text is spoken using engine.runAndWait(), the engine.stop() method is invoked. However, engine.runAndWait() already waits for the speech to complete, making the additional call to engine.stop() redundant. This may lead to unnecessary resource usage or potential issues in continuous speech synthesis. I would be glad to work on this issue, so it would be great if you could assign me for this issue. @Shahrayar123 Thanks, Regards.