diff --git a/basic_text_to_speech/talk.py b/basic_text_to_speech/talk.py index 0b5f22d..17032de 100644 --- a/basic_text_to_speech/talk.py +++ b/basic_text_to_speech/talk.py @@ -6,6 +6,7 @@ import os def robot(text): print("executing command") os.system("espeak -w output.wav \"" + text + "\"") + os.system("aplay -D plughw:2,0 output.wav") if __name__ == '__main__':