SAPI 4 grammar fails to enable with Dragon 8
Last reviewed: 2/25/2005
PRB Article ID: P020503
The information in this article applies to:
- SpeechKit 4
Symptoms
Enabling a SAPI 4 grammar with Dragon 8 receives error code 0x8004041A SRERR_NOUSERSELECTED.
Cause
Dragon 8 requires a Dragon trained speaker profile set active before it will process requests.
Status
Use ChantSR SetStringProperty method to set a default speaker before enabling the grammar vocabulary:
// Set current speaker
ChantSR1.SetStringProperty(CSPSpeaker,"UserName")
// Define a grammar vocabulary
grammarVocabID = ChantSR1.DefineResource(CSRGrammarVocab, "mygrammar.txt")
// Load and enable grammar vocabulary
ChantSR1.EnableResource(CSRGrammarVocab, grammarVocabID)
Component Formats Impacted
None.