Replace XTTS with Qwen3-TTS
This commit is contained in:
@@ -110,6 +110,22 @@ class LanguageSegmentationTests(unittest.TestCase):
|
||||
self.assertIn("29 Kilometer pro Stunde", spoken)
|
||||
self.assertNotIn("km", spoken.lower())
|
||||
|
||||
def test_qwen_normalizes_ipv4_time_date_and_count(self):
|
||||
spoken = gateway.prepare_for_qwen_speech(
|
||||
"full_kiosk (192.168.1.5): 2× Timeout um 02:14 seit 01.09."
|
||||
)
|
||||
self.assertIn("full kiosk", spoken)
|
||||
self.assertIn("192 Punkt 168 Punkt 1 Punkt 5", spoken)
|
||||
self.assertIn("2 mal Timeout", spoken)
|
||||
self.assertIn("2 Uhr 14", spoken)
|
||||
self.assertIn("1. September", spoken)
|
||||
|
||||
def test_qwen_keeps_prosody_punctuation(self):
|
||||
spoken = gateway.prepare_for_qwen_speech(
|
||||
"Ist das gut? Ja! SarahTV: erreichbar."
|
||||
)
|
||||
self.assertEqual(spoken, "Ist das gut? Ja! SarahTV: erreichbar.")
|
||||
|
||||
def test_visual_punctuation_becomes_natural_pauses(self):
|
||||
spoken = gateway.clean_for_speech(
|
||||
"Status: stabil – keine Fehler; Docker-Container laufen."
|
||||
|
||||
Reference in New Issue
Block a user