Fix for max attempts.

This commit is contained in:
Sam Sykes
2025-11-11 18:05:06 +00:00
parent 41cf9adef4
commit 217d7e9953

View File

@@ -159,7 +159,7 @@ class SpeechmaticsTTSService(TTSService):
attempt += 1
# Check if we've exceeded the maximum number of attempts
if attempt > self._params.max_retries:
if attempt >= self._params.max_retries:
raise ValueError()
# Report error frame