Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janetjoseph02 opened this issue Oct 7, 2024 · 1 comment

Comments

@janetjoseph02
Copy link

janetjoseph02 commented Oct 7, 2024

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.

@Pranjal0901
Copy link

I would be glad to work on this issue, so it would be great if you could assign me for this issue. @Shahrayar123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants