My first attempt at coding autonomous speech recognition into a web page. It works, sort of...
Channel: Executive Quest
Date: 2020-05-07

Is speech recognition possible with just 200 lines of JavaScript (and without sending your voice to China, or depending on anyone else's code?) Can an offline web page listen, classify, and respond to sounds in the environment? I guess this amounts to a JavaScript, HTML5 AI voice recognition, sound API starter pack. A very simple, tiny snippet of code that you can improve on. Released with open license, as explained in the HTML comments. https://speak.ml/test/recognize.html

Were you looking for robust, real-time speech recognition instead of this 1-hour experiment?

Check out Speak My Language, real-time dictation app I made that depends on Google Speech API.  http://speak.ml ... Right. That page quit working correctly since the algorithms classified it as spam. This is why I don't like depending on somebody else's API. Good thing I saved a copy and still use it locally.
 
Of course by now speech recognition is nothing new. What is new is how small and independent this project is. Other projects are huge and bloated. Good luck figuring them out! Speaking of which, the old but robust codebase of Pocketsphinx has been ported to JavaScript. https://github.com/syl22-00/pocketsphinx.js