DailyJS

JavaScript Speech Recognition

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

speech APIs

JavaScript Speech Recognition

Posted by Alex R. Young on .
Featured

speech APIs

JavaScript Speech Recognition

Posted by Alex R. Young on .

Elias sent us a link to his JavaScript speech recognition API at
speechapi.com. It uses Flash to record audio and sends it to a server, then the server returns suggestions to a
callback. You have to register to use the API. Using the API looks like
this:

var speechle;

function TheSettings() {
  var info = {'Userid':'eli', 'Logging':'true'};
  var eventCallbacks={'OnResult':'result', 'OnLogging':'logging', 'OnFinishTTS':'finishTTS'};
  var grammar={'Text':'one,two', 'Type':'simple'};
  speechle = new SPEECHLE(info,eventCallbacks,grammar);
}
</code>

The site has a few demos. One which worked pretty reliably for me was
the random quiz.

A similar technology is WAMI which uses
Java instead. You can try a demo in the WAMI
sandbox
.

Standards

There are W3C standards relating to speech recognition:

See the Voice Browser Activity for a
centralised pool of related W3C resources.