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

Fix console output issue in tts function of synthesizer class #3973

Closed
wants to merge 1 commit into from

Conversation

Dilshad24
Copy link

Fix Console Printing Issue in synthesizer Class

This update addresses an issue with the tts function in the synthesizer class where console output, including the array of split sentences, processing time, and real-time factor, was being printed during execution. This was causing unwanted console output when the synthesizer function is run in a thread.

Changes Made:
Added criteria SuppresPrintStatements type boolen to suppress console output generated by the tts function.

Ensured that print statements are only triggered when explicitly required, preventing cluttered console output during threaded execution. This modification improves the usability of the synthesizer class when integrated into threaded applications and enhances the overall user experience by minimizing unnecessary console output.

Fix Console Printing Issue in synthesizer Class

This update addresses an issue with the tts function in the synthesizer class where console output, including the array of split sentences, processing time, and real-time factor, was being printed during execution. This was causing unwanted console output when the synthesizer function is run in a thread.

Changes Made:
Added criteria SuppresPrintStatements type boolen to suppress console output generated by the tts function.

Ensured that print statements are only triggered when explicitly required, preventing cluttered console output during threaded execution.
This modification improves the usability of the synthesizer class when integrated into threaded applications and enhances the overall user experience by minimizing unnecessary console output.
@CLAassistant
Copy link

CLAassistant commented Aug 16, 2024

CLA assistant check
All committers have signed the CLA.

@eginhard
Copy link
Contributor

@Dilshad24 This repo is not maintained anymore. In our fork (available via pip install coqui-tts) the (vast majority of) print statements were replaced with the Python standard lib's logging. This should make it easy to configure the verbosity as needed.

@Dilshad24
Copy link
Author

Thank you so much @eginhard for the info.

@Dilshad24 Dilshad24 closed this Aug 17, 2024
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

Successfully merging this pull request may close these issues.

3 participants