test of inc dec commands

This commit is contained in:
chrys 2016-08-21 19:52:22 +02:00
parent 11a770f0ff
commit fbe33d609e
7 changed files with 10 additions and 10 deletions

View File

@ -12,15 +12,15 @@
1-FENRIR,1-KEY_KPDOT=exit_review
#=curr_screen
#=last_incomming
#1-FENRIR,1-KEY_F2=toggle_braille
#1-FENRIR,1-KEY_F3=toggle_sound
1-FENRIR,1-KEY_F2=toggle_braille
1-FENRIR,1-KEY_F3=toggle_sound
1-FENRIR,1-KEY_F4=toggle_speech
#=toggle_output
#=toggle_autoRead
#=quit_fenrir
1-FENRIR,1-KEY_A=foreward_keypress
1-FENRIR,1-KEY_F2=inc_speech_volume
1-FENRIR,1-KEY_F3=dec_speech_volume
#1-FENRIR,1-KEY_F2=inc_speech_volume
#1-FENRIR,1-KEY_F3=dec_sound_volume
#=inc_speech_rate
#=dec_speech_rate
#=inc_speech_pitch

View File

@ -13,7 +13,7 @@ class command():
value = 0.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value))
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech pitch", soundIcon='SpeechOff', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech pitch", soundIcon='', interrupt=True)
return environment
def setCallback(self, callback):

View File

@ -13,7 +13,7 @@ class command():
value = 0.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value))
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech rate", soundIcon='SpeechOff', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech rate", soundIcon='', interrupt=True)
return environment
def setCallback(self, callback):

View File

@ -13,7 +13,7 @@ class command():
value = 0.1
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech volume", soundIcon='SpeechOff', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech volume", soundIcon='', interrupt=True)
return environment
def setCallback(self, callback):

View File

@ -13,7 +13,7 @@ class command():
value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value))
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech pitch", soundIcon='SpeechOn', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech pitch", soundIcon='', interrupt=True)
return environment
def setCallback(self, callback):

View File

@ -13,7 +13,7 @@ class command():
value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value))
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech rate", soundIcon='SpeechOn', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech rate", soundIcon='', interrupt=True)
return environment
def setCallback(self, callback):

View File

@ -13,7 +13,7 @@ class command():
value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech volume", soundIcon='SpeechOn', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, str(int(value * 100)) + " percent speech volume", soundIcon='', interrupt=True)
return environment
def setCallback(self, callback):