forked from talonhub/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor dragon engine (talonhub#1505)
Fixes talonhub#1503
- Loading branch information
1 parent
bed708a
commit bcd6a64
Showing
4 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from talon import Module, speech_system | ||
|
||
mod = Module() | ||
|
||
|
||
@mod.action_class | ||
class Actions: | ||
def dragon_engine_sleep(): | ||
"""Sleep the dragon engine""" | ||
speech_system.engine_mimic("go to sleep"), | ||
|
||
def dragon_engine_wake(): | ||
"""Wake the dragon engine""" | ||
speech_system.engine_mimic("wake up"), | ||
|
||
def dragon_engine_command_mode(): | ||
"""Switch dragon to command mode. Requires Pro.""" | ||
speech_system.engine_mimic("switch to command mode") | ||
|
||
def dragon_engine_normal_mode(): | ||
"""Switch dragon to normal mode. Requires Pro.""" | ||
speech_system.engine_mimic("start normal mode") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters