Description
In the Text-to-Speech (TTS) functionality using the pyttsx3 library, there is an unnecessary call to engine.stop() right after engine.runAndWait(). Since engine.runAndWait() already waits for the speech to finish, calling engine.stop() is redundant. This may lead to unnecessary resource usage or potential issues when performing continuous speech synthesis.
Description
In the Text-to-Speech (TTS) functionality using the
pyttsx3library, there is an unnecessary call toengine.stop()right afterengine.runAndWait(). Sinceengine.runAndWait()already waits for the speech to finish,calling engine.stop()is redundant. This may lead to unnecessary resource usage or potential issues when performing continuous speech synthesis.