From d15adb490b634dd22a65a1c8d7f4ec9fa74816b4 Mon Sep 17 00:00:00 2001 From: historia Date: Tue, 1 Sep 2026 03:38:50 -0400 Subject: fix: hide speech-to-speech only models from config wizard --- app/tests/test_tts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/tests/test_tts.py') diff --git a/app/tests/test_tts.py b/app/tests/test_tts.py index 8403913..6c245e5 100644 --- a/app/tests/test_tts.py +++ b/app/tests/test_tts.py @@ -1051,7 +1051,9 @@ class AudioCppFamilyDetectionTests(unittest.TestCase): {"id": "tts-1", "family": "qwen3_tts", "task": "tts"}]}) message = str(ctx.exception) self.assertIn("personaplex", message) - self.assertIn("speech-to-speech", message) + self.assertIn("speech-to-speech, not TTS", message) + self.assertIn("cannot synthesize narration", message) + self.assertIn("Consider deleting the model", message) self.assertIn(_AUDIOCPP_MODEL_ID, message) self.assertIn("tts-1", message) @@ -1385,7 +1387,8 @@ class AudioCppDeterministicErrorTests(unittest.TestCase): def test_speech_to_speech_only_family_is_not_retryable_with_a_hint(self): exc = self._error("PersonaPlex supports only speech-to-speech sessions") self.assertIsInstance(exc, NonRetryableTTSError) - self.assertIn("cannot generate audiobooks", str(exc)) + self.assertIn("speech-to-speech, not TTS", str(exc)) + self.assertIn("Consider deleting the model", str(exc)) def test_unresolvable_clone_voice_is_not_retryable_with_a_hint(self): exc = self._error("Vevo2 requires target_voice or voice speaker audio") -- cgit v1.2.3