From 507b36aaae85a595cea94902b6c43dc6e61e0351 Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 27 Apr 2023 16:45:02 -0700 Subject: [PATCH] changing command and piping output to next command --- basic_text_to_speech/talk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__':