Share via


ISpPhraseBuilder::AddReplacements (SAPI 5.3)

Microsoft Speech API 5.3

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
S_OK
E_INVALIDARG
SPERR_UNINITIALIZED
FAILED(hr)