dictation-toolbox / dragonfly

Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS), Windows Speech Recognition (WSR), Kaldi and CMU Pocket Sphinx
GNU Lesser General Public License v3.0
388 stars 75 forks source link

Grammar lists do not work correctly with Dragon 15 in some cases #363

Closed drmfinlay closed 2 years ago

drmfinlay commented 3 years ago

dictation-toolbox/natlink#82

Dragonfly's dynamic grammar list functionality does not work correctly with Dragon 15 if used in a stand-alone Python process. However, it works just fine in a command module loaded by natspeak.exe. The problem can be replicated by running Dragonfly's test suite in the root directory of this repository:

python setup.py test --test-suite=natlink

The test_grammar_list_doctest.txt test will fail with the older Python 2.7 and newer Python 3.8 versions of Natlink.

This issue, if it is indeed fixable and not another Dragon "quirk" we must simply endure, should be considered low priority since Natlink is not normally used in this fashion.

If you use the Natlink engine back-end and make use of Dragonfly Lists and/or DictLists, it is recommended to load your command modules via the Natlink user directory instead.