You are reading help file online using chmlib.com
|
ISpCFGInterpreter::Interpret examines a grammar and generates new properties and text replacements.
Interpret is typically called by SAPI only when a grammar includes a reference to a context-free grammar (CFG) interpreter.
<RULE NAME="MyRule" INTERPRETER="TRUE"/>
SAPI will internally call ISpCFGInterpreter_Interpret whenever the speech recognition engine calls ISpSREngineSite_ParseFromTransitions with a rule handle matching "MyRule".
Application writers and engine vendors can use the ISpCFGInterpreter interface to manipulate the semantic properties returned to the application. For example, the CFG interpreter could detect whenever the grammar contained a semantic property called "Today" and replace the semantic property value with the actual system date and time.
HRESULT Interpret(
ISpPhraseBuilder *pPhrase,
const ULONG ulFirstElement,
const ULONG ulCountOfElements,
ISpCFGInterpreterSite *pSite
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
FAILED(hr) | Appropriate error message. |
You are reading help file online using chmlib.com
|