Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ISpSREngine::GetPropertyNum (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngine::GetPropertyNum

ISpSREngine::GetPropertyNum retrieves a numerical property value from the SR engine. 

 

HRESULT GetPropertyNum(
   SPPROPSRC      eSrc,
   void          *pvSrcObj,
   const WCHAR   *pName,
   LONG          *lValue
);

Parameters

eSrc
[in] One of the types specified in the SPPROPSRC enumeration sequence. (This will currently always be SPPROPSRC_RECO_INST).
pvSrcObj
[in] Pointer to additional information. (Currently always NULL).
pName
[in] String containing the property name.
lValue
[out] Pointer that the SR engine supplies with the property value information. If the engine does not support this property attribute, it should set the contents of this pointer to zero.

Return values

ValueDescription
S_OKFunction completed successfully. Engine supports this property attribute and has returned a value for it.
S_FALSEFunction completed successfully but engine does not support this property.
FAILED(hr)Appropriate error message.

Remarks

Applications can use properties to control run-time results of the SR engine. The application can set and retrieve values for specific attributes on the engine. Some values are predefined by SAPI and others may be added by an engine. See SAPI 5.0 SR Properties White Paper for more details.

This method is called on the engine by SAPI when the application calls ISpProperties::GetPropertyNum on its recognition context object.

Show:
© 2015 Microsoft