Is there a way to use a grammar with the HTML 5 speech input API?

In Google Chrome you can not use grammars yet, overall they decided to use free-form recognition only. Relevant question is Grammar in Google speech API.

Grammars are supported in Firefox Web Speech API, but the feature is experimental.

If your browser supports HTML5 audio, you might want to try to recognize words from your grammar using Pocketsphinx.js library, it provides javascript-based recognizer which should be very good for grammars.

Leave a Comment