annyang supports multiple languages, has no dependencies, weighs less than 1kb and is free to use.
Go ahead, try it…
Let's try something more interesting…
Say "Show me cute kittens!"
Say "Show me Arches National Park!"
Now go wild. Say "Show me…" and make your demands!
That's cool, but in the real world it's not all kittens and hello world.
No problem, say "Show TPS report"
How did you do that?
Simple. Here is all the code needed to achieve that:
What about more complicated commands?
annyang understands commands with named variables, splats, and optional words.
Use named variables for one word arguments in your command.
Use splats to capture multi-word text at the end of your command (greedy).
Use optional words or phrases to define a part of the command as optional.
What about browser support?
annyang plays nicely with all browsers, progressively enhancing browsers that support SpeechRecognition, while leaving users with older browsers unaffected.
annyang plays nicely with all browsers, progressively enhancing modern browsers that support the SpeechRecognition standard, while leaving users with older browsers unaffected.
Please visit http://www.annyangjs.com/ in a desktop browser like Chrome.