Fix the bug that 嗯 cannot be synthesized.
This commit is contained in:
parent
10d557a15e
commit
9098497272
@ -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 ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user