ISpPhraseBuilder::AddReplacements (SAPI 5.4)

Microsoft Speech API 5.4

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)