Skip to content
Sign upLog in
Create a powerful voice assistant in just a few lines of code
Profile icon

Meet annyang - a tiny JavaScript Speech Recognition library

In under 30 lines of JavaScript, I added 2 simple commands, and 2 complex ones.

  • hello - this is a testing function, it creates an alert box
  • go to blog - this just redirects you to my blog
  • ask (me) my *thing - this is the first complex one.
    • You can say ask me my name
    • ask my age
    • ask my my favourite colour in the whole wide world
  • search (for) *query - search google for whatever you want

As you can see, from this very simple demo, the potential is limitless. More info can be found here

You are viewing a single comment. View All
Profile icon

you should get a browser permission request for voice access, then just say a command