Way to disable standard alphabet dictation?

26 views
Skip to first unread message

Justin Hall

unread,
Feb 8, 2020, 3:09:20 AM2/8/20
to Dragonfly Speech Recognition
Is there a way to disable dictating the standard alphabet and only use the NATO alphabet?

IOW ignore "ay"(a), "bee"(b), "see"(c) etc. I'm tired of DNS hearing "end" as "en"(n).

I tried to delete "N" from my vocabulary but it wasn't allowed.

Thanks

Shervin Emami

unread,
Mar 3, 2020, 11:16:50 PM3/3/20
to Dragonfly Speech Recognition
Hi Justin,

I think that only happens when Dragon is in "Normal" or "Dictation" mode. When using Anaea or Dragonfly you should be putting Dragon into "Command" mode first so that it doesn't have problems like that.

Cheers,
Shervin.

Justin Hall

unread,
Mar 10, 2020, 8:17:49 AM3/10/20
to Dragonfly Speech Recognition
Thank you Shervin, I had been using dictation mode and command does seem to work better, although for some reason certain characters have stopped working (,; <>{') as well as my digits. I am stumped by it, given that my special character map definitely contains (,;') and those all work fine in normal or dictation mode but not in command mode.

Thank you

Shervin Emami

unread,
Mar 10, 2020, 4:57:25 PM3/10/20
to dragonf...@googlegroups.com
That sounds like you were using symbols like ",.:" through Dragon instead of Dragonfly. Have you configured some Dragonfly grammars for those symbols (similar to "https://github.com/dwks/aenea-grammar-simple")? Dragonfly is a framework for custom grammars written in Python, so maybe you have installed Dragon and Dragonfly and Natlink but you haven't started adding any custom Dragonfly grammars to provide things like alphabet (using whatever keywords you choose) and numbers and symbols and special commands, etc.

Cheers,
Shervin Emami.
http://www.shervinemami.info/


--
You received this message because you are subscribed to the Google Groups "Dragonfly Speech Recognition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dragonflyspee...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dragonflyspeech/391e40c7-df48-4a81-8fd9-f579b47c3ca7%40googlegroups.com.

Justin Hall

unread,
Mar 11, 2020, 4:46:44 AM3/11/20
to Dragonfly Speech Recognition
:D Hi Shervin, thanks for the reply, I'm definitely using dragonfly, sorry if my questions weren't descriptive enough.

I started with a basic grammar I copied from DWK, (keyboard.py) and then added grammars for VScode (code.py) and more recently Android Studio (studio64.py). Mostly it's been working really well.

The problem I was describing is with some of the special characters that appear in keyboard.py (specialCharMap), specifically ",;'{<>". all of those characters work in normal or dictation mode, but when I switched to command mode they don't work. It's odd because I created another mapping in that dictionary '"test character": ","' and that produces the comma as desired.

Mapping extract below:

specialCharMap = {
    "(bar|vertical)""|"#bar|pipe
    "(dash|minus|hyphen)""-",
    #"dit": ".",
    "comma"",",
    "backslash""\\",
    "underscore""_",
    "(star|asterisk)""*",
    "colon"":",
    "(semicolon|semi-colon)"";",
    "at""@",
    "[double] quote"'"',
    "single quote""'",
    "hash""#",
    "dollar""$",
    "percent""%",
    "ampersand""&",
    "slash""/",
    "equal""=",
    "plus""+",
    "space"" ",
    "bang""!",
    "question""?",
    "caret""^", }

To unsubscribe from this group and stop receiving emails from it, send an email to dragonf...@googlegroups.com.

Shervin Emami

unread,
Mar 11, 2020, 6:06:14 AM3/11/20
to dragonf...@googlegroups.com
That sounds like your dragonfly script isn't being loaded properly. Dragonfly provides commands to Dragon, so if symbols work for you in Dragon's "Dictation Mode" then it's using Dragon itself, whereas Dragonfly defines what will work in "Command Mode" (and also "Normal Mode", since Normal Mode is basically Dictation + Command modes combined).

So if symbols aren't working in Command Mode, see if any error messages are being printed in the Dragon log window when you open P Dragon. Be aware that since dwk's keyboards grammar is loaded indirectly through the "_all.py" file, if you modify "keyboard.py", Dragon won't actually know it has changed. So anytime I edit my "keyboard.py" file, I make sure to remember to edit "_all.py" (eg: insert a space somewhere and click Save then delete that space and click Save again). Then I close Dragon and open Dragon again, to make sure it has definitely reloaded my "keyboard.py" changes.

To unsubscribe from this group and stop receiving emails from it, send an email to dragonflyspee...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dragonflyspeech/702dba8b-148c-490c-8ada-bd4d9800ceb3%40googlegroups.com.

dwk

unread,
Mar 11, 2020, 10:02:06 AM3/11/20
to dragonf...@googlegroups.com
Switching to command mode will slightly adjust Dragon's prioritization of commands. I've had some commands stop working in the same way, usually when they are similar to built-in commands. Same way that "comma" can't be used as a command because Dragon does something special with it, and you have to use "calm". One option is to switch to more exotic words for these symbols. Another option is to create a new profile, this might reset Dragon's record of having recognized those words in dictation + command mode. It's possible there's something in the structure of keyboard.py that makes this problem worse, sorry, I don't really know.

Personally I don't use command mode, the accuracy and latency just seems slightly better in dictation + command mode (for Dragon 13). Again, this could be because my profile has a lot of history in this mode.

Justin Hall

unread,
Mar 11, 2020, 12:33:55 PM3/11/20
to Dragonfly Speech Recognition
Thanks for that, I did feel like there was a bit more lag in command mode but I thought it was maybe just me being tired :)

If I don't get it working then I'll probably resort to the more exotic options.

--
You received this message because you are subscribed to the Google Groups "Dragonfly Speech Recognition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dragonf...@googlegroups.com.

Shervin Emami

unread,
Mar 11, 2020, 8:17:44 PM3/11/20
to dragonf...@googlegroups.com
Wow that's interesting dwk. "comma" gets recognized fine for me in Command Mode, but I'm using Dragon 15. And maybe you're right that it's because I first spoke the word "comma" while in Command Mode.

Cheers,
Shervin Emami.
http://www.shervinemami.info/

To unsubscribe from this group and stop receiving emails from it, send an email to dragonflyspee...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dragonflyspeech/1838b33b-4812-4047-bb28-ba4ef8fcca39%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages