You can also try kaldi-wasm but it hasn't been worked on for a while https://gitlab.inria.fr/kaldi.web/kaldi-wasm