diff --git a/egs/libriheavy/TTS/local/prepare_manifest.py b/egs/libriheavy/TTS/local/prepare_manifest.py old mode 100644 new mode 100755 index 8326e36f5..259810eb5 --- a/egs/libriheavy/TTS/local/prepare_manifest.py +++ b/egs/libriheavy/TTS/local/prepare_manifest.py @@ -34,8 +34,7 @@ class TextNormlizer: # brackets # Always text inside brackets with numbers in them. Usually corresponds to "(Sam 23:17)" text = re.sub(r"\([^\)]*\d[^\)]*\)", " ", text) - if remove_brackets: - text = re.sub(r"\([^\)]*\)", " ", text) + text = re.sub(r"\([^\)]*\)", " ", text) # Apply mappings table = str.maketrans("’‘,。;?!():-《》、“”【】", "'',.;?!(): <>/\"\"[]")