The DictationGrammar inherits from Grammar.
Note: |
|---|
Despite inheriting from Grammar, DictationGrammar objects do not support Priority. |
The DictationGrammar provides applications with a predefined language models that can process spoken user input into text, including punctuation and spelling.
The Speech platform is extensible and developers can either obtain instances of the default DictationGrammar object (obtained through the default constructor DictationGrammar()()()), or specify a type of DictationGrammar with extensions or special features by using the DictationGrammar(String) constructor.
Specification of grammars is indicated through a special URI (Universal Resource Identifier) understood by the infrastructure of the Speech platform. For details on specifying grammars, see the discussion on the DictationGrammar(String) constructor topic.
By default, and unlike most Grammar based objects, the DictationGrammar language model is context free: that it does not make use of specific words or word order to identify and interpret audio input.
However, an application can modify the DictationGrammar programming to increase the robustness of desktop dictation by using SetDictationContext.