From 7f62e6ccca130657b32dc1b0e4ccc131394f422e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 15 Feb 2025 00:06:23 -0500 Subject: [PATCH] Forgot to specify global when checking the speech delay. --- __init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/__init__.py b/__init__.py index 10fb269..8c43c2b 100755 --- a/__init__.py +++ b/__init__.py @@ -344,6 +344,7 @@ def speak(text, interrupt=True): current_time = pygame.time.get_ticks() # Check if this is the same text within the delay window + global lastSpoken if (_lastSpoken["text"] == text and current_time - _lastSpoken["time"] < _speechDelay): return