diff --git a/GUI/__pycache__/gui.cpython-36.pyc b/GUI/__pycache__/gui.cpython-36.pyc index cec7d8a..6dabd62 100644 Binary files a/GUI/__pycache__/gui.cpython-36.pyc and b/GUI/__pycache__/gui.cpython-36.pyc differ diff --git a/GUI/gui.py b/GUI/gui.py index e9b4c5d..4ef28b2 100644 --- a/GUI/gui.py +++ b/GUI/gui.py @@ -4,6 +4,7 @@ from kivy.uix.floatlayout import FloatLayout from kivy.properties import StringProperty, ListProperty from kivy.graphics import Canvas, Color, Rectangle +import pyttsx3 player1_character = "None" player2_character = "None" @@ -88,11 +89,15 @@ def update(self, *args): self.p2_stocks = str(player2_stocks) #---------------CONSOLE---------------------------------------------- + #tts = pyttsx3.init() + if(not shared_commentary_queue.empty()): temp_list = [] temp_list = shared_commentary_queue.get().split('\n') for index in temp_list: commentary.append(index + '\n') + #tts.say(index) + #tts.runAndWait() shared_commentary_queue.task_done() if len(commentary) > 12: