Python-Projects icon indicating copy to clipboard operation
Python-Projects copied to clipboard

Optimization of pyttsx3 usage by removing unnecessary engine.stop() call

Open janetjoseph02 opened this issue 4 months ago • 0 comments

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.

janetjoseph02 avatar Oct 07 '24 17:10 janetjoseph02