Skip to content

Conversation

@Sadler2
Copy link

@Sadler2 Sadler2 commented Mar 6, 2025

✨ Description

Before this fix, MaskGCT TTS produced unintelligible sounds instead of meaningful speech during inference on Windows. The issue was caused by reading JSON files without explicitly specifying UTF-8 encoding.

On systems where Python's default encoding is not set to UTF-8, this led to incorrect parsing of vocabulary/phoneme data, tampering the speech synthesis process.

before_and_after.zip

🚧 Related Issues

#327

https://github.com/justinjohn0306/MaskGCT-Windows

…ence

This patch explicitly sets `encoding="utf-8"` when reading JSON files to prevent encoding issues on Windows.
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.

1 participant