ISpCFGInterpreterSite::AddTextReplacement

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpCFGInterpreterSite::AddTextReplacement

ISpCFGInterpreterSite::AddTextReplacement adds one text replacement to the phrase. The object must have been initialized by calling SetPhrase prior to calling this method.


HRESULT AddTextReplacement(
   SPPHRASEREPLACEMENT   *pReplace
);

Parameters

pReplace
[in] Address of the SPPHRASEREPLACEMENT that contains the replacement text.

Return values

Value Description
S_OK Function completed successfully.
E_INVALIDARG pReplace is invalid or bad.
SPERR_UNINITIALIZED The object is uninitialized.
FAILED(hr) Appropriate error message.