From f5a9b88ef6664c0e318169f2fc1a47dfddbebdfc Mon Sep 17 00:00:00 2001 From: James Betker Date: Wed, 11 Aug 2021 16:18:44 -0600 Subject: [PATCH] tacotron cleaners: remove quotation marks these don't really have relevance for tts or asr --- codes/models/tacotron2/text/cleaners.py | 1 + codes/train.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/codes/models/tacotron2/text/cleaners.py b/codes/models/tacotron2/text/cleaners.py index e2e35c1a..1277d87f 100644 --- a/codes/models/tacotron2/text/cleaners.py +++ b/codes/models/tacotron2/text/cleaners.py @@ -87,4 +87,5 @@ def english_cleaners(text): text = expand_numbers(text) text = expand_abbreviations(text) text = collapse_whitespace(text) + text = text.replace('"', '') return text diff --git a/codes/train.py b/codes/train.py index 1d11515f..b5208f82 100644 --- a/codes/train.py +++ b/codes/train.py @@ -282,7 +282,7 @@ class Trainer: if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument('-opt', type=str, help='Path to option YAML file.', default='../options/train_gpt_tts_lj.yml') + parser.add_argument('-opt', type=str, help='Path to option YAML file.', default='../options/train_lrdvae_audio_mozcv.yml') parser.add_argument('--launcher', choices=['none', 'pytorch'], default='none', help='job launcher') parser.add_argument('--local_rank', type=int, default=0) args = parser.parse_args()