Overload List

  NameDescription
Public methodaddCommand(String)
Adds a new command phrase. Note: You can only use two aliases per command. Example: SpeechRecognizer rec = SpeechRecognizer.getInstance("APIKEY"); rec.addCommand("yes"); rec.addCommand("no"); The user can now speak "Yes" or "No" and it will be recognized correctly.
Public methodaddCommand(array<String>[]()[][])
Adds a new command phrase. Note: You can only use two aliases per command. Example: SpeechRecognizer rec = SpeechRecognizer.getInstance("APIKEY"); String commands = new String(){"yes","no"}; rec.addCommand(commands); The user can now speak "Yes" or "No" and it will be recognized correctly.

See Also