mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
Subjective improvements
This commit is contained in:
@@ -70,9 +70,9 @@ def remove_aux_symbols(text):
|
||||
def replace_symbols(text, lang='en'):
|
||||
text = text.replace(';', ',')
|
||||
text = text.replace('-', ' ')
|
||||
text = text.replace(':', ' ')
|
||||
text = text.replace(':', ',')
|
||||
if lang == 'en':
|
||||
text = text.replace('&', 'and')
|
||||
text = text.replace('&', ' and ')
|
||||
elif lang == 'fr':
|
||||
text = text.replace('&', ' et ')
|
||||
elif lang == 'pt':
|
||||
|
||||
Reference in New Issue
Block a user