fix steps
This commit is contained in:
parent
cd123ac072
commit
11a770f0ff
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) - 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) - 0.1, 2)
|
||||
if value < 0.1:
|
||||
value = 0.1
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) - 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) - 0.1, 2)
|
||||
if value < 0.0:
|
||||
value = 0.0
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) - 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) - 0.1, 2)
|
||||
if value < 0.0:
|
||||
value = 0.0
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) - 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) - 0.1, 2)
|
||||
if value < 0.1:
|
||||
value = 0.1
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) + 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) + 0.1, 2)
|
||||
if value > 1.0:
|
||||
value = 1.0
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) + 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) + 0.1, 2)
|
||||
if value > 1.0:
|
||||
value = 1.0
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) + 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) + 0.1, 2)
|
||||
if value > 1.0:
|
||||
value = 1.0
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value))
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
|
||||
|
||||
value = round((math.ceil(20 * value) / 20) + 0.1, 2)
|
||||
value = round((math.ceil(10 * value) / 10) + 0.1, 2)
|
||||
if value > 1.0:
|
||||
value = 1.0
|
||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))
|
||||
|
Loading…
Reference in New Issue
Block a user