This commit is contained in:
talksik
2023-04-27 16:49:02 -07:00
parent 7f79208ef5
commit 651e37b0d3
+3 -1
View File
@@ -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