def enable_talon(): talon.enable() app.icon_color(0, 0.7, 0, 1) lib.menu_check(b'!Enable Speech Recognition', True) # Ensure Dragon dictation is off, even if it wasn't enabled engine.mimic('go to sleep'.split())
def set_enabled(enable): if enable: talon.enable() app.icon_color(0, 0.7, 0, 1) else: talon.disable() app.icon_color(1, 0, 0, 1) lib.menu_check(b'!Enable Speech Recognition', enable)