diff --git a/basic_text_to_speech/talk.py b/basic_text_to_speech/talk.py index f8712bb..0aaccd8 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 --stdin '" + text + "' | aplay -D plughw:2,0 ") + os.system('espeak --stdin "' + text + '" | aplay -D plughw:2,0 ') if __name__ == '__main__':