Hacker News new | ask | show | jobs
by Dinius 2904 days ago
> if you use an English word as a command, such as ‘return’, it means you can never type out that word.

Not exactly true. The word by itself would be recognized as a command, but in a sentence it’ll be treated as any other word, assuming you don’t pause for too long before it.

2 comments

You're probably thinking of some other voice command system, or Dragon's built-in commands (which are bad because they have no continuous recognition, requiring constant pauses while talking). Voicecode behaves exactly as described in the article.

I just defined a command "return" in Voicecode which presses enter.

"testing return testing test test return test return test" spoken in one breath types the following:

  testing
  testing test test
  test
  test
Voicecode defines commands in Dragon by just adding words to the English vocabulary, leaving Dragon in dictation mode, and running a parser on the English output. Commands are executed anywhere they land in the phrase. The Voicecode grammar makes this somewhat less painful by using lots of non-English words for commands... but this approach is convoluted and hurts accuracy quite a bit imo.
The pausing solution is incorrect, but to say you could never use the word is also incorrect. See "keeper" such as "keeper return".
No, pausing will not prevent the word being recognized as a command in Voicecode. However, you can tell VC to ignore commands and just treat what's spoken as regular text. The command "keeper" will do this.
however, voicecode's use of dictation as I outlined in my sibling comment means keeper will type out all the nonsense words too (which is some of what I meant by voicecode's approach affecting accuracy)