mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
Subjective improvements
This commit is contained in:
1 parent
b2817e9e93
commit
da134eeee4
1 file changed
+2
-2
@@ -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