setup for espeak
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
import time
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
def robot(text):
|
||||||
|
os.system("espeak ' " + text + " ' ")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
while True:
|
||||||
|
|
||||||
|
try:
|
||||||
|
robot("Hello world how are you doing today?")
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
break
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
Reference in New Issue
Block a user