diff --git a/egs/libriheavy/TTS/local/prepare_manifest.py b/egs/libriheavy/TTS/local/prepare_manifest.py index 65d442f3a2..aa3e04e1ce 100755 --- a/egs/libriheavy/TTS/local/prepare_manifest.py +++ b/egs/libriheavy/TTS/local/prepare_manifest.py @@ -279,6 +279,7 @@ def __call__(self, cut): return None text = self.en_tn_model.normalize(text) + text = re.sub(r"\s+", " ", text).strip() cut["supervisions"][0]["text"] = text del cut["supervisions"][0]["custom"]