Use AutoTools Text Best Matches to improve voice recognition

Learn how you can make voice recognition better by forcing one of several pre-defined expressions

  1. joaomgcd
    Voice recognition does not always get it right.

    For example sometimes you want to say "son" but it recognizes "sun". Learn how you can force recognition to recognize one of the pre-defined expressions you want.

    STEP 1 - RECOGNIZE VOICE


    • In a Task add an AutoVoice Recognize action
    • Set the Prompt to Do you have a son or a daughter?
    • Accept and add a Flash action with the text Answer: %avcomm
    (i) this will show a toast with whatever text the voice recognizer heard you say. The problem is that most of the times it will recognize sun and not son like you're expecting. Let's force it to recognize son instead.


    STEP 2 - RESTRICT RESULTS TO SON OR DAUGHTER


    • Add an AutoTools Text action
    • Set the Text field to %avcomm
    • Set the Best Match field to son,daughter
    • Go back to the task and add a Flash action with the text Real answer: %atbestmatches(1)
    (i) %atbestmatches() is an array that contains all the best matches for the input texts. Since you only have 1 input text in this case, it'll only have 1 element as well.



    If you now run the task you'll see that AutoTools Best Match forced the result to be son even though sun was recognized. That's because sun sounds more like son than daughter. This uses the Monge Elken algorithm to find similarities between pieces of text.
    Matthias likes this.

Recent Reviews

  1. REINALDO CARDOSO
    REINALDO CARDOSO
    5/5,
    Muito bom este projeto ótimo vcs tem que fazer mas prj deste tipos show
  2. SAMdroid
    SAMdroid
    5/5,
    Thanks bro, good job. Great to have an alternative way to recognise voice commands.