Search code examples
htmlinputinlinegrammarspeech

Is it possible to define a dynamic grammar (created with PHP) for a speech input field?


Is it possible to define a dynamic grammar (created with PHP) for a speech input field?

See http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html.

I would like to do this inline (added to my HTML with PHP) but I can't find any examples.


Solution

  • See this question here: HTML5 Speech recognition --- is there a way to set what the user is expected to say dynamically? (Using custom Grammars)

    I do not know if any Google Chrome supports using custom grammars, but if it does that is how you would do it.