alarm time
This commit is contained in:
parent
7af45faa63
commit
78667b457a
13
timer.py
13
timer.py
@ -1,8 +1,11 @@
|
|||||||
import time
|
import time
|
||||||
|
import random
|
||||||
|
import os
|
||||||
|
|
||||||
s = Sound()
|
nextturn=['who is next','next','well done','keep going','almost there', 'bonus! bonus! you have another minute', 'what a great edit', "it's like i'm reading The New York Times", 'nice phrasing. next']
|
||||||
s.read('')
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
time.sleep(60)
|
choice=random.choice(nextturn)
|
||||||
s.play()
|
cmd="espeak '{}'".format(choice)
|
||||||
|
os.system(cmd)
|
||||||
|
time.sleep(60)
|
||||||
|
Loading…
Reference in New Issue
Block a user