mirror of
https://github.com/wassname/TTS.git
synced 2026-10-26 12:20:32 +08:00
text processing update
This commit is contained in:
1 parent
76d5e065db
commit
1ed4978e69
2 files changed
+23
-1
No files matched your search
@@ -49,7 +49,7 @@ def phoneme_to_sequence(text, cleaner_names, language):
|
||||
phonemes = text2phone(clean_text, language)
|
||||
if phonemes is None:
|
||||
print("!! After phoneme conversion the result is None. -- {} ".format(clean_text))
|
||||
# iterate by skipping empty strings
|
||||
# iterate by skipping empty strings - NOTE: might be useful to keep it to have a better intonation.
|
||||
for phoneme in filter(None, phonemes.split('|')):
|
||||
sequence += _phoneme_to_sequence(phoneme)
|
||||
# Append EOS char
|
||||
|
||||
Reference in new issue
Block a user