From d7bf6c0054572f5632a8d81868d9c16938a516ba Mon Sep 17 00:00:00 2001 From: TianYuan Date: Tue, 13 Sep 2022 12:32:47 +0000 Subject: [PATCH] fix for comments, test=tts --- examples/vctk/ernie_sat/local/synthesize_e2e.sh | 2 +- paddlespeech/t2s/exps/ernie_sat/synthesize_e2e.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/vctk/ernie_sat/local/synthesize_e2e.sh b/examples/vctk/ernie_sat/local/synthesize_e2e.sh index d6671276f..dcc710447 100755 --- a/examples/vctk/ernie_sat/local/synthesize_e2e.sh +++ b/examples/vctk/ernie_sat/local/synthesize_e2e.sh @@ -37,7 +37,7 @@ if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then --task_name=edit \ --wav_path=source/p243_313.wav \ --old_str='For that reason cover should not be given' \ - --new_str='For that reason cover is not impossible to be given.' \ + --new_str='For that reason cover is not impossible to be given' \ --source_lang=en \ --target_lang=en \ --erniesat_config=${config_path} \ diff --git a/paddlespeech/t2s/exps/ernie_sat/synthesize_e2e.py b/paddlespeech/t2s/exps/ernie_sat/synthesize_e2e.py index 57b479730..e450aa1a0 100644 --- a/paddlespeech/t2s/exps/ernie_sat/synthesize_e2e.py +++ b/paddlespeech/t2s/exps/ernie_sat/synthesize_e2e.py @@ -359,7 +359,8 @@ def parse_args(): parser.add_argument( "--task_name", type=str, - help="task name, should be in {'edit', 'synthesize'}") + choices=['edit', 'synthesize'], + help="task name.") parser.add_argument("--wav_path", type=str, help="path of old wav") parser.add_argument("--old_str", type=str, help="old string") parser.add_argument("--new_str", type=str, help="new string")