syl22-00 / pocketsphinx.js

Speech recognition in JavaScript and WebAssembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cant execute pocketsphinx.js because it is a text/plain?

youngsun0 opened this issue · comments

sphinxproblem

I'm just trying to get live.html demo to work. However i keep getting this error:
recognizer.js:56 Refused to execute script from 'http://localhost:8000/webapp/js/pocketsphinx.js' because its MIME type ('text/plain') is not executable.

Fixed:
added Handler.extensions_map['.js'] = 'text/javascript' to server.py