diff --git a/src/fenrir-package/commands/commands/toggle_speech_enable.py b/src/fenrir-package/commands/commands/toggle_speech_enable.py index 5edbac45..d2740370 100644 --- a/src/fenrir-package/commands/commands/toggle_speech_enable.py +++ b/src/fenrir-package/commands/commands/toggle_speech_enable.py @@ -5,8 +5,8 @@ class command(): pass def run(self, environment): - if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled',soundIconName='SpeechOff', interrupt=True): - environment['runtime']['outputManager'].presentText(environment, "speech disabled") + if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'): + environment['runtime']['outputManager'].presentText(environment, "speech disabled",soundIconName='SpeechOff', interrupt=True) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'))) if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'): environment['runtime']['outputManager'].presentText(environment, "speech enabled",soundIconName='SpeechOn', interrupt=True)