Skip to content

Commit 0780ed0

Browse files
|Harveen| Changes for word endings
1 parent 80301d3 commit 0780ed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/inference/advanced_tts.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def run_tts(text, lang, args):
4949
if lang == 'hi':
5050
text = text.replace('।', '.') # only for hindi models
5151

52+
if lang == 'en' and text[-1] != '.':
53+
text = text + '. '
54+
5255
if args.number_conversion == 1 and lang!='en':
5356
print("Doing number conversion")
5457
text_num_to_word = normalize_nums(text, lang) # converting numbers to words in lang

0 commit comments

Comments
 (0)