Last reviewed: 1/24/2008
Article ID: H010801
HOW: Compiling and testing grammars with Dragon NaturallySpeaking
The information in this article applies to:
- GrammarKit 2, 3
- SpeechKit 5, 6
You can now compile and test grammars for Dragon NaturallySpeaking within GrammarKit.
Within Chant Developer Workbench, you can now select the recognizer with which to compile and test your grammar.
Prior to release 188.8.131.52, GrammarKit would use the grammar compiler of the default engine associated with the grammar type (e.g., SAPI 4, SAPI 5, IBM SRCL, L&H BNF+). A combobox is now available on the Speech toolbar in GrammarKit that lists recognizers for the speech API that support the grammar type you are editing and testing.
To compile and test grammars with Dragon NaturallySpeaking, create a new or open an existing SAPI 4 grammar. Select the Dragon NaturallySpeaking edition you have installed on your system that is listed in the toolbar combobox. There may be 2 entries. Select the entry with the version number. This represents the native Dragon speech API.
To compile a grammar, select the Speech - Compile Grammar menu item or click the Speech toolbar button. Compilation messages are displayed in the Output window.
To test the grammar, you must compile, load, and activate it. You may do this in one step by selecting the Speech - Activate Grammar menu item or by clicking the Speech toolbar button. You may say the various combinations of phrases supported by the rule(s). The recognition results are displayed in the Events window.
When you are finished testing the grammar, you may deactivate it by selecting the Speech - Deactivate Grammar menu item or by clicking the Speech toolbar button.