aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_tts.py
diff options
context:
space:
mode:
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")