If you want to stay in JS, check out Pocketsphinx (<a href="http:&#x2F;&#x2F;syl22-00.github.io&#x2F;pocketsphinx.js&#x2F;" rel="nofollow">http:&#x2F;&#x2F;syl22-00.github.io&#x2F;pocketsphinx.js&#x2F;</a>). If you can get outside JS, look at Sphinx or Kaldi. As an alternative, if you&#x27;re on mobile, both Android and iOS have local recognizers.