aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_tts.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-09-01 03:38:50 -0400
committerhistoria <historiavg@proton.me>2026-09-01 03:38:50 -0400
commitd15adb490b634dd22a65a1c8d7f4ec9fa74816b4 (patch)
tree8fc5da437ceffc22482968cdf7c2591c81a407cc /app/tests/test_tts.py
parent058b19e7a65b40b1024a4fdeb2233062ff273cfd (diff)
downloadtts-audiobook-generator-d15adb490b634dd22a65a1c8d7f4ec9fa74816b4.tar.gz
fix: hide speech-to-speech only models from config wizard
Diffstat (limited to 'app/tests/test_tts.py')
-rw-r--r--app/tests/test_tts.py7
1 files changed, 5 insertions, 2 deletions
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")