annyang v2.4.0 Release Notes

Release Date: 2016-04-11 // about 8 years ago
  • [Added] annyang.trigger() method

    annyang commands can now be triggered manually by emulating speech being said. Pass a sentence, or an array of possible sentences to annyang.trigger(), and annyang will act on them as if they came from speech recognition.

    Examples:

    annyang.trigger('Time for some thrilling heroics');annyang.trigger( ['Time for some thrilling heroics', 'Time for some thrilling aerobics'] );