Skip to content

[Optimization] Optimize pyttsx3 usage by removing unnecessary engine.stop() call #313

@NhanPhamThanh-IT

Description

@NhanPhamThanh-IT

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions