Skip to content
Python

workaround for tm

DeepBeepMeepff6c1bb281f8
diff --git a/models/TTS/index_tts2/utils/front.py b/models/TTS/index_tts2/utils/front.py
index a7f06b0..dc7b0ea 100644
--- a/models/TTS/index_tts2/utils/front.py
+++ b/models/TTS/index_tts2/utils/front.py
@@ -118,7 +118,7 @@ class TextNormalizer:
import platform
if self.zh_normalizer is not None and self.en_normalizer is not None:
return
- if platform.system() != "Linux": # Mac and Windows
+ if platform.system() != "Linux" or True: # Mac and Windows
from wetext import Normalizer
self.zh_normalizer = Normalizer(remove_erhua=False, lang="zh", operator="tn")