Stabilize XTTS sentence endings
This commit is contained in:
@@ -155,6 +155,16 @@ class LanguageSegmentationTests(unittest.TestCase):
|
||||
self.assertEqual(len(segments), 1)
|
||||
self.assertIn("dir zu helfen. Klingt das gut.", segments[0][1])
|
||||
|
||||
def test_xtts_receives_a_stable_terminal_stop_cue(self):
|
||||
self.assertEqual(
|
||||
gateway._stabilize_xtts_ending("Heute bleibt es trocken."),
|
||||
"Heute bleibt es trocken;",
|
||||
)
|
||||
self.assertEqual(
|
||||
gateway._stabilize_xtts_ending("Klingt das gut."),
|
||||
"Klingt das gut;",
|
||||
)
|
||||
|
||||
def test_normal_sentence_is_not_broken_into_word_sized_requests(self):
|
||||
text = (
|
||||
"Die automatische Komprimierung ist in OpenClaw standardmäßig "
|
||||
|
||||
Reference in New Issue
Block a user