Fix for max attempts.
This commit is contained in:
@@ -159,7 +159,7 @@ class SpeechmaticsTTSService(TTSService):
|
|||||||
attempt += 1
|
attempt += 1
|
||||||
|
|
||||||
# Check if we've exceeded the maximum number of attempts
|
# Check if we've exceeded the maximum number of attempts
|
||||||
if attempt > self._params.max_retries:
|
if attempt >= self._params.max_retries:
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
|
|
||||||
# Report error frame
|
# Report error frame
|
||||||
|
|||||||
Reference in New Issue
Block a user