Compare commits

...
1 Commits
Author SHA1 Message Date
Storm Dragon 7f62e6ccca Forgot to specify global when checking the speech delay. 2025-02-15 00:06:23 -05:00
+1
View File
@@ -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