Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
Added annyang.trigger() method.tar.gz | 2016-04-11 | 151.2 kB | |
Added annyang.trigger() method.zip | 2016-04-11 | 161.9 kB | |
README.md | 2016-04-11 | 456 Bytes | |
Totals: 3 Items | 313.6 kB | 0 |
[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:
:::javascript
annyang.trigger('Time for some thrilling heroics');
annyang.trigger(
['Time for some thrilling heroics', 'Time for some thrilling aerobics']
);