From 651e37b0d32d8a4a6a9737816cd21b75a2d08cfe Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 27 Apr 2023 16:49:02 -0700 Subject: [PATCH] debug --- basic_text_to_speech/talk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basic_text_to_speech/talk.py b/basic_text_to_speech/talk.py index 1f20619..4936562 100644 --- a/basic_text_to_speech/talk.py +++ b/basic_text_to_speech/talk.py @@ -4,6 +4,7 @@ import os def robot(text): + print("executing command") command = 'espeak --stdin "' + text + '" | aplay -D plughw:2,0 ' os.system(command) return command @@ -13,9 +14,10 @@ if __name__ == '__main__': while True: try: + print("initializing") command = robot("Hello world how are you doing today?") print(command) - time.sleep(5) + time.sleep(10) except KeyboardInterrupt: break