Fix the bug that 嗯 cannot be synthesized.

This commit is contained in:
root 2025-06-17 17:48:04 +08:00
parent 10d557a15e
commit 9098497272

View File

@ -111,6 +111,7 @@ class TextNormalizer:
self.en_normalizer = NormalizerEn(overwrite_cache=False)
def normalize(self, text: str) -> str:
text = text.replace("", "").replace("", "")
if not self.zh_normalizer or not self.en_normalizer:
print("Error, text normalizer is not initialized !!!")
return ""