ISpITNProcessor::ITNPhrase (SAPI 5.4)

Microsoft Speech API 5.4

ISpITNProcessor::ITNPhrase

ISpITNProcessor::ITNPhrase parses an inverse text normalization (ITN) on a previously loaded grammar.

  
    HRESULT ITNPhrase(ISpPhraseBuilder   *pPhrase
);

Parameters

  • pPhrase
    Address of the phrase to parse.

Return values

Value
S_OK
S_FALSE
E_INVALIDARG
SP_NO_RULE_ACTIVE
E_OUTOFMEMORY
FAILED(hr)

Remarks

The ITNPhrase will attempt to parse the pPhrase passed in using the ITN grammar loaded by ISpITNProcessor::LoadITNGrammar. If a parse is found, the ITN grammar will add the display text replacement. For example, AddReplacement "$100" for "one hundred dollars".