Author Topic: Any way to optimise same command with lots of different options?  (Read 2633 times)

cmdrmcdonald

  • Guest
I'm playing around with adding voice-controlled data lookups in a VoiceAttack profile but am somewhat concerned about the number of commands created.  I have commands that look like:

"What use is [a;b;c;d;e;f...]"
"How many [a;b;c;d;e;f...] do i have"
"How man [a;b;c;d;e;f...] do I need"

etc, probably 10 or so commands in all.  The problem is that there are over 100 items in the brackets so I'm creating a lot of commands internally.  Is there some clever way of breaking these commands out, perhaps using prefix/suffix, that would cut down on Voice Attack's internal load?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: Any way to optimise same command with lots of different options?
« Reply #1 on: March 04, 2017, 12:45:34 PM »
am somewhat concerned about the number of commands created.
Gary has stated that the performance of the speech engine isn't noticeably affected by a large number of variations, only the loading time of the profile is.

Unless you want to divide up the phrases, E.G. saying "What use is", pausing, then saying "a", there's not much you can do.

It would mean you'd still have 100 command phrases for the items you need, but each variation would only add one command phrase, because it doesn't have to include those items. However, it'd likely be less intuitive to speak the commands(E.G. "How many do I have of", pause, "a").

using prefix/suffix
Prefix/suffix generates the exact same amount of phrase variations. To the speech engine, there is no difference between it and dynamic command sections.
« Last Edit: March 04, 2017, 01:16:30 PM by Pfeil »

cmdrmcdonald

  • Guest
Re: Any way to optimise same command with lots of different options?
« Reply #2 on: March 04, 2017, 01:45:36 PM »
I'll leave them as-is then; thanks!