Search code examples
javascriptinternet-explorerspeech-recognitionsapi

SAPI STT in javascript


I'm new to javascript and was wondering if there are any tutorials on how to implement speech to text and speech recognition through SAPI. The only examples I've found so far are TTS and how to spit back text. And the questions already posted aren't really giving me any info I can take from.

I know that you have to create an ActiveXObject, but I can't really understand the Microsoft SAPI website since none of the examples are in javascript and I don't know any of the syntax. I plan on making an HTML app that can use speech recognition to preform tasks in a program.

Appreciate the help.


Solution

  • SAPI objects aren't marked Safe For Scripting (because they're not) and can't easily be used from JavaScript. I've done it, but you have to turn off tons of internet security options in order to do so. I wouldn't pursue that path, particularly for a public-facing website.