dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

engine.py (434B)


      1 from talon import Context, Module
      2 from talon import speech_system
      3 
      4 mod = Module()
      5 
      6 
      7 @mod.action_class
      8 class Actions:
      9     def engine_sleep():
     10         """Sleep the engine"""
     11         speech_system.engine_mimic("go to sleep"),
     12 
     13     def engine_wake():
     14         """Wake the engine"""
     15         speech_system.engine_mimic("wake up"),
     16 
     17     def engine_mimic(cmd: str):
     18         """Sends phrase to engine"""
     19         speech_system.engine_mimic(cmd)