From 9dce13121412725e3c19b5136eb04c70f5440b43 Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Sat, 9 Oct 2021 18:10:30 +0530 Subject: [PATCH] Update actions.py --- actions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/actions.py b/actions.py index 4dea1e3..2e3ca95 100644 --- a/actions.py +++ b/actions.py @@ -43,8 +43,16 @@ def open_url(url): def search(search_query, search_engine): open_url(f"{search_engine}/search?q={search_query}") +gui_speak = lambda text: None + + +def set_gui_speak(command): + global gui_speak + gui_speak = command + def speak(text): + gui_speak(text) engine.say(text) engine.runAndWait()