debug
This commit is contained in:
@@ -4,6 +4,7 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
def robot(text):
|
def robot(text):
|
||||||
|
print("executing command")
|
||||||
command = 'espeak --stdin "' + text + '" | aplay -D plughw:2,0 '
|
command = 'espeak --stdin "' + text + '" | aplay -D plughw:2,0 '
|
||||||
os.system(command)
|
os.system(command)
|
||||||
return command
|
return command
|
||||||
@@ -13,9 +14,10 @@ if __name__ == '__main__':
|
|||||||
while True:
|
while True:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
print("initializing")
|
||||||
command = robot("Hello world how are you doing today?")
|
command = robot("Hello world how are you doing today?")
|
||||||
print(command)
|
print(command)
|
||||||
time.sleep(5)
|
time.sleep(10)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user