I am looking for a way to define what you expect the user to say in an tag
with the HTML 5 speech attribute set.
I know that you
The grammar file could be dynamically generated using something like PHP, JSP, or your favorite web development language. The grammar file is fetched using HTTP so you could have something like this if you are using PHP:
The PHP would dynamically create the grammar based on information passed in a query string or through stored session information and return it to the speech engine.