From 217d7e9953de9af2cb2fe692a3522fbfc21f01a5 Mon Sep 17 00:00:00 2001 From: Sam Sykes Date: Tue, 11 Nov 2025 18:05:06 +0000 Subject: [PATCH] Fix for max attempts. --- src/pipecat/services/speechmatics/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/speechmatics/tts.py b/src/pipecat/services/speechmatics/tts.py index b45c63ef7..76c7a1a8a 100644 --- a/src/pipecat/services/speechmatics/tts.py +++ b/src/pipecat/services/speechmatics/tts.py @@ -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