fenrir/src/fenrir-package/commands/onScreenChanged/70000-speak_incomming.py

15 lines
506 B
Python
Raw Normal View History

2016-07-12 17:09:11 -04:00
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta'] or \
environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
environment['runtime']['speechDriver'].speak(environment['screenData']['newDelta'])
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass