Skip to content

Make MeloTTS logs English & add G2P debug toggle and SOLA algorithm #12

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

Merged
merged 2 commits into from
May 6, 2025

Conversation

yuyun2000
Copy link
Contributor

Changes

  • Converted all logs in MeloTTS to English for better internationalization
  • Added debug switch for G2P (Grapheme-to-Phoneme) process logging
  • Implemented SOLA (Synchronous Overlap-Add) algorithm for improved frame transitions

Why

These changes improve the user experience for non-Chinese speakers, provide better debugging capabilities for the G2P process, and enhance audio quality by reducing artifacts between synthesized frames.

Testing

  • Verified English logs display correctly in various scenarios
  • Tested G2P debug toggle functionality by enabling/disabling while processing different texts
  • Conducted audio quality comparisons before/after SOLA implementation to confirm improved transitions

yuyun2000 added 2 commits May 6, 2025 16:48
Apply the Synchronized Overlap-Add (SOLA) algorithm to smooth the connection between audio segments output by the decoder, resulting in more natural-sounding transitions between segments.
- Convert all Chinese log messages in Lexicon.hpp to English for better international compatibility\n- Add a debug flag to control whether to display g2p process logs\n- Improve code readability and debugging experience
@Abandon-ht Abandon-ht merged commit e1d7e6d into m5stack:dev May 6, 2025
Copy link

@csukuangfj csukuangfj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

太强了!

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