Microsoft Speech SDK
SAPI 5.1
ISpCFGInterpreterSite
This interface is used by rule interpreters to set properties and text replacements in the parent phrase.
When To Use
The ISpCFGInterpreterSite interface allows context-free grammar (CFG) interpreters (see ISpCFGInterpreter) to access the semantic property tree and the phrase element structure, so that it can modify and update the properties or text replacements.
When To Implement
The ISpCFGInterpreterSite interface is implemented by SAPI, and is sent to the CFG interpreter (see ISpCFGInterpreter) when the speech recognition engine recognizes a rule that uses the interpreter (see ISpSREngineSite::ParseFromTransitions).
Methods in Vtable Order
ISpCFGInterpreterSite Methods | Description |
---|---|
AddTextReplacement | Adds one text replacement to the phrase. |
AddProperty | Adds a property entry to the phrase object. |
GetResourceValue | Retrieves the resource information for a grammar. |