add autoReadIncomming, add sound volume, convert volume to 0.0 - 1.0 factor for unification

This commit is contained in:
chrys
2016-08-08 09:34:57 +02:00
parent 152453c232
commit 0e973b6f1d
10 changed files with 27 additions and 12 deletions

View File

@ -4,8 +4,8 @@ class command():
def __init__(self):
pass
def run(self, environment):
#if environment['screenData']['newCursor']['x'] > environment['screenData']['oldCursor']['x']:
# return environment
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming'):
return environment
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
return environment