My commands for Dragonfly, an extension to Dragon NaturallySpeaking.
These command modules are intended as a reference supplement to my blog,
handsfreecoding.org. Currently, most of the
commands are stuffed into _repeat.py
. They are a work in progress, so expect
breaking changes. Many commands are specific to my setup, so I recommend using
this as a source of ideas and examples instead of directly. If you wish to make
it easier for others to use directly, I am open to pull requests, but please do
so in a way that will not slow down development (i.e. follow the Don't Repeat
Yourself principle).
Several of these modules are based on examples from the official dragonfly-modules repository.
If you do choose to use this code directly, here are the basic steps:
- Install Dragon, NatLink, and Dragonfly. I generally recommend
pip install dragonfly2
to install Dragonfly, but occasionally this grammar may use features only available in my development branch that have not yet been integrated upstream. - Install dependencies:
pip install -r requirements.txt
- Install Tesseract for Windows to support OCR.
- (Optional) Update Chrome to listen on port 9222 (instructions).
- Copy the contents of this repository into your macros directory (typically the MacroSystem directory).
- Rename
_dragonfly_local.py.template
to_dragonfly_local.py
. - Restart Dragon.
Those are the basic steps needed to get the code to run without errors. Some
interesting functionality will still be missing (e.g. eye tracking, WebDriver
integration). Follow the gaze-ocr
instructions to install support for
eye tracking, then set DLL_DIRECTORY
in _dragonfly_local.py
to point to the
eye tracker DLL directory.
Please check out my blog for instructions integrating other optional features.