ISpRecoContext2::SetAdaptationData2 (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_INVALIDARG Invalid parameter.