Microsoft Speech Platform
ISpPhraseBuilder::AddReplacements
ISpPhraseBuilder::AddReplacements adds one or more text replacements to the phrase.
HRESULT AddReplacements(
ULONG cReplacements,
const SPPHRASEREPLACEMENT *pReplacements
);
Parameters
- cReplacements
- The number of replacement phrase elements.
- pReplacements
- Address of the array of SPPHRASEREPLACEMENT structures containing the phrase element replacement information.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One or more parameters are invalid. |
SPERR_UNINITIALIZED | The object has not been properly initialized. |
FAILED(hr) | Appropriate error message. |