fenrir/src/fenrir-package/commands/onScreenChanged/70000-speak_incomming.py
2016-07-12 23:12:39 +02:00

15 lines
506 B
Python

#!/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