Skip to content

wolfmanstout/dragonfly-commands

Repository files navigation

dragonfly-commands

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.

Installation

If you do choose to use this code directly, here are the basic steps:

  1. 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.
  2. Install dependencies: pip install -r requirements.txt
  3. Install Tesseract for Windows to support OCR.
  4. (Optional) Update Chrome to listen on port 9222 (instructions).
  5. Copy the contents of this repository into your macros directory (typically the MacroSystem directory).
  6. Rename _dragonfly_local.py.template to _dragonfly_local.py.
  7. 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.

About

My commands for Dragonfly, an extension to Dragon NaturallySpeaking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages