diff --git a/basic_text_to_speech/talk.py b/basic_text_to_speech/talk.py index 49db87c..f8712bb 100644 --- a/basic_text_to_speech/talk.py +++ b/basic_text_to_speech/talk.py @@ -4,7 +4,7 @@ import os def robot(text): - os.system("espeak ' " + text + " ' ") + os.system("espeak --stdin '" + text + "' | aplay -D plughw:2,0 ") if __name__ == '__main__':