Skip to content

Commit

Permalink
Address cut-off sentences issue during longform
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthrajaram committed Jan 11, 2024
1 parent 576383e commit 350b888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/styletts2/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def long_inference(self,
segments = []
prev_s = None
for text_segment in text_segments:
# Address cut-off sentence issue due to langchain text splitter
if text_segment[-1] != '.':
text_segment += ', '
segment_output, prev_s = self.long_inference_segment(text_segment,
prev_s,
ref_s,
Expand Down

0 comments on commit 350b888

Please sign in to comment.