From 9db1710ba78c18185e5180f366ff8e5e3d70b5e2 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Mon, 13 Dec 2021 20:08:43 +0800 Subject: [PATCH] add conformer demos (#1108) --- docs/source/tts/demo.rst | 101 +++++++++++++++++++++++ paddlespeech/t2s/frontend/zh_frontend.py | 4 + 2 files changed, 105 insertions(+) diff --git a/docs/source/tts/demo.rst b/docs/source/tts/demo.rst index 4c2f86b1..ca2fd98e 100644 --- a/docs/source/tts/demo.rst +++ b/docs/source/tts/demo.rst @@ -455,6 +455,7 @@ Audio samples generated by a TTS system. Text is first transformed into spectrog CSMSC(Chinese)

+ @@ -634,6 +635,106 @@ Audio samples generated by a TTS system. Text is first transformed into spectrog
Text
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FastSpeech2-Conformer + ParallelWaveGAN
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +


diff --git a/paddlespeech/t2s/frontend/zh_frontend.py b/paddlespeech/t2s/frontend/zh_frontend.py index b59060a3..8eb55ff2 100644 --- a/paddlespeech/t2s/frontend/zh_frontend.py +++ b/paddlespeech/t2s/frontend/zh_frontend.py @@ -137,6 +137,10 @@ class Frontend(): phones_list.append(phones) if merge_sentences: merge_list = sum(phones_list, []) + # rm the last 'sp' to avoid the noise at the end + # cause in the training data, no 'sp' in the end + if merge_list[-1] == 'sp': + merge_list = merge_list[:-1] phones_list = [] phones_list.append(merge_list) return phones_list -- GitLab