CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


The Microsoft.com Speech website Microsoft Speech SDK

SAPI 5.1

ISpCFGInterpreter::Interpret

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
);

Parameters

pPhrase
[in] Address of the ISpPhraseBuilder interface containing the phrase information.
ulFirstElement
[in] Value specifying the location of the first element in pPhrase.
ulCountOfElements
[in] Value specifying the number of phrase elements in pPhrase.
pSite
[in] Address of the ISpCFGInterpreterSite interface containing methods that can be used to attach semantic properties or text replacements to the parent phrase.

Return values

Value Description
S_OK Function completed successfully.
FAILED(hr) Appropriate error message.


You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com
Partner sites: Logo Design, Simple Anti-Crisis Accounting Software, Voice Search for Web