Export (0) Print
Expand All

ISpSREngine2::SetAdaptationData2 (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngine2::SetAdaptationData2

ISpSREngine2::SetAdaptationData2 is called when an application calls ISpRecoContext2::SetAdaptationData2.


HRESULT SetAdaptationData2(
   void                    *pvEngineContext,
   const WCHAR             *pAdaptationData,
   const ULONG              cch,
   LPCWSTR                  pTopicName,
   SPADAPTATIONSETTINGS     eSettings,
   SPADAPTATIONRELEVANCE    eRelevance
);

Parameters

pvEngineContext
[in] Engine's recognition context pointer for the context that is sending the data.
pAdaptationData
[in] Buffer containing the adaptation data. Applications should copy this data before returning from this function if they are going to use this data. This buffer is not necessarily null-terminated.
cch
[in] The size, in WCHARs, of the adaptation data in pAdaptationData.
pTopicName
The name of the dictation topic.
eSettings
One or more of the values from the SPADAPTATIONSETTINGS enumeration.
eRelevance
A value from the SPADAPTATIONRELEVANCE enumeration.

Return values

ValueDescription
S_OKFunction completed successfully.
E_NOINTERFACEInterface not supported by the engine.
Show:
© 2015 Microsoft