ISpRecoContext2::SetAdaptationData2 (SAPI 5.4)

Microsoft Speech API 5.4

ISpRecoContext2::SetAdaptationData2

ISpRecoContext2::SetAdaptationData2 passes a block of text to the SR engine which can be used to adapt the active language models and extends the functionality of the ISpRecoContext2::SetAdaptationData function.

  
    HRESULT SetAdaptationData2(
   LPCWSTR                  pAdaptationData,
   ULONG                    cch,
   LPCWSTR                  pTopicName,
   DWORD                    eAdaptationSettings,
   SPADAPTATIONRELEVANCE    eRelevance
);

Parameters

  • pAdaptationData
    The text data to adapt to.
  • cch
    The length of pAdaptationData.
  • pTopicName
    The dictation topic name the adaptation applies to.
  • eAdaptationSettings
    A value or values from the SPADAPTATIONSETTINGS enumeration.
  • eRelevance
    A value from the SPADAPTATIONRELEVANCE enumeration.

Return values

Value
S_OK
E_INVALIDARG