Hi,
I am using dictation in Dragonfly, but when speaking an on-the-fly command such as "caps on", the printed text of the dictation includes the command codes, which obviously isn't the desired result. eg:
\caps-on Wizard of Oz
This may be occuring due to the function natlink.getWordInfo(word), which appears in Word.__init__, not working, according to natlink.txt ("Dragon 11: function does not work any more"). Can this be confirmed, and if it is the problem, is there any workaround at this point, other than not using on-the-fly commands or using an earlier version of Dragon? Another possibility may be to check for command words in the word tuple returned (eg \\\\caps-on in the tuple below) rather than relying on getWordInfo().
The code I'm using to convert the dictation into text is:
def process_recognition(self, node):
dictation=node.value()[0] # grab the dictation object
state = FormatState(spacing= FormatState.normal)
s= state.format_words(dictation._words)
Text(s, pause=0).execute()
The function format_words receives the following tuple of words from the dictation object:
tuple: ('\\\\caps-on\\\\caps on', 'the', 'Wizard of Oz')
Any comments appreciated.
Thanks
Jason