From 85102213aba338ac066d87147ac9b6f936fb52a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=9C=87=E4=B8=9C?= <275331498@qq.com> Date: Fri, 22 Jul 2022 16:59:40 +0800 Subject: [PATCH] fix: avoid skipping the first phoneme --- paddlespeech/t2s/exps/fastspeech2/preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/t2s/exps/fastspeech2/preprocess.py b/paddlespeech/t2s/exps/fastspeech2/preprocess.py index 0045c5a33..fb1d5752a 100644 --- a/paddlespeech/t2s/exps/fastspeech2/preprocess.py +++ b/paddlespeech/t2s/exps/fastspeech2/preprocess.py @@ -74,7 +74,7 @@ def process_sentence(config: Dict[str, Any], start = 0 end = d_cumsum[-1] if phones[0] == "sil" and len(durations) > 1: - start = times[1] + start = times[0] durations = durations[1:] phones = phones[1:] if phones[-1] == 'sil' and len(durations) > 1: