Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fixes print_to_console sometiems speaking text when speaking is disabled.

Torantulino850847b9eca9
diff --git a/scripts/main.py b/scripts/main.py
index fe338ae89b..de0f846657 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -17,7 +17,8 @@ class Argument(Enum):
SPEAK_MODE = "speak-mode"
def print_to_console(title, title_color, content, speak_text = False, min_typing_speed=0.05, max_typing_speed=0.01):
- if speak_text:
+ global cfg
+ if speak_text and cfg.speak_mode:
speak.say_text(f"{title}. {content}")
print(title_color + title + " " + Style.RESET_ALL, end="")
if content: