fixed "Dr." interruption (#245)
This commit is contained in:
@@ -110,7 +110,9 @@ class TTSService(AIService):
|
|||||||
text = frame.text
|
text = frame.text
|
||||||
else:
|
else:
|
||||||
self._current_sentence += frame.text
|
self._current_sentence += frame.text
|
||||||
if self._current_sentence.strip().endswith((".", "?", "!")):
|
if self._current_sentence.strip().endswith(
|
||||||
|
(".", "?", "!")) and not self._current_sentence.strip().endswith(
|
||||||
|
("Mr,", "Mrs.", "Ms.", "Dr.")):
|
||||||
text = self._current_sentence.strip()
|
text = self._current_sentence.strip()
|
||||||
self._current_sentence = ""
|
self._current_sentence = ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user